mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
SteamDeck: a standalone launcher for the native ARM64 Linux Steam client
Lifts Bannerlator's Linux/gamescope runtime out into an app of its own: the Wayland compositor, the proot session, the runtime installer, the fake-evdev controller path and the PulseAudio server, with none of the Wine, container or store machinery around them. One activity installs the runtime from the same winlator-contents catalog and a second one runs the session: compositor on a SurfaceView, gamescope and Valve's native arm64 client under proot, a physical pad republished into the fake-input rings, and the session's milestones on screen until the first frame arrives.
This commit is contained in:
commit
4022351e22
210 files changed
+73587
No files matched your search
@@ -0,0 +1,74 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
}
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
android {
|
||||
namespace 'com.the412banner.steamdeck'
|
||||
compileSdk 34
|
||||
// The NDK is pinned by property so CI can hand in whatever the runner already has rather than
|
||||
// downloading a second copy; see gradle.properties.
|
||||
ndkVersion project.findProperty('ndkVersion') ?: '27.0.12077973'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.the412banner.steamdeck"
|
||||
minSdkVersion 26
|
||||
// 28 is not a leftover. An app on targetSdk 29+ runs in a domain that may not execute a
|
||||
// file out of its own data directory, and this app's entire job is to exec a rootfs:
|
||||
// proot, gamescope, the Steam client and everything it launches all live under files/.
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "0.1.0"
|
||||
|
||||
ndk {
|
||||
abiFilters 'arm64-v8a'
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments '-DANDROID_STL=c++_shared'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path 'src/main/cpp/CMakeLists.txt'
|
||||
version '3.22.1'
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
release {
|
||||
minifyEnabled false
|
||||
// Signed with the debug key for now: this is a test build handed to a device, not a
|
||||
// published app, and a release key would have to live in the repo's secrets first.
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
jniLibs {
|
||||
// The PulseAudio daemon is executed from the native library directory and its
|
||||
// libraries are read out of the apk by the class loader: both want the old,
|
||||
// uncompressed-and-extracted layout.
|
||||
useLegacyPackaging = true
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = '17'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// The runtime tarball is a zstd-compressed tar; nothing else in the app needs a library.
|
||||
implementation 'com.github.luben:zstd-jni:1.5.2-3@aar'
|
||||
implementation 'org.apache.commons:commons-compress:1.20'
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<!-- Session logs go to Downloads so a failed run can be handed over as one folder. -->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
|
||||
<uses-feature android:name="android.hardware.vulkan.version" android:version="0x401000" android:required="true" />
|
||||
<uses-feature android:name="android.hardware.gamepad" android:required="false" />
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme"
|
||||
android:hardwareAccelerated="true"
|
||||
android:largeHeap="true"
|
||||
android:extractNativeLibs="true">
|
||||
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:screenOrientation="sensorLandscape">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!--
|
||||
A session keeps a Surface, a compositor thread and a proot tree alive; a configuration
|
||||
change must not tear that down and rebuild it, so the activity handles them itself.
|
||||
Landscape only: gamescope is told one output size when it starts.
|
||||
-->
|
||||
<activity
|
||||
android:name=".SessionActivity"
|
||||
android:exported="false"
|
||||
android:theme="@style/SessionTheme"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:resizeableActivity="false"
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation|uiMode|density" />
|
||||
</application>
|
||||
</manifest>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,11 @@
|
||||
# The app's native side: the Wayland compositor the session presents into, the adrenotools loader
|
||||
# it opens Turnip with, and one small library for the fake-input ring's memory fence.
|
||||
cmake_minimum_required(VERSION 3.22.1)
|
||||
project(steamdeck C CXX)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-unused-function -Wimplicit-function-declaration")
|
||||
|
||||
add_subdirectory(adrenotools)
|
||||
add_subdirectory(waylandcomp)
|
||||
add_library(sdnative SHARED sdnative/sdnative.c)
|
||||
target_link_libraries(sdnative log)
|
||||
@@ -0,0 +1,4 @@
|
||||
[submodule "lib/linkernsbypass"]
|
||||
path = lib/linkernsbypass
|
||||
url = https://github.com/Pipetto-crypto/liblinkernsbypass.git
|
||||
branch = master
|
||||
@@ -0,0 +1,37 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
if(NOT ${CMAKE_ANDROID_ARCH_ABI} STREQUAL arm64-v8a)
|
||||
message(FATAL_ERROR "Unsupported target architecture: ${CMAKE_ANDROID_ARCH_ABI}. Please make an issue on the repo!")
|
||||
endif()
|
||||
|
||||
project(adrenotools LANGUAGES CXX C)
|
||||
|
||||
set(GEN_INSTALL_TARGET OFF CACHE BOOL "")
|
||||
|
||||
add_subdirectory(lib/linkernsbypass)
|
||||
|
||||
set(LIB_SOURCES src/bcenabler.cpp
|
||||
src/driver.cpp
|
||||
include/adrenotools/bcenabler.h
|
||||
include/adrenotools/driver.h
|
||||
include/adrenotools/priv.h)
|
||||
|
||||
add_library(adrenotools ${LIB_SOURCES})
|
||||
|
||||
target_include_directories(adrenotools PUBLIC include)
|
||||
target_include_directories(adrenotools PRIVATE .)
|
||||
target_compile_options(adrenotools PRIVATE -Wall -Wextra)
|
||||
target_link_libraries(adrenotools android linkernsbypass)
|
||||
|
||||
add_subdirectory(src/hook)
|
||||
if (${BUILD_SHARED_LIBS})
|
||||
target_link_options(adrenotools PRIVATE "-Wl,-s,--exclude-libs,liblinkernsbypass.a")
|
||||
endif()
|
||||
if (${GEN_INSTALL_TARGET})
|
||||
configure_file(adrenotools.pc.in adrenotools.pc @ONLY)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/adrenotools.pc DESTINATION lib/pkgconfig)
|
||||
install(TARGETS adrenotools main_hook file_redirect_hook gsl_alloc_hook hook_impl)
|
||||
install(DIRECTORY include/
|
||||
DESTINATION include
|
||||
FILES_MATCHING PATTERN "*.h*")
|
||||
endif()
|
||||
@@ -0,0 +1,24 @@
|
||||
BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2021, Billy Laws
|
||||
|
||||
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 COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,30 @@
|
||||
### Adreno Tools
|
||||
A library for applying rootless Adreno GPU driver modifications/replacements. Currently supports loading custom GPU drivers such as [turnip](https://docs.mesa3d.org/android.html#building-using-the-android-ndk), enabling BCn textures and redirecting file operations to allow accessing shader dumps and modification of the [driver config file](https://gist.github.com/bylaws/04130932e2634d1c6a2a9729e3940d60) without root.
|
||||
|
||||
#### Documentation
|
||||
API is documented in the `include/adrenotools` headers.
|
||||
|
||||
#### Support
|
||||
Android 9+
|
||||
Arm64
|
||||
|
||||
Please create an issue if support for anything else is desired.
|
||||
|
||||
### FAQ
|
||||
|
||||
#### Is there an example project?
|
||||
|
||||
There is a simple bare-bones project [AdrenoToolsTest](https://github.com/darksylinc/AdrenoToolsTest) demonstrating how to get libadrenotools working.
|
||||
|
||||
#### How do I use this to update the drivers on my phone? Where's the apk?
|
||||
|
||||
You don't. This library is **not** for installing into Android and is **not** for end users.
|
||||
This library is aimed at other developers.
|
||||
|
||||
Each individual app must explicitly make use of libadrenotools in order to load custom drivers into an app / game.
|
||||
|
||||
#### How do I use this library to make \<favourite game\> use newer drivers?
|
||||
|
||||
See previous question. It's up to the game developer to add support & use this library.
|
||||
|
||||
You could contact them to so they add support for it; but that's out of our power.
|
||||
@@ -0,0 +1,13 @@
|
||||
prefix="@CMAKE_INSTALL_PREFIX@"
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: adrenotools
|
||||
Description:
|
||||
URL:
|
||||
Version: 1.0.0
|
||||
Libs: -L${libdir} -ladrenotools
|
||||
Libs.private:
|
||||
Requires.private:
|
||||
Cflags: -I${includedir}
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
aarch64-linux-gnu-gcc -c src/bcenabler_patch.s -o /tmp/patch.o
|
||||
aarch64-linux-gnu-objcopy -O binary -j .text /tmp/patch.o /tmp/patch.bin
|
||||
|
||||
# Must be smaller than a single page
|
||||
bin2c -o gen/bcenabler_patch.h -n PatchRawData /tmp/patch.bin
|
||||
|
||||
rm /tmp/patch.o
|
||||
rm /tmp/patch.bin
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Generated by bin2c, do not edit manually */
|
||||
|
||||
/* Contents of file /tmp/patch.bin */
|
||||
const long int PatchRawData_size = 264;
|
||||
const unsigned char PatchRawData[264] = {
|
||||
0x1F, 0x0C, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0xE0, 0x08, 0x80, 0x52, 0x3E, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x14, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0xE0, 0x08, 0x80, 0x52, 0x3A, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x10, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x00, 0x09, 0x80, 0x52, 0x36, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x18, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x00, 0x09, 0x80, 0x52, 0x32, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x1C, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x40, 0x09, 0x80, 0x52, 0x2E, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x20, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x60, 0x09, 0x80, 0x52, 0x2A, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x24, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0xA0, 0x09, 0x80, 0x52, 0x26, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x28, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0xC0, 0x09, 0x80, 0x52, 0x22, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x2C, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x00, 0x0A, 0x80, 0x52, 0x1E, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x30, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x20, 0x0A, 0x80, 0x52, 0x1A, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x34, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x60, 0x0A, 0x80, 0x52, 0x16, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x38, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x80, 0x0A, 0x80, 0x52, 0x12, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x3C, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0xE0, 0x0B, 0x80, 0x52, 0x0E, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x40, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x00, 0x0C, 0x80, 0x52, 0x0A, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x44, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x40, 0x0C, 0x80, 0x52, 0x06, 0x00, 0x00, 0x14,
|
||||
0x1F, 0x48, 0x02, 0x71, 0x61, 0x00, 0x00, 0x54, 0x60, 0x0C, 0x80, 0x52, 0x02, 0x00, 0x00, 0x14,
|
||||
0x00, 0x00, 0x80, 0x52, 0xFF, 0xFF, 0xFF, 0xFF
|
||||
};
|
||||
@@ -0,0 +1,41 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @brief Describes the level of BCeNabler support for a driver
|
||||
*/
|
||||
enum adrenotools_bcn_type {
|
||||
ADRENOTOOLS_BCN_INCOMPATIBLE, //!< Driver isn't supported by BCeNabler
|
||||
ADRENOTOOLS_BCN_BLOB, //!< Driver already supports BCn textures so BCeNabler isn't necessary
|
||||
ADRENOTOOLS_BCN_PATCH //!< Driver can be patched with BCeNabler to support BCn textures
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Checks the status of BCn support in the supplied driver
|
||||
* @param major The major part of VkPhysicalDeviceProperties::driverVersion
|
||||
* @param minor The minor part of VkPhysicalDeviceProperties::driverVersion
|
||||
* @param vendorId VkPhysicalDeviceProperties::vendorId
|
||||
*/
|
||||
enum adrenotools_bcn_type adrenotools_get_bcn_type(uint32_t major, uint32_t minor, uint32_t vendorId);
|
||||
|
||||
/**
|
||||
* @brief Patches the Adreno graphics driver to enable support for BCn compressed formats
|
||||
* @note adrenotools_get_bcn_type MUST be checked to equal ADRENOTOOLS_BCN_PATCH before calling this
|
||||
* @param vkGetPhysicalDeviceFormatPropertiesFn A pointer to vkGetPhysicalDeviceFormatProperties obtained through vkGetInstanceProcAddr. This is used to find the correct function to patch
|
||||
* @return If the patching succeeded, if false the driver will be in an undefined state
|
||||
*/
|
||||
bool adrenotools_patch_bcn(void *vkGetPhysicalDeviceFormatPropertiesFn);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,71 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "priv.h"
|
||||
|
||||
/**
|
||||
* @brief Opens a new libvulkan.so instance according to `flags`
|
||||
* @remark IMPORTANT: The app MUST be packaged w/ useLegacyPackaging = true. The reason for this is
|
||||
* that we install the hook in hookLibDir; but this folder won't be set correctly when useLegacyPackaging == false
|
||||
* because Android expects to read the *.so directly from the apk (instead of decompressing them into nativeLibraryDir).
|
||||
* @param dlopenMode The dlopen mode to use when opening libvulkan
|
||||
* @param featureFlags Which adrenotools driver features to enable
|
||||
* @param tmpLibDir A writable directory to hold patched libraries, only used on api < 29 due to the lack of memfd support. If nullptr is passed and the API version is < 29 memfd usage will be attempted and if unsupported nullptr will be returned
|
||||
* @param hookLibDir The directory holding the built hooks.
|
||||
* IMPORTANT: This path MUST point to whatever `getApplicationInfo().nativeLibraryDir` (Kotlin code) returns.
|
||||
* Failing to do so will result in this function returning a valid ptr but then the hook will fail and either the original driver is loaded as fallback, or vkEnumeratePhysicalDevices returns 0 devices.
|
||||
* @param customDriverDir The directory to load a custom GPU driver named according to `customDriverName` from. Only used if ADRENOTOOLS_DRIVER_CUSTOM is set in `featureFlags`.
|
||||
* IMPORTANT: This path MUST NOT be on sdcard/storage. i.e. use ANativeActivity::internalDataPath and often looks like "/data/user/0/com.example.app/files/".
|
||||
* Otherwise you will get permission denied because dlopen() can't be done on *.so libraries that any random user or application can manipulate (which would be a security risk).
|
||||
* @param customDriverName The soname of the custom driver to load. Only used if ADRENOTOOLS_DRIVER_CUSTOM is set in `featureFlags`
|
||||
* @param fileRedirectDir The directory which to redirect all file accesses performed by the driver to. Only used if ADRENOTOOLS_DRIVER_FILE_REDIRECT is set in `featureFlags`
|
||||
* @param userMappingHandle A pointer to a void* which will be set to the mapping handle if ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT is set in `featureFlags`
|
||||
*/
|
||||
void *adrenotools_open_libvulkan(int dlopenMode, int featureFlags, const char *tmpLibDir, const char *hookLibDir, const char *customDriverDir, const char *customDriverName, const char *fileRedirectDir, void **userMappingHandle);
|
||||
|
||||
/**
|
||||
* @brief Imports the given CPU mapped memory range into the GSL allocator. This should then be followed by a call to vkAllocateMemory with a matching size which will return a VkDeviceMemory view over the input region
|
||||
* @param handle Mapping handle that was returned by adrenotools_open_libvulkan
|
||||
* @param hostPtr The host pointer to import
|
||||
* @param size The size of the region to import
|
||||
* @return True on success
|
||||
*/
|
||||
bool adrenotools_import_user_mem(void *handle, void *hostPtr, uint64_t size);
|
||||
|
||||
/**
|
||||
* @brief Maps GPU memory and imports it into the GSL allocator. This should then be followed by a call to adrenotools_mem_cpu_map to map the memory on the CPU, then finally vkAllocateMemory with a matching size
|
||||
* @param handle Mapping handle that was returned by adrenotools_open_libvulkan
|
||||
* @param size Pointer to a variable containing the size of the region to import, will be updated to contain the required size of the region to allocate CPU side
|
||||
* @return true on success
|
||||
*/
|
||||
bool adrenotools_mem_gpu_allocate(void *handle, uint64_t *size);
|
||||
|
||||
/**
|
||||
* @brief Maps the last mapping allocated using adrenotools_mem_gpu_allocate into the given host memory region, such that vkAllocateMemory can then be called
|
||||
* @param handle Mapping handle that was returned by adrenotools_open_libvulkan
|
||||
* @param hostPtr A pointer to where the mapping should be mapped
|
||||
* @param size The size of the mapping. MUST be equal to the size returned by adrenotools_mem_gpu_allocate
|
||||
*/
|
||||
bool adrenotools_mem_cpu_map(void *handle, void *hostPtr, uint64_t size);
|
||||
|
||||
/**
|
||||
* @note This function should be called after adrenotools_open_libvulkan and Vulkan driver init to check if the mapping import hook loaded successfully
|
||||
* @return True if the mapping was successfully imported (or initialization succeeded)
|
||||
*/
|
||||
bool adrenotools_validate_gpu_mapping(void *handle);
|
||||
|
||||
/**
|
||||
* @brief Provides a way to force the GPU to run at the maximum possible clocks (thermal constraints will still be applied)
|
||||
*/
|
||||
void adrenotools_set_turbo(bool turbo);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @brief Bitfield enum of additional driver features that can be used with adrenotools_open_libvulkan
|
||||
*/
|
||||
enum {
|
||||
ADRENOTOOLS_DRIVER_CUSTOM = 1 << 0,
|
||||
ADRENOTOOLS_DRIVER_FILE_REDIRECT = 1 << 1,
|
||||
ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT = 1 << 2,
|
||||
};
|
||||
|
||||
#define ADRENOTOOLS_GPU_MAPPING_SUCCEEDED_MAGIC 0xDEADBEEF
|
||||
|
||||
/**
|
||||
* @brief A replacement GPU memory mapping for use with ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT
|
||||
*/
|
||||
struct adrenotools_gpu_mapping {
|
||||
void *host_ptr;
|
||||
uint64_t gpu_addr; //!< The GPU address of the mapping to import, if mapping import/init succeeds this will be set to ADRENOTOOLS_GPU_MAPPING_SUCCEEDED_MAGIC
|
||||
uint64_t size;
|
||||
uint64_t flags;
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
if(NOT ${CMAKE_ANDROID_ARCH_ABI} STREQUAL arm64-v8a)
|
||||
message(FATAL_ERROR "Unsupported target architecture: ${CMAKE_ANDROID_ARCH_ABI}. Please make an issue on the repo!")
|
||||
endif()
|
||||
|
||||
project(linkernsbypass LANGUAGES CXX)
|
||||
|
||||
set(SOURCES android_linker_ns.cpp
|
||||
android_linker_ns.h
|
||||
elf_soname_patcher.cpp
|
||||
elf_soname_patcher.h)
|
||||
|
||||
add_library(linkernsbypass STATIC ${SOURCES})
|
||||
|
||||
|
||||
target_compile_options(linkernsbypass PRIVATE -Wall -Wextra)
|
||||
target_link_libraries(linkernsbypass android dl)
|
||||
target_include_directories(linkernsbypass PUBLIC .)
|
||||
@@ -0,0 +1,24 @@
|
||||
BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2021, Billy Laws
|
||||
|
||||
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 COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,9 @@
|
||||
### Android Linker Namespace Bypass Library
|
||||
Provides access to the hidden linker namespace functionality in Android 9+ and exposes an interface for hooking libraries similar to a runtime equivalent of `LD_PRELOAD`.
|
||||
See the `android_linker_ns.h` header for an API reference.
|
||||
|
||||
#### Support
|
||||
Android 9+
|
||||
Arm64
|
||||
|
||||
Android 8 and arm32 could be supported with some trivial changes, feel free to open an issue if you have a use for this library on either of them.
|
||||
@@ -0,0 +1,192 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#include <array>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <errno.h>
|
||||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <android/dlext.h>
|
||||
#include <android/log.h>
|
||||
#include <android/api-level.h>
|
||||
#include <sys/mman.h>
|
||||
#include "elf_soname_patcher.h"
|
||||
#include "android_linker_ns.h"
|
||||
|
||||
using loader_android_create_namespace_t = android_namespace_t *(*)(const char *, const char *, const char *, uint64_t, const char *, android_namespace_t *, const void *);
|
||||
static loader_android_create_namespace_t loader_android_create_namespace;
|
||||
|
||||
static bool lib_loaded;
|
||||
|
||||
|
||||
/* Public API */
|
||||
bool linkernsbypass_load_status() {
|
||||
return lib_loaded;
|
||||
}
|
||||
|
||||
struct android_namespace_t *android_create_namespace(const char *name,
|
||||
const char *ld_library_path,
|
||||
const char *default_library_path,
|
||||
uint64_t type,
|
||||
const char *permitted_when_isolated_path,
|
||||
android_namespace_t *parent_namespace) {
|
||||
auto caller{__builtin_return_address(0)};
|
||||
return loader_android_create_namespace(name, ld_library_path, default_library_path, type,
|
||||
permitted_when_isolated_path, parent_namespace, caller);
|
||||
}
|
||||
|
||||
struct android_namespace_t *android_create_namespace_escape(const char *name,
|
||||
const char *ld_library_path,
|
||||
const char *default_library_path,
|
||||
uint64_t type,
|
||||
const char *permitted_when_isolated_path,
|
||||
android_namespace_t *parent_namespace) {
|
||||
auto caller{reinterpret_cast<void *>(&dlopen)};
|
||||
return loader_android_create_namespace(name, ld_library_path, default_library_path, type,
|
||||
permitted_when_isolated_path, parent_namespace, caller);
|
||||
}
|
||||
|
||||
android_get_exported_namespace_t android_get_exported_namespace;
|
||||
|
||||
android_link_namespaces_all_libs_t android_link_namespaces_all_libs;
|
||||
|
||||
android_link_namespaces_t android_link_namespaces;
|
||||
|
||||
bool linkernsbypass_link_namespace_to_default_all_libs(android_namespace_t *to) {
|
||||
// Creating a shared namespace with the default parent will give a copy of the default namespace that we can actually access
|
||||
// This is needed since there is no way to access a direct handle to the default namespace as it's not exported
|
||||
static auto defaultNs{android_create_namespace_escape("default_copy", nullptr, nullptr, ANDROID_NAMESPACE_TYPE_SHARED, nullptr, nullptr)};
|
||||
return android_link_namespaces_all_libs(to, defaultNs);
|
||||
}
|
||||
|
||||
void *linkernsbypass_namespace_dlopen(const char *filename, int flags, android_namespace_t *ns) {
|
||||
android_dlextinfo extInfo{
|
||||
.flags = ANDROID_DLEXT_USE_NAMESPACE,
|
||||
.library_namespace = ns
|
||||
};
|
||||
|
||||
return android_dlopen_ext(filename, flags, &extInfo);
|
||||
}
|
||||
|
||||
#ifndef __NR_memfd_create
|
||||
#if defined(__aarch64__)
|
||||
#define __NR_memfd_create 279
|
||||
#else
|
||||
#error Unsupported target architecture!
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void *linkernsbypass_namespace_dlopen_unique(const char *libPath, const char *libTargetDir, int flags, android_namespace_t *ns) {
|
||||
static std::array<char, PATH_MAX> PathBuf{};
|
||||
|
||||
// Used as a unique ID for overwriting soname and creating target lib files
|
||||
static uint16_t TargetId{};
|
||||
|
||||
int libTargetFd{[&] () {
|
||||
if (libTargetDir) {
|
||||
snprintf(PathBuf.data(), PathBuf.size(), "%s/%d_patched.so", libTargetDir, TargetId);
|
||||
return open(PathBuf.data(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
|
||||
} else {
|
||||
// If memfd isn't supported errno will contain ENOSYS after calling
|
||||
errno = 0;
|
||||
int fd{static_cast<int>(syscall(__NR_memfd_create, libPath, 0))};
|
||||
if (errno == ENOSYS || fd < 0)
|
||||
return -1;
|
||||
else
|
||||
return fd;
|
||||
}
|
||||
}()};
|
||||
if (libTargetFd == -1)
|
||||
return nullptr;
|
||||
|
||||
// Partially overwrite soname with 3 digits (replacing lib...) with to make sure a cached so isn't loaded
|
||||
std::array<char, 3> sonameOverwrite{};
|
||||
snprintf(sonameOverwrite.data(), sonameOverwrite.size(), "%03u", TargetId++);
|
||||
|
||||
if (!elf_soname_patch(libPath, libTargetFd, sonameOverwrite.data()))
|
||||
return nullptr;
|
||||
|
||||
// Load our patched library into the hook namespace
|
||||
android_dlextinfo hookExtInfo{
|
||||
.flags = ANDROID_DLEXT_USE_NAMESPACE | ANDROID_DLEXT_USE_LIBRARY_FD,
|
||||
.library_fd = libTargetFd,
|
||||
.library_namespace = ns
|
||||
};
|
||||
|
||||
// Make a path that looks about right
|
||||
snprintf(PathBuf.data(), PathBuf.size(), "/proc/self/fd/%d", libTargetFd);
|
||||
|
||||
return android_dlopen_ext(PathBuf.data(), flags, &hookExtInfo);
|
||||
}
|
||||
|
||||
static void *align_ptr(void *ptr) {
|
||||
return reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(ptr) & ~(getpagesize() - 1));
|
||||
}
|
||||
|
||||
/* Private */
|
||||
__attribute__((constructor)) static void resolve_linker_symbols() {
|
||||
using loader_dlopen_t = void *(*)(const char *, int, const void *);
|
||||
|
||||
if (android_get_device_api_level() < 28)
|
||||
return;
|
||||
|
||||
// ARM64 specific function walking to locate the internal dlopen handler
|
||||
auto loader_dlopen{[]() {
|
||||
union BranchLinked {
|
||||
uint32_t raw;
|
||||
|
||||
struct {
|
||||
int32_t offset : 26; //!< 26-bit branch offset
|
||||
uint8_t sig : 6; //!< 6-bit signature
|
||||
};
|
||||
|
||||
bool Verify() {
|
||||
return sig == 0x25;
|
||||
}
|
||||
};
|
||||
static_assert(sizeof(BranchLinked) == 4, "BranchLinked is wrong size");
|
||||
|
||||
// Some devices ship with --X mapping for exexecutables so work around that
|
||||
mprotect(align_ptr(reinterpret_cast<void *>(&dlopen)), getpagesize(), PROT_WRITE | PROT_READ | PROT_EXEC);
|
||||
|
||||
// dlopen is just a wrapper for __loader_dlopen that passes the return address as the third arg hence we can just walk it to find __loader_dlopen
|
||||
auto blInstr{reinterpret_cast<BranchLinked *>(&dlopen)};
|
||||
while (!blInstr->Verify())
|
||||
blInstr++;
|
||||
|
||||
return reinterpret_cast<loader_dlopen_t>(blInstr + blInstr->offset);
|
||||
}()};
|
||||
|
||||
// Protect the loader_dlopen function to remove the BTI attribute (since this is an internal function that isn't intended to be jumped indirectly to)
|
||||
mprotect(align_ptr(reinterpret_cast<void *>(&loader_dlopen)), getpagesize(), PROT_WRITE | PROT_READ | PROT_EXEC);
|
||||
|
||||
// Passing dlopen as a caller address tricks the linker into using the internal unrestricted namespace letting us access libraries that are normally forbidden in the classloader namespace imposed on apps
|
||||
auto ldHandle{loader_dlopen("ld-android.so", RTLD_LAZY, reinterpret_cast<void *>(&dlopen))};
|
||||
if (!ldHandle)
|
||||
return;
|
||||
|
||||
android_link_namespaces_all_libs = reinterpret_cast<android_link_namespaces_all_libs_t>(dlsym(ldHandle, "__loader_android_link_namespaces_all_libs"));
|
||||
if (!android_link_namespaces_all_libs)
|
||||
return;
|
||||
|
||||
android_link_namespaces = reinterpret_cast<android_link_namespaces_t>(dlsym(ldHandle, "__loader_android_link_namespaces"));
|
||||
if (!android_link_namespaces)
|
||||
return;
|
||||
|
||||
auto libdlAndroidHandle{loader_dlopen("libdl_android.so", RTLD_LAZY, reinterpret_cast<void *>(&dlopen))};
|
||||
if (!libdlAndroidHandle)
|
||||
return;
|
||||
|
||||
loader_android_create_namespace = reinterpret_cast<loader_android_create_namespace_t>(dlsym(libdlAndroidHandle, "__loader_android_create_namespace"));
|
||||
if (!loader_android_create_namespace)
|
||||
return;
|
||||
|
||||
android_get_exported_namespace = reinterpret_cast<android_get_exported_namespace_t>(dlsym(libdlAndroidHandle, "__loader_android_get_exported_namespace"));
|
||||
if (!android_get_exported_namespace)
|
||||
return;
|
||||
|
||||
// Lib is now safe to use
|
||||
lib_loaded = true;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// https://cs.android.com/android/platform/superproject/+/0a492a4685377d41fef2b12e9af4ebfa6feef9c2:art/libnativeloader/include/nativeloader/dlext_namespaces.h;l=25;bpv=1;bpt=1
|
||||
enum {
|
||||
ANDROID_NAMESPACE_TYPE_REGULAR = 0,
|
||||
ANDROID_NAMESPACE_TYPE_ISOLATED = 1,
|
||||
ANDROID_NAMESPACE_TYPE_SHARED = 2,
|
||||
ANDROID_NAMESPACE_TYPE_EXEMPT_LIST_ENABLED = 0x08000000,
|
||||
ANDROID_NAMESPACE_TYPE_ALSO_USED_AS_ANONYMOUS = 0x10000000,
|
||||
ANDROID_NAMESPACE_TYPE_SHARED_ISOLATED = ANDROID_NAMESPACE_TYPE_SHARED | ANDROID_NAMESPACE_TYPE_ISOLATED,
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Checks if linkernsbypass loaded successfully and is safe to use
|
||||
* @note IMPORTANT: This should be called before any calls to the rest of the library are made
|
||||
* @return true if loading succeeded
|
||||
*/
|
||||
bool linkernsbypass_load_status();
|
||||
|
||||
// https://cs.android.com/android/platform/superproject/+/0a492a4685377d41fef2b12e9af4ebfa6feef9c2:art/libnativeloader/include/nativeloader/dlext_namespaces.h;l=86;bpv=1;bpt=1
|
||||
struct android_namespace_t *android_create_namespace(const char *name,
|
||||
const char *ld_library_path,
|
||||
const char *default_library_path,
|
||||
uint64_t type,
|
||||
const char *permitted_when_isolated_path,
|
||||
struct android_namespace_t *parent_namespace);
|
||||
|
||||
struct android_namespace_t *android_create_namespace_escape(const char *name,
|
||||
const char *ld_library_path,
|
||||
const char *default_library_path,
|
||||
uint64_t type,
|
||||
const char *permitted_when_isolated_path,
|
||||
struct android_namespace_t *parent_namespace);
|
||||
|
||||
// https://cs.android.com/android/platform/superproject/+/dcb01ef31026b3b8aeb72dada3370af63fe66bbd:bionic/linker/linker.cpp;l=3554
|
||||
typedef struct android_namespace_t *(*android_get_exported_namespace_t)(const char *);
|
||||
extern android_get_exported_namespace_t android_get_exported_namespace;
|
||||
|
||||
// https://cs.android.com/android/platform/superproject/+/dcb01ef31026b3b8aeb72dada3370af63fe66bbd:bionic/linker/linker.cpp;l=2499
|
||||
typedef bool (*android_link_namespaces_all_libs_t)(struct android_namespace_t *, struct android_namespace_t *);
|
||||
extern android_link_namespaces_all_libs_t android_link_namespaces_all_libs;
|
||||
|
||||
// https://cs.android.com/android/platform/superproject/+/dcb01ef31026b3b8aeb72dada3370af63fe66bbd:bionic/linker/linker.cpp;l=2473
|
||||
typedef bool (*android_link_namespaces_t)(struct android_namespace_t *, struct android_namespace_t *, const char *);
|
||||
extern android_link_namespaces_t android_link_namespaces;
|
||||
|
||||
/**
|
||||
* @brief Like android_link_namespaces_all_libs but links from the default namespace
|
||||
*/
|
||||
bool linkernsbypass_link_namespace_to_default_all_libs(struct android_namespace_t *to);
|
||||
|
||||
/**
|
||||
* @brief Loads a library into a namespace
|
||||
* @note IMPORTANT: If `filename` is compiled with the '-z global' linker flag and RTLD_GLOBAL is supplied in `flags` the library will be added to the namespace's LD_PRELOAD list
|
||||
* @param filename The name of the library to load
|
||||
* @param flags The rtld flags for `filename`
|
||||
* @param ns The namespace to dlopen into
|
||||
*/
|
||||
void *linkernsbypass_namespace_dlopen(const char *filename, int flags, struct android_namespace_t *ns);
|
||||
|
||||
/**
|
||||
* @brief Force loads a unique instance of a library into a namespace
|
||||
* @param libPath The path to the library to load with hooks applied
|
||||
* @param libTargetDir A temporary directory to hold the soname patched library at `libPath`, will attempt to use memfd if nullptr
|
||||
* @param flags The rtld flags for `libName`
|
||||
* @param ns The namespace to dlopen into
|
||||
*/
|
||||
void *linkernsbypass_namespace_dlopen_unique(const char *libPath, const char *libTargetDir, int flags, struct android_namespace_t *ns);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,67 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#include <initializer_list>
|
||||
#include <cstdint>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <link.h>
|
||||
#include <elf.h>
|
||||
#include "elf_soname_patcher.h"
|
||||
|
||||
bool elf_soname_patch(const char *libPath, int targetFd, const char *sonamePatch) {
|
||||
struct stat libStat{};
|
||||
if (stat(libPath, &libStat))
|
||||
return false;
|
||||
|
||||
if (ftruncate(targetFd, libStat.st_size) == -1)
|
||||
return false;
|
||||
|
||||
// Map the memory so we can read our elf into it
|
||||
auto mappedLib{reinterpret_cast<uint8_t *>(mmap(nullptr, libStat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, targetFd, 0))};
|
||||
if (!mappedLib)
|
||||
return false;
|
||||
|
||||
int libFd{open(libPath, O_RDONLY)};
|
||||
if (libFd == false)
|
||||
return false;
|
||||
|
||||
// Read lib elf into target file
|
||||
if (read(libFd, mappedLib, libStat.st_size) != libStat.st_size)
|
||||
return false;
|
||||
|
||||
// No longer needed
|
||||
close(libFd);
|
||||
|
||||
auto eHdr{reinterpret_cast<ElfW(Ehdr) *>(mappedLib)};
|
||||
auto sHdrEntries{reinterpret_cast<ElfW(Shdr) *>(mappedLib + eHdr->e_shoff)};
|
||||
|
||||
// Iterate over section headers to find the .dynamic section
|
||||
for (ElfW(Half) i{}; i < eHdr->e_shnum; i++) {
|
||||
auto &sHdr{sHdrEntries[i]};
|
||||
if (sHdr.sh_type == SHT_DYNAMIC) {
|
||||
auto strTab{reinterpret_cast<char *>(mappedLib + sHdrEntries[sHdr.sh_link].sh_offset)};
|
||||
auto dynHdrEntries{reinterpret_cast<ElfW(Dyn) *>(mappedLib + sHdr.sh_offset)};
|
||||
|
||||
// Iterate over .dynamic entries to find DT_SONAME
|
||||
for (ElfW(Xword) k{}; k < (sHdr.sh_size / sHdr.sh_entsize); k++) {
|
||||
auto &dynHdrEntry{dynHdrEntries[k]};
|
||||
if (dynHdrEntry.d_tag == DT_SONAME) {
|
||||
char *soname{strTab + dynHdrEntry.d_un.d_val};
|
||||
|
||||
// Partially replace the old soname with the soname patch
|
||||
size_t charIdx{};
|
||||
for (; soname[charIdx] != 0 && sonamePatch[charIdx] != 0; charIdx++)
|
||||
soname[charIdx] = sonamePatch[charIdx];
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Overwrites a portion of the soname in an elf by loading it into shared memory and modifying .dynstr
|
||||
* @note IMPORTANT: The supplied soname patch will overwrite the first strlen(sonamePatch) chars of the soname
|
||||
* @param elfPath Full path to the elf to patch
|
||||
* @param targetFd FD to use for storing the patched library
|
||||
* @return True on success
|
||||
*/
|
||||
bool elf_soname_patch(const char *elfPath, int targetFd, const char *newSoname);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
linkernsbypass_files = files(['android_linker_ns.cpp', 'android_linker_ns.h', 'elf_soname_patcher.cpp', 'elf_soname_patcher.h'])
|
||||
linkernsbypass_inc = include_directories('.')
|
||||
|
||||
libdl_dep = cpp.find_library('dl')
|
||||
|
||||
linkernsbypass_lib = static_library (
|
||||
'linkernsbypass',
|
||||
linkernsbypass_files,
|
||||
c_args: (['-Wall', '-Wextra']),
|
||||
cpp_args: (['-Wall', '-Wextra']),
|
||||
include_directories: ([linkernsbypass_inc, adrenotools_inc]),
|
||||
dependencies: ([libandroid_dep, libdl_dep])
|
||||
)
|
||||
|
||||
# linkernsbypass_include = static_library('linkernsbypass', sources)
|
||||
# target_compile_options(['linkernsbypass', 'PRIVATE', '-Wall', '-Wextra'])
|
||||
# target_link_libraries(['linkernsbypass', 'android', 'dl'])
|
||||
# target_include_directories(['linkernsbypass', 'PUBLIC', '.'])
|
||||
@@ -0,0 +1,50 @@
|
||||
project(
|
||||
'adrenotools',
|
||||
['cpp', 'c'],
|
||||
default_options : ['default_library=static']
|
||||
)
|
||||
|
||||
cpp = meson.get_compiler('cpp')
|
||||
c = meson.get_compiler('c')
|
||||
|
||||
adrenotools_inc = include_directories('include')
|
||||
|
||||
libandroid_dep = cpp.find_library('android')
|
||||
liblog_dep = c.find_library('log')
|
||||
|
||||
subdir('lib/linkernsbypass')
|
||||
|
||||
linkernsbypass_dep = declare_dependency(
|
||||
include_directories: linkernsbypass_inc,
|
||||
link_with: linkernsbypass_lib,
|
||||
link_args: '-Wl,-s,--exclude-libs,liblinkernsbypass.a'
|
||||
)
|
||||
|
||||
adrenotools_sources = ['src/bcenabler.cpp', 'src/driver.cpp', 'include/adrenotools/bcenabler.h', 'include/adrenotools/driver.h', 'include/adrenotools/priv.h']
|
||||
|
||||
adrenotools_lib = shared_library(
|
||||
'adrenotools',
|
||||
adrenotools_sources,
|
||||
c_args: (['-Wall', '-Wextra']),
|
||||
cpp_args: (['-Wall', '-Wextra']),
|
||||
include_directories: adrenotools_inc,
|
||||
dependencies: ([linkernsbypass_dep, libandroid_dep, liblog_dep]),
|
||||
install: true
|
||||
)
|
||||
|
||||
subdir('src/hook')
|
||||
|
||||
# target_include_directories(['adrenotools', 'PUBLIC', 'include'])
|
||||
# target_include_directories(['adrenotools', 'PRIVATE', '.'])
|
||||
# target_compile_options(['adrenotools', 'PRIVATE', '-Wall', '-Wextra'])
|
||||
# target_link_libraries(['adrenotools', 'android', 'linkernsbypass'])
|
||||
# hooks_deb = subproject('src/hook')
|
||||
# if build_shared_libs
|
||||
# target_link_options(['adrenotools', 'PRIVATE', '-Wl,-s,--exclude-libs,liblinkernsbypass.a'])
|
||||
# endif
|
||||
# if gen_install_target
|
||||
# configure_file(['adrenotools.pc.in', 'adrenotools.pc', '@ONLY'])
|
||||
# install(['FILES', cmake_binary_dir, '/adrenotools.pc', 'DESTINATION', 'lib/pkgconfig'])
|
||||
# install(['TARGETS', 'adrenotools', 'main_hook', 'file_redirect_hook', 'gsl_alloc_hook', 'hook_impl'])
|
||||
# install(['DIRECTORY', 'include/', 'DESTINATION', 'include', 'FILES_MATCHING', 'PATTERN', '*.h*'])
|
||||
# endif
|
||||
@@ -0,0 +1,135 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
#include <adrenotools/bcenabler.h>
|
||||
#include "gen/bcenabler_patch.h"
|
||||
|
||||
enum adrenotools_bcn_type adrenotools_get_bcn_type(uint32_t major, uint32_t minor, uint32_t vendorId) {
|
||||
if (vendorId != 0x5143 || major != 512)
|
||||
return ADRENOTOOLS_BCN_INCOMPATIBLE;
|
||||
|
||||
if (minor >= 514)
|
||||
return ADRENOTOOLS_BCN_BLOB;
|
||||
|
||||
return ADRENOTOOLS_BCN_PATCH;
|
||||
}
|
||||
|
||||
// Searches /proc/self/maps for the first free page after the given address
|
||||
static void *find_free_page(uintptr_t address) {
|
||||
std::ifstream procMaps("/proc/self/maps");
|
||||
|
||||
uintptr_t end{};
|
||||
|
||||
for (std::string line; std::getline(procMaps, line); ) {
|
||||
std::size_t addressSeparator{line.find('-')};
|
||||
uintptr_t start{std::strtoull(line.substr(0, addressSeparator).c_str(), nullptr, 16)};
|
||||
|
||||
if (end > address && start != end)
|
||||
return reinterpret_cast<void *>(end);
|
||||
|
||||
end = std::strtoull(line.substr(addressSeparator + 1, line.find( ' ')).c_str(), nullptr, 16);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static void *align_ptr(void *ptr) {
|
||||
return reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(ptr) & ~(getpagesize() - 1));
|
||||
}
|
||||
|
||||
bool adrenotools_patch_bcn(void *vkGetPhysicalDeviceFormatPropertiesFn) {
|
||||
union Branch {
|
||||
struct {
|
||||
int32_t offset : 26; //!< 26-bit branch offset
|
||||
uint8_t sig : 6; //!< 6-bit signature (0x25 for linked, 0x5 for jump)
|
||||
};
|
||||
|
||||
uint32_t raw{};
|
||||
};
|
||||
static_assert(sizeof(Branch) == 4, "Branch size is invalid");
|
||||
|
||||
// Find the nearest unmapped page where we can place patch code
|
||||
void *patchPage{find_free_page(reinterpret_cast<uintptr_t>(vkGetPhysicalDeviceFormatPropertiesFn))};
|
||||
if (!patchPage)
|
||||
return false;
|
||||
|
||||
// Map patch region
|
||||
void *ptr{mmap(patchPage, getpagesize(), PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, 0, 0)};
|
||||
if (ptr != patchPage)
|
||||
return false;
|
||||
|
||||
// Allow reading from the blob's .text section since some devices enable ---X
|
||||
// Protect two pages just in case we happen to land on a page boundary
|
||||
if (mprotect(align_ptr(vkGetPhysicalDeviceFormatPropertiesFn), getpagesize() * 2, PROT_WRITE | PROT_READ | PROT_EXEC))
|
||||
return false;
|
||||
|
||||
// First branch in this function is targeted at the function we want to patch
|
||||
Branch *blInst{reinterpret_cast<Branch *>(vkGetPhysicalDeviceFormatPropertiesFn)};
|
||||
|
||||
constexpr uint8_t BranchLinkSignature{0x25};
|
||||
|
||||
// Search for first instruction with the BL signature
|
||||
while (blInst->sig != BranchLinkSignature)
|
||||
blInst++;
|
||||
|
||||
// Internal QGL format conversion function that we need to patch
|
||||
uint32_t *convFormatFn{reinterpret_cast<uint32_t *>(blInst) + blInst->offset};
|
||||
|
||||
// See mprotect call above
|
||||
// This time we also set PROT_WRITE so we can write our patch to the page
|
||||
if (mprotect(align_ptr(convFormatFn), getpagesize() * 2, PROT_WRITE | PROT_READ | PROT_EXEC))
|
||||
return false;
|
||||
|
||||
// This would normally set the default result to 0 (error) in the format not found case
|
||||
constexpr uint32_t ClearResultSignature{0x2a1f03e0};
|
||||
|
||||
// We replace it with a branch to our own extended if statement which adds in the extra things for BCn
|
||||
uint32_t *clearResultPtr{convFormatFn};
|
||||
while (*clearResultPtr != ClearResultSignature)
|
||||
clearResultPtr++;
|
||||
|
||||
// Ensure we don't write out of bounds
|
||||
if (PatchRawData_size > getpagesize())
|
||||
return false;
|
||||
|
||||
// Copy the patch function to our mapped page
|
||||
memcpy(patchPage, PatchRawData, PatchRawData_size);
|
||||
|
||||
// Fixup the patch code so it correctly returns back to the driver after running
|
||||
constexpr uint32_t PatchReturnFixupMagic{0xffffffff};
|
||||
constexpr uint8_t BranchSignature{0x5};
|
||||
|
||||
uint32_t *fixupTargetPtr{clearResultPtr + 1};
|
||||
auto *fixupPtr{reinterpret_cast<uint32_t *>(patchPage)};
|
||||
for (long unsigned int i{}; i < (PatchRawData_size / sizeof(uint32_t)); i++, fixupPtr++) {
|
||||
if (*fixupPtr == PatchReturnFixupMagic) {
|
||||
Branch branchToDriver{
|
||||
{
|
||||
.offset = static_cast<int32_t>((reinterpret_cast<intptr_t>(fixupTargetPtr) - reinterpret_cast<intptr_t>(fixupPtr)) / sizeof(int32_t)),
|
||||
.sig = BranchSignature,
|
||||
}
|
||||
};
|
||||
|
||||
*fixupPtr = branchToDriver.raw;
|
||||
}
|
||||
}
|
||||
|
||||
Branch branchToPatch{
|
||||
{
|
||||
.offset = static_cast<int32_t>((reinterpret_cast<intptr_t>(patchPage) - reinterpret_cast<intptr_t>(clearResultPtr)) / sizeof(int32_t)),
|
||||
.sig = BranchSignature,
|
||||
}
|
||||
};
|
||||
|
||||
*clearResultPtr = branchToPatch.raw;
|
||||
|
||||
asm volatile("ISB");
|
||||
|
||||
// Done!
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
cmp w0, 131
|
||||
bne .L2
|
||||
mov w0, 71
|
||||
b .L3
|
||||
.L2:
|
||||
cmp w0, 133
|
||||
bne .L4
|
||||
mov w0, 71
|
||||
b .L3
|
||||
.L4:
|
||||
cmp w0, 132
|
||||
bne .L5
|
||||
mov w0, 72
|
||||
b .L3
|
||||
.L5:
|
||||
cmp w0, 134
|
||||
bne .L6
|
||||
mov w0, 72
|
||||
b .L3
|
||||
.L6:
|
||||
cmp w0, 135
|
||||
bne .L7
|
||||
mov w0, 74
|
||||
b .L3
|
||||
.L7:
|
||||
cmp w0, 136
|
||||
bne .L8
|
||||
mov w0, 75
|
||||
b .L3
|
||||
.L8:
|
||||
cmp w0, 137
|
||||
bne .L9
|
||||
mov w0, 77
|
||||
b .L3
|
||||
.L9:
|
||||
cmp w0, 138
|
||||
bne .L10
|
||||
mov w0, 78
|
||||
b .L3
|
||||
.L10:
|
||||
cmp w0, 139
|
||||
bne .L11
|
||||
mov w0, 80
|
||||
b .L3
|
||||
.L11:
|
||||
cmp w0, 140
|
||||
bne .L12
|
||||
mov w0, 81
|
||||
b .L3
|
||||
.L12:
|
||||
cmp w0, 141
|
||||
bne .L13
|
||||
mov w0, 83
|
||||
b .L3
|
||||
.L13:
|
||||
cmp w0, 142
|
||||
bne .L14
|
||||
mov w0, 84
|
||||
b .L3
|
||||
.L14:
|
||||
cmp w0, 143
|
||||
bne .L15
|
||||
mov w0, 95
|
||||
b .L3
|
||||
.L15:
|
||||
cmp w0, 144
|
||||
bne .L16
|
||||
mov w0, 96
|
||||
b .L3
|
||||
.L16:
|
||||
cmp w0, 145
|
||||
bne .L17
|
||||
mov w0, 98
|
||||
b .L3
|
||||
.L17:
|
||||
cmp w0, 146
|
||||
bne .L18
|
||||
mov w0, 99
|
||||
b .L3
|
||||
.L18:
|
||||
mov w0, 0
|
||||
.L3:
|
||||
.word 0xffffffff // Branch fixup
|
||||
@@ -0,0 +1,234 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <dlfcn.h>
|
||||
#include <fcntl.h>
|
||||
#include <android/api-level.h>
|
||||
#include <android/log.h>
|
||||
#include <android_linker_ns.h>
|
||||
#include "hook/kgsl.h"
|
||||
#include "hook/hook_impl_params.h"
|
||||
#include <adrenotools/driver.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void *adrenotools_open_libvulkan(int dlopenFlags, int featureFlags, const char *tmpLibDir, const char *hookLibDir, const char *customDriverDir, const char *customDriverName, const char *fileRedirectDir, void **userMappingHandle) {
|
||||
// Bail out if linkernsbypass failed to load, this probably means we're on api < 28
|
||||
if (!linkernsbypass_load_status()) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "Could not load linkernsbypass\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Use memfd on Q+ since it's guaranteed to work, but only if tmpLibDir wasn't set
|
||||
if (android_get_device_api_level() >= 29 && !tmpLibDir)
|
||||
tmpLibDir = nullptr;
|
||||
|
||||
// Verify that params for specific features are only passed if they are enabled
|
||||
if (!(featureFlags & ADRENOTOOLS_DRIVER_FILE_REDIRECT) && fileRedirectDir) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_FILE_REDIRECT present but no file redirect folder found\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!(featureFlags & ADRENOTOOLS_DRIVER_CUSTOM) && (customDriverDir || customDriverName)) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_CUSTOM present but no custom driver name or folder found\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!(featureFlags & ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT) && userMappingHandle) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT present but no user mapping handle found\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Verify that params for enabled features are correct
|
||||
struct stat buf{};
|
||||
|
||||
if (featureFlags & ADRENOTOOLS_DRIVER_CUSTOM) {
|
||||
if (!customDriverName || !customDriverDir) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_CUSTOM present but no custom driver name or folder parameter was specified\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (stat((std::string(customDriverDir) + customDriverName).c_str(), &buf) != 0) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_CUSTOM present but importable driver doesn't exist'\n");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// Verify that params for enabled features are correct
|
||||
if (featureFlags & ADRENOTOOLS_DRIVER_FILE_REDIRECT) {
|
||||
if (!fileRedirectDir) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_REDIRECT_DIR present but no folder parameter was found\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (stat(fileRedirectDir, &buf) != 0) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "ADRENOTOOLS_DRIVER_REDIRECT_DIR present but specified redirect folder doesn't exist\n");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// Create a namespace that can isolate our hook from the classloader namespace
|
||||
auto hookNs{android_create_namespace("adrenotools-libvulkan", hookLibDir, nullptr, ANDROID_NAMESPACE_TYPE_SHARED, nullptr, nullptr)};
|
||||
|
||||
// Link it to the default namespace so the hook can use libandroid etc
|
||||
if (!linkernsbypass_link_namespace_to_default_all_libs(hookNs)) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "Failed to hook our namespace to the default one\n");
|
||||
return nullptr;
|
||||
}
|
||||
// Preload the hook implementation, otherwise we get a weird issue where despite being in NEEDED of the hook lib the hook's symbols will overwrite ours and cause an infinite loop
|
||||
auto hookImpl{linkernsbypass_namespace_dlopen("libhook_impl.so", RTLD_NOW, hookNs)};
|
||||
if (!hookImpl) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "Couldn't preload the hook implementation\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Pass parameters to the hook implementation
|
||||
auto initHookParam{reinterpret_cast<void (*)(const void *)>(dlsym(hookImpl, "init_hook_param"))};
|
||||
if (!initHookParam) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "Couldn't init hook params\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto importMapping{[&]() -> adrenotools_gpu_mapping * {
|
||||
if (featureFlags & ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT) {
|
||||
// This will be leaked, but it's not a big deal since it's only a few bytes
|
||||
adrenotools_gpu_mapping *mapping{new adrenotools_gpu_mapping{}};
|
||||
*userMappingHandle = mapping;
|
||||
return mapping;
|
||||
} else {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "Memory mapping flag was not specified\n");
|
||||
return nullptr;
|
||||
}
|
||||
}()};
|
||||
|
||||
initHookParam(new HookImplParams(featureFlags, tmpLibDir, hookLibDir, customDriverDir, customDriverName, fileRedirectDir, importMapping));
|
||||
|
||||
// Load the libvulkan hook into the isolated namespace
|
||||
if (!linkernsbypass_namespace_dlopen("libmain_hook.so", RTLD_GLOBAL, hookNs)) {
|
||||
__android_log_print( ANDROID_LOG_ERROR, "adrenotools", "Failed to load libvulkan into the isolated namespace\n");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return linkernsbypass_namespace_dlopen_unique("/system/lib64/libvulkan.so", tmpLibDir, dlopenFlags, hookNs);
|
||||
}
|
||||
|
||||
|
||||
bool adrenotools_import_user_mem(void *handle, void *hostPtr, uint64_t size) {
|
||||
auto importMapping{reinterpret_cast<adrenotools_gpu_mapping *>(handle)};
|
||||
|
||||
kgsl_gpuobj_import_useraddr addr{
|
||||
.virtaddr = reinterpret_cast<uint64_t>(hostPtr),
|
||||
};
|
||||
|
||||
kgsl_gpuobj_import userMemImport{
|
||||
.priv = reinterpret_cast<uint64_t>(&addr),
|
||||
.priv_len = size,
|
||||
.flags = KGSL_CACHEMODE_WRITEBACK << KGSL_CACHEMODE_SHIFT | KGSL_MEMFLAGS_IOCOHERENT,
|
||||
.type = KGSL_USER_MEM_TYPE_ADDR,
|
||||
|
||||
};
|
||||
|
||||
kgsl_gpuobj_info info{};
|
||||
|
||||
int kgslFd{open("/dev/kgsl-3d0", O_RDWR)};
|
||||
if (kgslFd < 0)
|
||||
return false;
|
||||
|
||||
int ret{ioctl(kgslFd, IOCTL_KGSL_GPUOBJ_IMPORT, &userMemImport)};
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
info.id = userMemImport.id;
|
||||
ret = ioctl(kgslFd, IOCTL_KGSL_GPUOBJ_INFO, &info);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
importMapping->host_ptr = hostPtr;
|
||||
importMapping->gpu_addr = info.gpuaddr;
|
||||
importMapping->size = size;
|
||||
importMapping->flags = 0xc2600; //!< Unknown flags, but they are required for the mapping to work
|
||||
|
||||
close(kgslFd);
|
||||
return true;
|
||||
|
||||
err:
|
||||
close(kgslFd);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool adrenotools_mem_gpu_allocate(void *handle, uint64_t *size) {
|
||||
auto mapping{reinterpret_cast<adrenotools_gpu_mapping *>(handle)};
|
||||
|
||||
kgsl_gpuobj_alloc gpuobjAlloc{
|
||||
.size = *size,
|
||||
.flags = KGSL_CACHEMODE_WRITEBACK << KGSL_CACHEMODE_SHIFT | KGSL_MEMFLAGS_IOCOHERENT,
|
||||
};
|
||||
|
||||
kgsl_gpuobj_info info{};
|
||||
|
||||
int kgslFd{open("/dev/kgsl-3d0", O_RDWR)};
|
||||
if (kgslFd < 0)
|
||||
return false;
|
||||
|
||||
int ret{ioctl(kgslFd, IOCTL_KGSL_GPUOBJ_ALLOC, &gpuobjAlloc)};
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
*size = gpuobjAlloc.mmapsize;
|
||||
|
||||
info.id = gpuobjAlloc.id;
|
||||
|
||||
ret = ioctl(kgslFd, IOCTL_KGSL_GPUOBJ_INFO, &info);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
mapping->host_ptr = nullptr;
|
||||
mapping->gpu_addr = info.gpuaddr;
|
||||
mapping->size = *size;
|
||||
mapping->flags = 0xc2600; //!< Unknown flags, but they are required for the mapping to work
|
||||
|
||||
close(kgslFd);
|
||||
return true;
|
||||
|
||||
err:
|
||||
close(kgslFd);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool adrenotools_mem_cpu_map(void *handle, void *hostPtr, uint64_t size) {
|
||||
auto mapping{reinterpret_cast<adrenotools_gpu_mapping *>(handle)};
|
||||
|
||||
int kgslFd{open("/dev/kgsl-3d0", O_RDWR)};
|
||||
if (kgslFd < 0)
|
||||
return false;
|
||||
|
||||
mapping->host_ptr = mmap(hostPtr, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, kgslFd, mapping->gpu_addr);
|
||||
close(kgslFd);
|
||||
return mapping->host_ptr != nullptr;
|
||||
}
|
||||
|
||||
bool adrenotools_validate_gpu_mapping(void *handle) {
|
||||
auto importMapping{reinterpret_cast<adrenotools_gpu_mapping *>(handle)};
|
||||
return importMapping->gpu_addr == ADRENOTOOLS_GPU_MAPPING_SUCCEEDED_MAGIC;
|
||||
}
|
||||
|
||||
void adrenotools_set_turbo(bool turbo) {
|
||||
uint32_t enable{turbo ? 0U : 1U};
|
||||
kgsl_device_getproperty prop{
|
||||
.type = KGSL_PROP_PWRCTRL,
|
||||
.value = reinterpret_cast<void *>(&enable),
|
||||
.sizebytes = sizeof(enable),
|
||||
};
|
||||
|
||||
int kgslFd{open("/dev/kgsl-3d0", O_RDWR)};
|
||||
if (kgslFd < 0)
|
||||
return;
|
||||
|
||||
ioctl(kgslFd, IOCTL_KGSL_SETPROPERTY, &prop);
|
||||
close (kgslFd);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
add_library(hook_impl SHARED hook_impl.cpp hook_impl.h hook_impl_params.h)
|
||||
|
||||
target_compile_options(hook_impl PRIVATE -Wall -Wextra)
|
||||
target_link_libraries(hook_impl linkernsbypass log)
|
||||
target_include_directories(hook_impl PRIVATE ../../include)
|
||||
set_target_properties(hook_impl PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
add_library(main_hook SHARED main_hook.c)
|
||||
|
||||
target_compile_options(main_hook PRIVATE -Wall -Wextra)
|
||||
target_link_options(main_hook PRIVATE -z global)
|
||||
target_link_libraries(main_hook hook_impl)
|
||||
set_target_properties(main_hook PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
add_library(file_redirect_hook SHARED file_redirect_hook.c)
|
||||
|
||||
target_compile_options(file_redirect_hook PRIVATE -Wall -Wextra)
|
||||
target_link_options(file_redirect_hook PRIVATE -z global)
|
||||
target_link_libraries(file_redirect_hook hook_impl)
|
||||
set_target_properties(file_redirect_hook PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
add_library(gsl_alloc_hook SHARED gsl_alloc_hook.c)
|
||||
|
||||
target_compile_options(gsl_alloc_hook PRIVATE -Wall -Wextra)
|
||||
target_link_options(gsl_alloc_hook PRIVATE -z global)
|
||||
target_link_libraries(gsl_alloc_hook hook_impl)
|
||||
set_target_properties(gsl_alloc_hook PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
||||
@@ -0,0 +1,5 @@
|
||||
#include "hook_impl.h"
|
||||
|
||||
__attribute__((visibility("default"))) FILE *fopen(const char *filename, const char *mode) {
|
||||
return hook_fopen(filename, mode);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "hook_impl.h"
|
||||
|
||||
__attribute__((visibility("default"))) int gsl_memory_alloc_pure(uint32_t size, uint32_t flags, void *memDesc) {
|
||||
return hook_gsl_memory_alloc_pure_64((uint64_t)size, flags, memDesc);
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) int gsl_memory_alloc_pure_64(uint64_t size, uint32_t flags, void *memDesc) {
|
||||
return hook_gsl_memory_alloc_pure_64(size, flags, memDesc);
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) int gsl_memory_free_pure(void *memDesc) {
|
||||
return hook_gsl_memory_free_pure(memDesc);
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
#include <initializer_list>
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <dlfcn.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <android_linker_ns.h>
|
||||
#include <android/dlext.h>
|
||||
#include <android/log.h>
|
||||
#include "kgsl.h"
|
||||
#include "hook_impl_params.h"
|
||||
#include "hook_impl.h"
|
||||
|
||||
#define TAG "hook_impl"
|
||||
#define LOGI(fmt, ...) __android_log_print(ANDROID_LOG_INFO, TAG, fmt, ##__VA_ARGS__)
|
||||
|
||||
const HookImplParams *hook_params; //!< Bunch of info needed to load/patch the driver
|
||||
int (*gsl_memory_alloc_pure_sym)(uint32_t, uint32_t, void *);
|
||||
int (*gsl_memory_alloc_pure_64_sym)(uint64_t, uint32_t, void *);
|
||||
int (*gsl_memory_free_pure_sym)(void *);
|
||||
int kgsl_fd;
|
||||
|
||||
using gsl_memory_alloc_pure_t = decltype(gsl_memory_alloc_pure_sym);
|
||||
using gsl_memory_alloc_pure_64_t = decltype(gsl_memory_alloc_pure_64_sym);
|
||||
using gsl_memory_free_pure_t = decltype(gsl_memory_free_pure_sym);
|
||||
|
||||
__attribute__((visibility("default"))) void init_hook_param(const void *param) {
|
||||
hook_params = reinterpret_cast<const HookImplParams *>(param);
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) void init_gsl(void *alloc, void *alloc64, void *free) {
|
||||
gsl_memory_alloc_pure_sym = reinterpret_cast<gsl_memory_alloc_pure_t>(alloc);
|
||||
gsl_memory_alloc_pure_64_sym = reinterpret_cast<gsl_memory_alloc_pure_64_t>(alloc64);
|
||||
gsl_memory_free_pure_sym = reinterpret_cast<gsl_memory_free_pure_t>(free);
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) void *hook_android_dlopen_ext(const char *filename, int flags, const android_dlextinfo *extinfo) {
|
||||
auto fallback{[&]() {
|
||||
LOGI("hook_android_dlopen_ext: falling back!");
|
||||
return android_dlopen_ext(filename, flags, extinfo);
|
||||
}};
|
||||
|
||||
LOGI("hook_android_dlopen_ext: filename: %s", filename);
|
||||
|
||||
// Ignore non-vulkan libraries
|
||||
if (!strstr(filename, "vulkan."))
|
||||
return android_dlopen_ext(filename, flags, extinfo);
|
||||
|
||||
if (extinfo->library_namespace == nullptr || !(extinfo->flags & ANDROID_DLEXT_USE_NAMESPACE)) {
|
||||
LOGI("hook_android_dlopen_ext: hook failed: namespace not supplied!");
|
||||
return fallback();
|
||||
}
|
||||
|
||||
// customDriverDir will be empty if ADRENOTOOLS_DRIVER_CUSTOM isn't set therefore it's fine to have either way
|
||||
auto driverNs{android_create_namespace(filename, hook_params->customDriverDir.c_str(),
|
||||
hook_params->hookLibDir.c_str(), ANDROID_NAMESPACE_TYPE_SHARED,
|
||||
nullptr, extinfo->library_namespace)};
|
||||
if (!driverNs) {
|
||||
LOGI("hook_android_dlopen_ext: hook failed: namespace not supplied!");
|
||||
return fallback();
|
||||
}
|
||||
|
||||
// We depend on libandroid which is unlikely to be in the supplied driver namespace so we have to link it over
|
||||
android_link_namespaces(driverNs, nullptr, "libandroid.so");
|
||||
|
||||
// Preload ourself, a new instance will be created since we have different linker ancestory
|
||||
// If we don't preload we get a weird issue where despite being in NEEDED of the hook lib the hook's symbols will overwrite ours and cause an infinite loop
|
||||
auto hookImpl{linkernsbypass_namespace_dlopen("libhook_impl.so", RTLD_NOW, driverNs)};
|
||||
if (!hookImpl)
|
||||
return nullptr;
|
||||
|
||||
// Pass parameters to ourself
|
||||
auto initHookParam{reinterpret_cast<void (*)(const void *)>(dlsym(hookImpl, "init_hook_param"))};
|
||||
if (!initHookParam)
|
||||
return nullptr;
|
||||
|
||||
initHookParam(hook_params);
|
||||
|
||||
if (hook_params->featureFlags & ADRENOTOOLS_DRIVER_FILE_REDIRECT) {
|
||||
if (!linkernsbypass_namespace_dlopen("libfile_redirect_hook.so", RTLD_GLOBAL, driverNs)) {
|
||||
LOGI("hook_android_dlopen_ext: hook failed: failed to apply libfopen_redirect_hook!");
|
||||
return fallback();
|
||||
}
|
||||
|
||||
LOGI("hook_android_dlopen_ext: applied libfile_redirect_hook");
|
||||
}
|
||||
|
||||
// Use our new namespace to load the vulkan driver
|
||||
auto newExtinfo{*extinfo};
|
||||
newExtinfo.library_namespace = driverNs;
|
||||
|
||||
if (hook_params->featureFlags & ADRENOTOOLS_DRIVER_GPU_MAPPING_IMPORT) {
|
||||
if (!linkernsbypass_namespace_dlopen("libgsl_alloc_hook.so", RTLD_GLOBAL, driverNs)) {
|
||||
LOGI("hook_android_dlopen_ext: hook failed: failed to apply libgsl_alloc_hook!");
|
||||
return fallback();
|
||||
}
|
||||
|
||||
auto libgslHandle{android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo)};
|
||||
if (!libgslHandle) {
|
||||
libgslHandle = android_dlopen_ext("notgsl.so", RTLD_NOW, &newExtinfo);
|
||||
if (!libgslHandle)
|
||||
libgslHandle = android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo);
|
||||
}
|
||||
|
||||
if (libgslHandle) {
|
||||
gsl_memory_alloc_pure_sym = reinterpret_cast<decltype(gsl_memory_alloc_pure_sym)>(dlsym(libgslHandle, "gsl_memory_alloc_pure"));
|
||||
gsl_memory_alloc_pure_64_sym = reinterpret_cast<decltype(gsl_memory_alloc_pure_64_sym)>(dlsym(libgslHandle, "gsl_memory_alloc_pure_64"));
|
||||
gsl_memory_free_pure_sym = reinterpret_cast<decltype(gsl_memory_free_pure_sym)>(dlsym(libgslHandle, "gsl_memory_free_pure"));
|
||||
if ((gsl_memory_alloc_pure_sym || gsl_memory_alloc_pure_64_sym) && gsl_memory_free_pure_sym) {
|
||||
auto initGsl{reinterpret_cast<void (*)(gsl_memory_alloc_pure_t, gsl_memory_alloc_pure_64_t, gsl_memory_free_pure_t)>(dlsym(hookImpl, "init_gsl"))};
|
||||
if (!initGsl)
|
||||
return fallback();
|
||||
|
||||
initGsl(gsl_memory_alloc_pure_sym, gsl_memory_alloc_pure_64_sym, gsl_memory_free_pure_sym);
|
||||
LOGI("hook_android_dlopen_ext: applied libgsl_alloc_hook");
|
||||
hook_params->nextGpuMapping->gpu_addr = ADRENOTOOLS_GPU_MAPPING_SUCCEEDED_MAGIC;
|
||||
}
|
||||
}
|
||||
|
||||
if (!((gsl_memory_alloc_pure_sym || gsl_memory_alloc_pure_64_sym) && gsl_memory_free_pure_sym))
|
||||
LOGI("hook_android_dlopen_ext: hook failed: failed to apply libgsl_alloc_hook!");
|
||||
}
|
||||
|
||||
// TODO: If there is already an instance of a Vulkan driver loaded hooks won't be applied, this will only be the case for skiavk generally
|
||||
// To fix this we would need to search /proc/self/maps for the file to a loaded instance of the library in order to read it to patch the soname and load it uniquely
|
||||
if (hook_params->featureFlags & ADRENOTOOLS_DRIVER_CUSTOM) {
|
||||
LOGI("hook_android_dlopen_ext: loading custom driver: %s%s", hook_params->customDriverDir.c_str(), hook_params->customDriverName.c_str());
|
||||
void *handle{android_dlopen_ext(hook_params->customDriverName.c_str(), flags, &newExtinfo)};
|
||||
if (!handle) {
|
||||
LOGI("hook_android_dlopen_ext: hook failed: failed to load custom driver: %s!", dlerror());
|
||||
return fallback();
|
||||
}
|
||||
|
||||
return handle;
|
||||
} else {
|
||||
LOGI("hook_android_dlopen_ext: loading default driver: %s", filename);
|
||||
return android_dlopen_ext(filename, flags, &newExtinfo);
|
||||
}
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) void *hook_android_load_sphal_library(const char *filename, int flags) {
|
||||
LOGI("hook_android_load_sphal_library: filename: %s", filename);
|
||||
|
||||
// https://android.googlesource.com/platform/system/core/+/master/libvndksupport/linker.cpp
|
||||
for (const char *name : {"sphal", "vendor", "default"}) {
|
||||
if (auto vendorNs{android_get_exported_namespace(name)}) {
|
||||
android_dlextinfo dlextinfo{
|
||||
.flags = ANDROID_DLEXT_USE_NAMESPACE,
|
||||
.library_namespace = vendorNs,
|
||||
};
|
||||
|
||||
return hook_android_dlopen_ext(filename, flags, &dlextinfo);
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) FILE *hook_fopen(const char *filename, const char *mode) {
|
||||
if (!strncmp("/proc", filename, 5) || !strncmp("/sys", filename, 4)) {
|
||||
LOGI("hook_fopen: passthrough: %s", filename);
|
||||
return fopen(filename, mode);
|
||||
}
|
||||
|
||||
auto replacement{hook_params->fileRedirectDir + filename};
|
||||
LOGI("hook_fopen: %s -> %s", filename, replacement.c_str());
|
||||
|
||||
return fopen(replacement.c_str(), mode);
|
||||
}
|
||||
|
||||
static constexpr uintptr_t GslMemDescImportedPrivMagic{0xdeadb33f};
|
||||
struct GslMemDesc {
|
||||
void *hostptr;
|
||||
uint64_t gpuaddr;
|
||||
uint64_t size;
|
||||
uint64_t flags;
|
||||
uintptr_t priv;
|
||||
};
|
||||
|
||||
__attribute__((visibility("default"))) int hook_gsl_memory_alloc_pure_64(uint64_t size, uint32_t flags, void *memDesc) {
|
||||
auto gslMemDesc{reinterpret_cast<GslMemDesc *>(memDesc)};
|
||||
if (hook_params->nextGpuMapping && hook_params->nextGpuMapping->size == size && (hook_params->nextGpuMapping->flags & flags) == hook_params->nextGpuMapping->flags) {
|
||||
auto &nextMapping{*hook_params->nextGpuMapping};
|
||||
|
||||
gslMemDesc->hostptr = nextMapping.host_ptr;
|
||||
gslMemDesc->gpuaddr = nextMapping.gpu_addr;
|
||||
gslMemDesc->size = nextMapping.size;
|
||||
gslMemDesc->flags = nextMapping.flags;
|
||||
gslMemDesc->priv = GslMemDescImportedPrivMagic;
|
||||
hook_params->nextGpuMapping->size = 0;
|
||||
hook_params->nextGpuMapping->gpu_addr = ADRENOTOOLS_GPU_MAPPING_SUCCEEDED_MAGIC;
|
||||
return 0;
|
||||
} else {
|
||||
if (gsl_memory_alloc_pure_64_sym)
|
||||
return gsl_memory_alloc_pure_64_sym(size, flags, gslMemDesc);
|
||||
else
|
||||
return gsl_memory_alloc_pure_sym((uint32_t)size, flags, gslMemDesc);
|
||||
}
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) int hook_gsl_memory_free_pure(void *memDesc) {
|
||||
auto gslMemDesc{reinterpret_cast<GslMemDesc *>(memDesc)};
|
||||
|
||||
if (gslMemDesc->priv == GslMemDescImportedPrivMagic) {
|
||||
if (!kgsl_fd)
|
||||
kgsl_fd = open("/dev/kgsl-3d0", O_RDWR);
|
||||
|
||||
kgsl_gpumem_get_info info{
|
||||
.gpuaddr = gslMemDesc->gpuaddr
|
||||
};
|
||||
|
||||
if (ioctl(kgsl_fd, IOCTL_KGSL_GPUMEM_GET_INFO, &info) < 0) {
|
||||
LOGI("IOCTL_KGSL_GPUMEM_GET_INFO failed");
|
||||
return 0;
|
||||
}
|
||||
|
||||
kgsl_gpuobj_free args{
|
||||
.id = info.id,
|
||||
};
|
||||
|
||||
if (ioctl(kgsl_fd, IOCTL_KGSL_GPUOBJ_FREE, &args) < 0)
|
||||
LOGI("IOCTL_KGSL_GPUOBJ_FREE failed");
|
||||
|
||||
return 0;
|
||||
} else {
|
||||
return gsl_memory_free_pure_sym(memDesc);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <android/dlext.h>
|
||||
|
||||
void init_hook_param(const void *param);
|
||||
|
||||
void init_gsl(void *alloc, void *alloc64, void *free);
|
||||
|
||||
void *hook_android_dlopen_ext(const char *filename, int flags, const android_dlextinfo *extinfo);
|
||||
|
||||
void *hook_android_load_sphal_library(const char *filename, int flags);
|
||||
|
||||
FILE *hook_fopen(const char *filename, const char *mode);
|
||||
|
||||
int hook_gsl_memory_alloc_pure_64(uint64_t size, uint32_t flags, void *memDesc);
|
||||
|
||||
int hook_gsl_memory_free_pure(void *memDesc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// Copyright © 2021 Billy Laws
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <adrenotools/priv.h>
|
||||
|
||||
/**
|
||||
* @brief Holds the parameters needed for all hooks
|
||||
* @note See comments for adrenotools_open_libvulkan as a reference for member variables
|
||||
*/
|
||||
struct HookImplParams {
|
||||
int featureFlags;
|
||||
std::string tmpLibDir;
|
||||
std::string hookLibDir;
|
||||
std::string customDriverDir;
|
||||
std::string customDriverName;
|
||||
std::string fileRedirectDir;
|
||||
adrenotools_gpu_mapping *nextGpuMapping;
|
||||
|
||||
HookImplParams(int featureFlags, const char *tmpLibDir, const char *hookLibDir, const char *customDriverDir,
|
||||
const char *customDriverName, const char *fileRedirectDir, adrenotools_gpu_mapping *nextGpuMapping)
|
||||
: featureFlags(featureFlags),
|
||||
tmpLibDir(tmpLibDir ? tmpLibDir : ""),
|
||||
hookLibDir(hookLibDir),
|
||||
customDriverDir(customDriverDir ? customDriverDir : ""),
|
||||
customDriverName(customDriverName ? customDriverName : ""),
|
||||
fileRedirectDir(fileRedirectDir ? fileRedirectDir : ""),
|
||||
nextGpuMapping(nextGpuMapping) {}
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,9 @@
|
||||
#include "hook_impl.h"
|
||||
|
||||
__attribute__((visibility("default"))) void *android_dlopen_ext(const char *filename, int flags, const android_dlextinfo *extinfo) {
|
||||
return hook_android_dlopen_ext(filename, flags, extinfo);
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) void *android_load_sphal_library(const char *filename, int flags) {
|
||||
return hook_android_load_sphal_library(filename, flags);
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
hook_impl_files = files(['hook_impl.cpp', 'hook_impl.h', 'hook_impl_params.h'])
|
||||
hook_impl_inc = include_directories('../../include')
|
||||
|
||||
# hook_impl_lib = shared_library('hook_impl', 'hook_impl.cpp', 'hook_impl.h', 'hook_impl_params.h')
|
||||
# target_compile_options(['hook_impl', 'PRIVATE', '-Wall', '-Wextra'])
|
||||
# target_link_libraries(['hook_impl', 'linkernsbypass', 'log'])
|
||||
# target_include_directories(['hook_impl', 'PRIVATE', '../../include'])
|
||||
# set_target_properties(['hook_impl', 'PROPERTIES', 'CXX_VISIBILITY_PRESET', 'hidden'])
|
||||
|
||||
main_hook_files = files(['main_hook.c'])
|
||||
# main_hook_lib = shared_library('main_hook', 'main_hook.c')
|
||||
# target_compile_options(['main_hook', 'PRIVATE', '-Wall', '-Wextra'])
|
||||
# target_link_options(['main_hook', 'PRIVATE', '-z', 'global'])
|
||||
# target_link_libraries(['main_hook', 'hook_impl'])
|
||||
# set_target_properties(['main_hook', 'PROPERTIES', 'CXX_VISIBILITY_PRESET', 'hidden'])
|
||||
|
||||
file_redirect_hook_files = files(['file_redirect_hook.c'])
|
||||
# file_redirect_hook_lib = shared_library('file_redirect_hook', 'file_redirect_hook.c')
|
||||
# target_compile_options(['file_redirect_hook', 'PRIVATE', '-Wall', '-Wextra'])
|
||||
# target_link_options(['file_redirect_hook', 'PRIVATE', '-z', 'global'])
|
||||
# target_link_libraries(['file_redirect_hook', 'hook_impl'])
|
||||
# set_target_properties(['file_redirect_hook', 'PROPERTIES', 'CXX_VISIBILITY_PRESET', 'hidden'])
|
||||
|
||||
gsl_alloc_hook_files = files(['gsl_alloc_hook.c'])
|
||||
# gsl_alloc_hook_lib = shared_library('gsl_alloc_hook', 'gsl_alloc_hook.c')
|
||||
# target_compile_options(['gsl_alloc_hook', 'PRIVATE', '-Wall', '-Wextra'])
|
||||
# target_link_options(['gsl_alloc_hook', 'PRIVATE', '-z', 'global'])
|
||||
# target_link_libraries(['gsl_alloc_hook', 'hook_impl'])
|
||||
# set_target_properties(['gsl_alloc_hook', 'PROPERTIES', 'CXX_VISIBILITY_PRESET', 'hidden'])
|
||||
|
||||
hook_impl_lib = shared_library(
|
||||
'hook_impl',
|
||||
hook_impl_files,
|
||||
c_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
cpp_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
dependencies: ([linkernsbypass_dep, liblog_dep]),
|
||||
include_directories: ([hook_impl_inc]),
|
||||
install: true
|
||||
)
|
||||
|
||||
hook_impl_dep = declare_dependency(
|
||||
link_args: (['-z', 'global']),
|
||||
link_with: ([hook_impl_lib]),
|
||||
include_directories: hook_impl_inc,
|
||||
)
|
||||
|
||||
main_hook_lib = shared_library(
|
||||
'main_hook',
|
||||
main_hook_files,
|
||||
c_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
cpp_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
dependencies: ([hook_impl_dep]),
|
||||
install: true
|
||||
)
|
||||
|
||||
file_redirect_hook_lib = shared_library(
|
||||
'file_redirect_hook',
|
||||
file_redirect_hook_files,
|
||||
c_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
cpp_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
dependencies: ([hook_impl_dep]),
|
||||
install: true
|
||||
)
|
||||
|
||||
gsl_alloc_hook_lib = shared_library(
|
||||
'gsl_alloc_hook',
|
||||
gsl_alloc_hook_files,
|
||||
c_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
cpp_args: (['-fvisibility=hidden', '-Wall', '-Wextra']),
|
||||
dependencies: ([hook_impl_dep]),
|
||||
install: true
|
||||
)
|
||||
@@ -0,0 +1,96 @@
|
||||
# Android Driver Package Format
|
||||
|
||||
## Contents
|
||||
- `meta.json` that follows `Schema`
|
||||
- `<driver>.so` main driver shared library
|
||||
- `*.so` all libraries depended on by the main driver library, these must have their sonames altered if they wish to replace the system version of the library
|
||||
|
||||
## Example
|
||||
- `meta.json`:
|
||||
```json
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"name": "Qualcomm v615 Vulkan driver",
|
||||
"description": "Proprietary Vulkan driver for Adreno 6xx and Adreno 7xx",
|
||||
"author": "ByLaws",
|
||||
"packageVersion": "2",
|
||||
"vendor": "Qualcomm",
|
||||
"driverVersion": "0.615.0",
|
||||
"minApi": 27,
|
||||
"libraryName": "vulkan.ad0615.so"
|
||||
}
|
||||
```
|
||||
|
||||
- `vulkan.ad0615.so`: main patched driver
|
||||
- `notadreno_utils.so`, `notdmabufheap.so`, `notgsl.so`, `notllvm-glnext.so`, `notllvm-qgl.so`: patched-soname versions of libraries specific to each driver version
|
||||
- `android.hardware.graphics.mappershim.so`, `vendor.qti.hardware.display.mapperextensionsshim.so`, `vendor.qti.hardware.display.mappershim.so`: qtimapper-shim libs
|
||||
|
||||
## Creation
|
||||
I recommend running blob-patcher.py to patch a set of blobs from a device dump with mapper ver as 5, then copying in the qtimapper-shim files from the adrenotools releases page.
|
||||
```bash
|
||||
$ mkdir outpkg
|
||||
$ patch.py <device dump> outpkg vulkan.adreno.so vulkan.ad0615.so 1
|
||||
$ vim outpkg/meta.json
|
||||
$ cp qtimapper-shim-rel/* outpkg
|
||||
```
|
||||
|
||||
## Schema
|
||||
```json
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "ADPKG Schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"schemaVersion": {
|
||||
"type": "number",
|
||||
"example": 1
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"example": "Qualcomm Adreno Driver"
|
||||
},
|
||||
"vendor": {
|
||||
"enum": [
|
||||
"Qualcomm",
|
||||
"Mesa"
|
||||
],
|
||||
},
|
||||
"driverVersion": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+.[0-9]+.[0-9]+(-.+)?$",
|
||||
"example": "512.604.0"
|
||||
},
|
||||
"author": {
|
||||
"type": "string",
|
||||
"example": "Billy Laws"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Additional description of the driver, this shouldn't contain redundant information that is already covered by the other fields such as the version and only denote details important for the user"
|
||||
},
|
||||
"packageVersion": {
|
||||
"type": "string",
|
||||
"example": "3029-bylaws"
|
||||
},
|
||||
"minApi": {
|
||||
"type": "number",
|
||||
"description": "The minimum Android API version required by the driver to function correctly",
|
||||
"example": 27
|
||||
},
|
||||
"libraryName": {
|
||||
"type": "string",
|
||||
"description": "The name of the main shared library object",
|
||||
"example": "vulkan.adreno.so"
|
||||
},
|
||||
},
|
||||
"required": [
|
||||
"schemaVersion",
|
||||
"name",
|
||||
"author",
|
||||
"packageVersion",
|
||||
"vendor",
|
||||
"driverVersion",
|
||||
"minApi",
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,7 @@
|
||||
## Tools for working with the Adreno Vulkan blob
|
||||
|
||||
blob-patcher.py is a script for generating adrenotools loadable drivers from an extracted ROM zip
|
||||
qtimapper-shim allows newer drivers to work on devices that lack support for the new mapper HAL
|
||||
acc-shim allows for suppling arguments to the underlying LLVM-based shader compiler library
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
## Adreno Compiler Collection parameter shim
|
||||
|
||||
### TODO
|
||||
Make some sort of API for this so parameters can be changed through adrenotools in realtime.
|
||||
|
||||
### Compilation
|
||||
```
|
||||
$ sed -i 's/libllvm-glnext/notreal-glnext/g' libllvm-glnext.so
|
||||
$ mv libllvm-glnext.so notreal-glnext.so
|
||||
$ aarch64-linux-android28-clang vk_acc_shim.cpp -o notllvm-glnext.so --shared -fpic
|
||||
$ sed -i 's/libllvm-glnext/notllvm-glnext/g' vulkan.adreno.so
|
||||
```
|
||||
@@ -0,0 +1,108 @@
|
||||
#include <stdint.h>
|
||||
#include <dlfcn.h>
|
||||
#include <string.h>
|
||||
#include <android/log.h>
|
||||
|
||||
thread_local int satisfy_driver_emutls;
|
||||
|
||||
// Check libllvm-glnext.so in older drivers for a full list of these, newer ones are slightly more awkward due to the split
|
||||
enum class OptionType : uint32_t {
|
||||
ArgsStringList = 1,
|
||||
QcArgsString = 4,
|
||||
OptLevelInt = 0x101,
|
||||
NoOptsInt = 0x10D,
|
||||
};
|
||||
|
||||
struct StringListVal {
|
||||
uint32_t len;
|
||||
const char **entry;
|
||||
};
|
||||
|
||||
struct Option
|
||||
{
|
||||
OptionType type;
|
||||
// PAD
|
||||
union {
|
||||
bool boolVal;
|
||||
int intVal;
|
||||
float floatVal;
|
||||
StringListVal *strVals;
|
||||
const char *strVal;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
struct OptionsSet
|
||||
{
|
||||
Option *options;
|
||||
uint32_t num;
|
||||
};
|
||||
|
||||
|
||||
int CompileHook(void *state, OptionsSet *opts);
|
||||
|
||||
decltype(CompileHook) *OrigCompile{};
|
||||
|
||||
int CompileHook(void *state, OptionsSet *opts) {
|
||||
constexpr size_t ReplacementOptsNum = 201;
|
||||
|
||||
Option replacementOpts[ReplacementOptsNum];
|
||||
uint32_t patchedOptNum{};
|
||||
|
||||
// Insert your desired args here - results will be written to stderr
|
||||
const char *argv[] = {"-help", "-help-hidden", "", NULL };
|
||||
StringListVal listVal{
|
||||
.len = 3,
|
||||
.entry = argv,
|
||||
};
|
||||
|
||||
replacementOpts[patchedOptNum++] = {
|
||||
.type = OptionType::ArgsStringList,
|
||||
.strVals = &listVal
|
||||
};
|
||||
|
||||
const char *opt ="Verbose=true Quiet=false";
|
||||
replacementOpts[patchedOptNum++] = {
|
||||
.type = OptionType::QcArgsString,
|
||||
.strVal = opt
|
||||
};
|
||||
|
||||
if (opts->num + patchedOptNum > ReplacementOptsNum)
|
||||
__builtin_trap();
|
||||
|
||||
memcpy(&replacementOpts[patchedOptNum], opts->options, sizeof(Option) * opts->num);
|
||||
|
||||
OptionsSet optList{
|
||||
.options = replacementOpts,
|
||||
.num = opts->num + patchedOptNum
|
||||
};
|
||||
|
||||
return OrigCompile(state, &optList);
|
||||
}
|
||||
|
||||
|
||||
struct LlvmInterface {
|
||||
uint32_t unk0[3];
|
||||
// PAD
|
||||
void *makeContext;
|
||||
void *delContext;
|
||||
decltype(CompileHook) *compile;
|
||||
void *unk;
|
||||
};
|
||||
|
||||
extern "C" int LoadACC(LlvmInterface *impl);
|
||||
|
||||
extern "C" __attribute__((visibility("default"))) int LoadACC(LlvmInterface *impl) {
|
||||
void *hnd = dlopen("notreal-glnext.so", RTLD_NOW);
|
||||
|
||||
auto origLoadACC = reinterpret_cast<decltype(LoadACC) *>(dlsym(hnd, "LoadACC"));
|
||||
if (!origLoadACC)
|
||||
__builtin_trap();
|
||||
|
||||
int ret = origLoadACC(impl);
|
||||
|
||||
OrigCompile = impl->compile;
|
||||
impl->compile = &CompileHook;
|
||||
|
||||
return ret;
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
#!/usr/bin/python3
|
||||
import sys, os
|
||||
|
||||
def patch_lib_base(in_dir, out_dir, libs, in_name, out_name):
|
||||
with open(in_dir + in_name, "rb") as inf:
|
||||
with open(out_dir + out_name, "wb") as outf:
|
||||
content = inf.read()
|
||||
for lib in libs:
|
||||
print(out_name + ": repl:", lib[0], "->", lib[1])
|
||||
content = content.replace(lib[0].encode(), lib[1].encode())
|
||||
|
||||
content = content.replace(in_name.encode(), out_name.encode())
|
||||
outf.write(content);
|
||||
|
||||
def patch_lib(in_dir, out_dir, libs, name):
|
||||
patch_lib_base(in_dir, out_dir, libs, "lib" + name + ".so", "not" + name + ".so")
|
||||
|
||||
def patch_references(lib_dir, out_dir, vulkan_libname, vulkan_newname, shim_mapper):
|
||||
try:
|
||||
os.mkdir(out_dir)
|
||||
os.mkdir(out_dir + "/hw")
|
||||
except:
|
||||
pass
|
||||
|
||||
replacement_list = [("libgsl.so", "notgsl.so"), ("libllvm-glnext.so", "notllvm-glnext.so"), ("libdmabufheap.so", "notdmabufheap.so"), ("libadreno_utils.so", "notadreno_utils.so"), ("libllvm-qgl.so", "notllvm-qgl.so")]
|
||||
|
||||
if (shim_mapper < 2):
|
||||
replacement_list += [("vendor.qti.hardware.display.mapper@2.0.so", "vendor.qti.hardware.display.mappershim.so"),
|
||||
("android.hardware.graphics.mapper@2.0.so", "android.hardware.graphics.mappershim.so"),
|
||||
("vendor.qti.hardware.display.mapperextensions@1.0.so", "vendor.qti.hardware.display.mapperextensionsshim.so"),
|
||||
("vendor.qti.hardware.display.mapperextensions@1.1.so", "vendor.qti.hardware.display.mapperextensionsshim.so")]
|
||||
if (shim_mapper < 3):
|
||||
replacement_list += [("vendor.qti.hardware.display.mapper@3.0.so", "vendor.qti.hardware.display.mappershim.so"),
|
||||
("android.hardware.graphics.mapper@3.0.so", "android.hardware.graphics.mappershim.so")]
|
||||
if (shim_mapper < 4):
|
||||
replacement_list += [("vendor.qti.hardware.display.mapper@4.0.so", "vendor.qti.hardware.display.mappershim.so"),
|
||||
("android.hardware.graphics.mapper@4.0.so", "android.hardware.graphics.mappershim.so")]
|
||||
|
||||
for lib in ["gsl", "llvm-glnext", "dmabufheap", "adreno_utils", "llvm-qgl"]:
|
||||
try:
|
||||
patch_lib(lib_dir, out_dir, replacement_list, lib)
|
||||
except:
|
||||
pass
|
||||
|
||||
patch_lib_base(lib_dir + "/hw/", out_dir + "/hw/", replacement_list, vulkan_libname, vulkan_newname)
|
||||
|
||||
if (len(sys.argv)!= 6):
|
||||
print("<in> <out> <vk soname> <vk soname new> <device mapper ver>")
|
||||
sys.exit()
|
||||
|
||||
|
||||
|
||||
root_path = sys.argv[1]
|
||||
out_path = sys.argv[2]
|
||||
vulkan_libname = sys.argv[3]
|
||||
vulkan_newname = sys.argv[4]
|
||||
shim_mapper = int(sys.argv[5])
|
||||
vendor_path = root_path + "/vendor/"
|
||||
|
||||
if (len(vulkan_newname) != len(vulkan_libname)):
|
||||
print("Errror")
|
||||
sys.exit()
|
||||
|
||||
for libdir in ["/lib64/", "/lib/"]:
|
||||
patch_references(vendor_path + libdir, out_path + libdir, vulkan_libname, vulkan_newname, shim_mapper)
|
||||
print("done!")
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
BasedOnStyle: Google
|
||||
AllowShortFunctionsOnASingleLine: Inline
|
||||
ColumnLimit: 100
|
||||
CommentPragmas: NOLINT:.*
|
||||
DerivePointerAlignment: false
|
||||
IndentWidth: 2
|
||||
PointerAlignment: Left
|
||||
TabWidth: 2
|
||||
UseTab: Never
|
||||
@@ -0,0 +1,37 @@
|
||||
cc_defaults {
|
||||
name: "shim_defaults",
|
||||
|
||||
srcs: [
|
||||
"shim.cpp",
|
||||
"ext/gr_utils.cpp",
|
||||
"ext/gr_adreno_info.cpp",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libcutils",
|
||||
"libhidlbase",
|
||||
"libhardware",
|
||||
"libutils",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Wno-error",
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "vendor.qti.hardware.display.mappershim",
|
||||
defaults: ["shim_defaults"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "vendor.qti.hardware.display.mapperextensionsshim",
|
||||
defaults: ["shim_defaults"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "android.hardware.graphics.mappershim",
|
||||
defaults: ["shim_defaults"],
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
## QtiMapper-shim
|
||||
|
||||
A shim that translates between the IQtiMapper(2,3,4) API used by newer Adreno graphics drivers and gralloc1, which is the only available gralloc API on sdm845.
|
||||
|
||||
### Method
|
||||
|
||||
Exposes the same ABI as the newer mapper blobs and stubs enough functions to force the HAL to fallback to the 2.0 mapper/mapperextension API which is then shimmed with a passthrough to gralloc1. The blobs can then be patched to load the stub libs instead, see the blob-patcher script.
|
||||
The code is fairly ugly but functional enough for the purpose, some functions are missing and will need to be implemented in the case that the driver starts using them.
|
||||
|
||||
|
||||
### Building
|
||||
|
||||
Chuck into a lineage tree, then:
|
||||
```
|
||||
make vendor.qti.hardware.display.mappershim
|
||||
make vendor.qti.hardware.display.mapperextensionsshim
|
||||
make android.hardware.graphics.mappershim
|
||||
```
|
||||
and grab SOs out of outputs dir
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021 The Linux Foundation. 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 The Linux Foundation. nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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 __QTIGRALLOCDEFS_H__
|
||||
#define __QTIGRALLOCDEFS_H__
|
||||
|
||||
// From gralloc_priv.h
|
||||
|
||||
/* Gralloc usage bits indicating the type of allocation that should be used */
|
||||
/* Refer to BufferUsage in hardware/interfaces/graphics/common/<ver>/types.hal */
|
||||
|
||||
/* The bits below are in officially defined vendor space
|
||||
* i.e bits 28-31 and 48-63*/
|
||||
/* Non linear, Universal Bandwidth Compression */
|
||||
#define GRALLOC_USAGE_PRIVATE_ALLOC_UBWC (UINT32_C(1) << 28)
|
||||
|
||||
/* Set this for allocating uncached memory (using O_DSYNC),
|
||||
* cannot be used with noncontiguous heaps */
|
||||
#define GRALLOC_USAGE_PRIVATE_UNCACHED (UINT32_C(1) << 29)
|
||||
|
||||
/* This flag is used to indicate 10 bit format.
|
||||
* When both GRALLOC_USAGE_PRIVATE_ALLOC_UBWC & GRALLOC_USAGE_PRIVATE_10BIT
|
||||
* are set then it will indicate UBWC_TP10 format.
|
||||
* When only GRALLOC_USAGE_PRIVATE_10BIT is set it will indicate linear P010 format.
|
||||
*/
|
||||
#define GRALLOC_USAGE_PRIVATE_10BIT (UINT32_C(1) << 30)
|
||||
|
||||
/* This flag is used for SECURE display usecase */
|
||||
#define GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY (UINT32_C(1) << 31)
|
||||
|
||||
/* This flag is used to indicate video NV21 format */
|
||||
#define GRALLOC_USAGE_PRIVATE_VIDEO_NV21_ENCODER 1ULL << 48
|
||||
|
||||
/* unused legacy flags */
|
||||
#define GRALLOC_USAGE_PRIVATE_MM_HEAP 0
|
||||
#define GRALLOC_USAGE_PRIVATE_IOMMU_HEAP 0
|
||||
|
||||
/* This flag is set for WFD usecase */
|
||||
#define GRALLOC_USAGE_PRIVATE_WFD 1ULL << 51
|
||||
|
||||
/* This flag is set for HEIF usecase */
|
||||
#define GRALLOC_USAGE_PRIVATE_HEIF (UINT32_C(1) << 27)
|
||||
|
||||
/* TODO(user): Remove when clients stop referencing this flag */
|
||||
#define GRALLOC_USAGE_PRIVATE_10BIT_TP 0
|
||||
|
||||
/* This flag indicates PI format is being used */
|
||||
#define GRALLOC_USAGE_PRIVATE_ALLOC_UBWC_PI 1ULL << 49
|
||||
|
||||
/* This flag is set while CDSP accesses the buffer */
|
||||
#define GRALLOC_USAGE_PRIVATE_CDSP 1ULL << 50
|
||||
|
||||
// OEM specific HAL formats
|
||||
#define HAL_PIXEL_FORMAT_RGBA_5551 6
|
||||
#define HAL_PIXEL_FORMAT_RGBA_4444 7
|
||||
#define HAL_PIXEL_FORMAT_NV12_ENCODEABLE 0x102
|
||||
#define HAL_PIXEL_FORMAT_NV21_ENCODEABLE 0x7FA30C00
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS 0x7FA30C04
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED 0x7FA30C03
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_SP 0x109
|
||||
#define HAL_PIXEL_FORMAT_YCrCb_420_SP_ADRENO 0x7FA30C01
|
||||
#define HAL_PIXEL_FORMAT_YCrCb_422_SP 0x10B
|
||||
#define HAL_PIXEL_FORMAT_R_8 0x10D
|
||||
#define HAL_PIXEL_FORMAT_RG_88 0x10E
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_444_SP 0x10F
|
||||
#define HAL_PIXEL_FORMAT_YCrCb_444_SP 0x110
|
||||
#define HAL_PIXEL_FORMAT_YCrCb_422_I 0x111
|
||||
#define HAL_PIXEL_FORMAT_BGRX_8888 0x112
|
||||
#define HAL_PIXEL_FORMAT_NV21_ZSL 0x113
|
||||
#define HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS 0x114
|
||||
#define HAL_PIXEL_FORMAT_BGR_565 0x115
|
||||
#define HAL_PIXEL_FORMAT_RAW8 0x123
|
||||
#define HAL_PIXEL_FORMAT_NV12_HEIF 0x116
|
||||
|
||||
// 10 bit
|
||||
#define HAL_PIXEL_FORMAT_ARGB_2101010 0x117
|
||||
#define HAL_PIXEL_FORMAT_RGBX_1010102 0x118
|
||||
#define HAL_PIXEL_FORMAT_XRGB_2101010 0x119
|
||||
#define HAL_PIXEL_FORMAT_BGRA_1010102 0x11A
|
||||
#define HAL_PIXEL_FORMAT_ABGR_2101010 0x11B
|
||||
#define HAL_PIXEL_FORMAT_BGRX_1010102 0x11C
|
||||
#define HAL_PIXEL_FORMAT_XBGR_2101010 0x11D
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_P010 0x36 // HAL_PIXEL_FORMAT_YCBCR_P010
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC 0x124
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_P010_VENUS 0x7FA30C0A
|
||||
|
||||
#define HAL_PIXEL_FORMAT_CbYCrY_422_I 0x120
|
||||
#define HAL_PIXEL_FORMAT_BGR_888 0x121
|
||||
|
||||
#define HAL_PIXEL_FORMAT_INTERLACE 0x180
|
||||
|
||||
// Camera utils format
|
||||
#define HAL_PIXEL_FORMAT_NV12_LINEAR_FLEX 0x125
|
||||
#define HAL_PIXEL_FORMAT_NV12_UBWC_FLEX 0x126
|
||||
#define HAL_PIXEL_FORMAT_MULTIPLANAR_FLEX 0x127
|
||||
#define HAL_PIXEL_FORMAT_NV12_UBWC_FLEX_2_BATCH 0x128
|
||||
#define HAL_PIXEL_FORMAT_NV12_UBWC_FLEX_4_BATCH 0x129
|
||||
#define HAL_PIXEL_FORMAT_NV12_UBWC_FLEX_8_BATCH 0x130
|
||||
|
||||
// FSC Formats
|
||||
#define HAL_PIXEL_FORMAT_RGB888_UBWC_FSC 0x131
|
||||
#define HAL_PIXEL_FORMAT_RGB101010_UBWC_FSC 0x132
|
||||
|
||||
// v4l2_fourcc('Y', 'U', 'Y', 'L'). 24 bpp YUYV 4:2:2 10 bit per component
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_422_I_10BIT 0x4C595559
|
||||
|
||||
// v4l2_fourcc('Y', 'B', 'W', 'C'). 10 bit per component. This compressed
|
||||
// format reduces the memory access bandwidth
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_422_I_10BIT_COMPRESSED 0x43574259
|
||||
|
||||
// UBWC aligned Venus format
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC 0x7FA30C06
|
||||
#define HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC 0x7FA30C09
|
||||
|
||||
// Khronos ASTC formats
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
|
||||
#define HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
|
||||
|
||||
enum { BUFFER_TYPE_UI = 0, BUFFER_TYPE_VIDEO };
|
||||
|
||||
#endif //__QTIGRALLOCDEFS_H__
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2022 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/MQDescriptor.h>
|
||||
#include <hidl/Status.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
|
||||
#include "types/common.h"
|
||||
|
||||
using namespace android::hardware;
|
||||
using namespace android;
|
||||
|
||||
/* Simplified version of hidl::base::V1_0::IBase */
|
||||
struct IBase : virtual public RefBase {
|
||||
virtual bool isRemote() const;
|
||||
|
||||
using interfaceChain_cb = std::function<void(const hidl_vec<hidl_string>& descriptors)>;
|
||||
virtual Return<void> interfaceChain(interfaceChain_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<void> debug(const hidl_handle& fd, const hidl_vec<hidl_string>& options) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using interfaceDescriptor_cb = std::function<void(const hidl_string& descriptor)>;
|
||||
virtual Return<void> interfaceDescriptor(interfaceDescriptor_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using getHashChain_cb = std::function<void(const hidl_vec<hidl_array<uint8_t, 32>>& hashchain)>;
|
||||
virtual Return<void> getHashChain(getHashChain_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<void> setHALInstrumentation() {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<bool> linkToDeath(const sp<hidl_death_recipient>& recipient, uint64_t cookie) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<void> ping() {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using getDebugInfo_cb = std::function<void(const hidl::base::V1_0::DebugInfo& info)>;
|
||||
virtual Return<void> getDebugInfo(getDebugInfo_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<void> notifySyspropsChanged() {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<bool> unlinkToDeath(const sp<hidl_death_recipient>& recipient) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,344 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2018, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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 "gr_adreno_info.h"
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <dlfcn.h>
|
||||
#include <log/log.h>
|
||||
|
||||
#include <mutex>
|
||||
|
||||
#include "gr_utils.h"
|
||||
#include "gralloc_priv.h"
|
||||
|
||||
using std::lock_guard;
|
||||
using std::mutex;
|
||||
|
||||
namespace gralloc {
|
||||
|
||||
AdrenoMemInfo* AdrenoMemInfo::s_instance = nullptr;
|
||||
|
||||
AdrenoMemInfo* AdrenoMemInfo::GetInstance() {
|
||||
static mutex s_lock;
|
||||
lock_guard<mutex> obj(s_lock);
|
||||
if (!s_instance) {
|
||||
s_instance = new AdrenoMemInfo();
|
||||
}
|
||||
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
AdrenoMemInfo::AdrenoMemInfo() {
|
||||
libadreno_utils_ = ::dlopen("libadreno_utils.so", RTLD_NOW);
|
||||
if (libadreno_utils_) {
|
||||
*reinterpret_cast<void**>(&LINK_adreno_compute_aligned_width_and_height) =
|
||||
::dlsym(libadreno_utils_, "compute_aligned_width_and_height");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_compute_fmt_aligned_width_and_height) =
|
||||
::dlsym(libadreno_utils_, "compute_fmt_aligned_width_and_height");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_compute_padding) =
|
||||
::dlsym(libadreno_utils_, "compute_surface_padding");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_compute_compressedfmt_aligned_width_and_height) =
|
||||
::dlsym(libadreno_utils_, "compute_compressedfmt_aligned_width_and_height");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_isUBWCSupportedByGpu) =
|
||||
::dlsym(libadreno_utils_, "isUBWCSupportedByGpu");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_get_gpu_pixel_alignment) =
|
||||
::dlsym(libadreno_utils_, "get_gpu_pixel_alignment");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_get_metadata_blob_size) =
|
||||
::dlsym(libadreno_utils_, "adreno_get_metadata_blob_size");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_init_memory_layout) =
|
||||
::dlsym(libadreno_utils_, "adreno_init_memory_layout");
|
||||
*reinterpret_cast<void**>(&LINK_adreno_get_aligned_gpu_buffer_size) =
|
||||
::dlsym(libadreno_utils_, "adreno_get_aligned_gpu_buffer_size");
|
||||
} else {
|
||||
ALOGE(" Failed to load libadreno_utils.so");
|
||||
}
|
||||
|
||||
// Check if the overriding property debug.gralloc.gfx_ubwc_disable
|
||||
// that disables UBWC allocations for the graphics stack is set
|
||||
char property[PROPERTY_VALUE_MAX];
|
||||
property_get(DISABLE_UBWC_PROP, property, "0");
|
||||
if (!(strncmp(property, "1", PROPERTY_VALUE_MAX)) ||
|
||||
!(strncmp(property, "true", PROPERTY_VALUE_MAX))) {
|
||||
gfx_ubwc_disable_ = true;
|
||||
}
|
||||
|
||||
property_get(DISABLE_AHARDWAREBUFFER_PROP, property, "0");
|
||||
if (!(strncmp(property, "1", PROPERTY_VALUE_MAX)) ||
|
||||
!(strncmp(property, "true", PROPERTY_VALUE_MAX))) {
|
||||
gfx_ahardware_buffer_disable_ = true;
|
||||
}
|
||||
}
|
||||
|
||||
AdrenoMemInfo::~AdrenoMemInfo() {
|
||||
if (libadreno_utils_) {
|
||||
::dlclose(libadreno_utils_);
|
||||
}
|
||||
}
|
||||
|
||||
void AdrenoMemInfo::AlignUnCompressedRGB(int width, int height, int format, int tile_enabled,
|
||||
unsigned int* aligned_w, unsigned int* aligned_h) {
|
||||
*aligned_w = (unsigned int)ALIGN(width, 32);
|
||||
*aligned_h = (unsigned int)ALIGN(height, 32);
|
||||
|
||||
int bpp = 4;
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_RGB_888:
|
||||
case HAL_PIXEL_FORMAT_BGR_888:
|
||||
bpp = 3;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
case HAL_PIXEL_FORMAT_RGBA_5551:
|
||||
case HAL_PIXEL_FORMAT_RGBA_4444:
|
||||
bpp = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
int raster_mode = 0; // Adreno unknown raster mode.
|
||||
int padding_threshold = 512; // Threshold for padding surfaces.
|
||||
// the function below computes aligned width and aligned height
|
||||
// based on linear or macro tile mode selected.
|
||||
if (LINK_adreno_compute_fmt_aligned_width_and_height) {
|
||||
// We call into adreno_utils only for RGB formats. So plane_id is 0 and
|
||||
// num_samples is 1 always. We may have to add uitility function to
|
||||
// find out these if there is a need to call this API for YUV formats.
|
||||
LINK_adreno_compute_fmt_aligned_width_and_height(
|
||||
width, height, 0 /*plane_id*/, GetGpuPixelFormat(format), 1 /*num_samples*/, tile_enabled,
|
||||
raster_mode, padding_threshold, reinterpret_cast<int*>(aligned_w),
|
||||
reinterpret_cast<int*>(aligned_h));
|
||||
} else if (LINK_adreno_compute_aligned_width_and_height) {
|
||||
LINK_adreno_compute_aligned_width_and_height(
|
||||
width, height, bpp, tile_enabled, raster_mode, padding_threshold,
|
||||
reinterpret_cast<int*>(aligned_w), reinterpret_cast<int*>(aligned_h));
|
||||
} else if (LINK_adreno_compute_padding) {
|
||||
int surface_tile_height = 1; // Linear surface
|
||||
*aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode,
|
||||
padding_threshold));
|
||||
ALOGW("%s: Warning!! Old GFX API is used to calculate stride", __FUNCTION__);
|
||||
} else {
|
||||
ALOGW(
|
||||
"%s: Warning!! Symbols compute_surface_padding and "
|
||||
"compute_fmt_aligned_width_and_height and "
|
||||
"compute_aligned_width_and_height not found",
|
||||
__FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
void AdrenoMemInfo::AlignCompressedRGB(int width, int height, int format, unsigned int* aligned_w,
|
||||
unsigned int* aligned_h) {
|
||||
if (LINK_adreno_compute_compressedfmt_aligned_width_and_height) {
|
||||
int bytesPerPixel = 0;
|
||||
int raster_mode = 0; // Adreno unknown raster mode.
|
||||
int padding_threshold = 512; // Threshold for padding
|
||||
// surfaces.
|
||||
|
||||
LINK_adreno_compute_compressedfmt_aligned_width_and_height(
|
||||
width, height, format, 0, raster_mode, padding_threshold, reinterpret_cast<int*>(aligned_w),
|
||||
reinterpret_cast<int*>(aligned_h), &bytesPerPixel);
|
||||
} else {
|
||||
*aligned_w = (unsigned int)ALIGN(width, 32);
|
||||
*aligned_h = (unsigned int)ALIGN(height, 32);
|
||||
ALOGW("%s: Warning!! compute_compressedfmt_aligned_width_and_height not found", __FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
bool AdrenoMemInfo::IsUBWCSupportedByGPU(int format) {
|
||||
if (!gfx_ubwc_disable_ && LINK_adreno_isUBWCSupportedByGpu) {
|
||||
ADRENOPIXELFORMAT gpu_format = GetGpuPixelFormat(format);
|
||||
return LINK_adreno_isUBWCSupportedByGpu(gpu_format);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t AdrenoMemInfo::GetGpuPixelAlignment() {
|
||||
if (LINK_adreno_get_gpu_pixel_alignment) {
|
||||
return LINK_adreno_get_gpu_pixel_alignment();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
ADRENOPIXELFORMAT AdrenoMemInfo::GetGpuPixelFormat(int hal_format) {
|
||||
switch (hal_format) {
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
return ADRENO_PIXELFORMAT_R8G8B8A8;
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
return ADRENO_PIXELFORMAT_R8G8B8X8;
|
||||
case HAL_PIXEL_FORMAT_BGRA_8888:
|
||||
return ADRENO_PIXELFORMAT_B8G8R8A8_UNORM;
|
||||
case HAL_PIXEL_FORMAT_RGB_888:
|
||||
return ADRENO_PIXELFORMAT_R8G8B8;
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
return ADRENO_PIXELFORMAT_B5G6R5;
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
return ADRENO_PIXELFORMAT_R5G6B5;
|
||||
case HAL_PIXEL_FORMAT_RGBA_5551:
|
||||
return ADRENO_PIXELFORMAT_R5G5B5A1;
|
||||
case HAL_PIXEL_FORMAT_RGBA_4444:
|
||||
return ADRENO_PIXELFORMAT_R4G4B4A4;
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
return ADRENO_PIXELFORMAT_R10G10B10A2_UNORM;
|
||||
case HAL_PIXEL_FORMAT_RGBX_1010102:
|
||||
return ADRENO_PIXELFORMAT_R10G10B10X2_UNORM;
|
||||
case HAL_PIXEL_FORMAT_ABGR_2101010:
|
||||
return ADRENO_PIXELFORMAT_A2B10G10R10_UNORM;
|
||||
case HAL_PIXEL_FORMAT_RGBA_FP16:
|
||||
return ADRENO_PIXELFORMAT_R16G16B16A16_FLOAT;
|
||||
case HAL_PIXEL_FORMAT_NV12_ENCODEABLE:
|
||||
return ADRENO_PIXELFORMAT_NV12;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC:
|
||||
return ADRENO_PIXELFORMAT_NV12_EXT;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC:
|
||||
return ADRENO_PIXELFORMAT_TP10;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_P010:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_P010_VENUS:
|
||||
return ADRENO_PIXELFORMAT_P010;
|
||||
case HAL_PIXEL_FORMAT_DEPTH_16:
|
||||
return ADRENO_PIXELFORMAT_D16_UNORM;
|
||||
case HAL_PIXEL_FORMAT_DEPTH_24:
|
||||
return ADRENO_PIXELFORMAT_D24_UNORM_X8_UINT;
|
||||
case HAL_PIXEL_FORMAT_DEPTH_24_STENCIL_8:
|
||||
return ADRENO_PIXELFORMAT_D24_UNORM_S8_UINT;
|
||||
case HAL_PIXEL_FORMAT_DEPTH_32F:
|
||||
return ADRENO_PIXELFORMAT_D32_FLOAT;
|
||||
case HAL_PIXEL_FORMAT_STENCIL_8:
|
||||
return ADRENO_PIXELFORMAT_S8_UINT;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_4x4_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_4X4;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_4X4_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_5x4_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_5X4;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_5X4_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_5x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_5X5;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_5X5_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_6x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_6X5;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_6X5_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_6x6_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_6X6;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_6X6_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_8X5;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_8X5_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x6_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_8X6;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_8X6_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x8_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_8X8;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_8X8_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X5;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X5_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x6_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X6;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X6_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x8_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X8;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X8_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x10_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X10;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_10X10_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_12x10_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_12X10;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_12X10_SRGB;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_12x12_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_12X12;
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:
|
||||
return ADRENO_PIXELFORMAT_ASTC_12X12_SRGB;
|
||||
default:
|
||||
ALOGE("%s: No map for format: 0x%x", __FUNCTION__, hal_format);
|
||||
break;
|
||||
}
|
||||
|
||||
return ADRENO_PIXELFORMAT_UNKNOWN;
|
||||
}
|
||||
|
||||
uint32_t AdrenoMemInfo::AdrenoGetMetadataBlobSize() {
|
||||
if (LINK_adreno_get_metadata_blob_size) {
|
||||
return LINK_adreno_get_metadata_blob_size();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int AdrenoMemInfo::AdrenoInitMemoryLayout(void* metadata_blob, int width, int height, int depth,
|
||||
int format, int num_samples, int isUBWC, uint64_t usage,
|
||||
uint32_t num_planes) {
|
||||
if (LINK_adreno_init_memory_layout) {
|
||||
surface_tile_mode_t tile_mode = static_cast<surface_tile_mode_t>(isUBWC);
|
||||
return LINK_adreno_init_memory_layout(metadata_blob, width, height, depth,
|
||||
GetGpuPixelFormat(format), num_samples, tile_mode, usage,
|
||||
num_planes);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
uint32_t AdrenoMemInfo::AdrenoGetAlignedGpuBufferSize(void* metadata_blob) {
|
||||
if (LINK_adreno_get_aligned_gpu_buffer_size) {
|
||||
return LINK_adreno_get_aligned_gpu_buffer_size(metadata_blob);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool AdrenoMemInfo::AdrenoSizeAPIAvaliable() {
|
||||
if (gfx_ahardware_buffer_disable_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (LINK_adreno_get_metadata_blob_size && LINK_adreno_init_memory_layout &&
|
||||
LINK_adreno_get_aligned_gpu_buffer_size);
|
||||
}
|
||||
|
||||
bool AdrenoMemInfo::IsPISupportedByGPU(int format, uint64_t usage) {
|
||||
if (LINK_adreno_isPISupportedByGpu) {
|
||||
return LINK_adreno_isPISupportedByGpu(format, usage);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace gralloc
|
||||
@@ -0,0 +1,234 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2018, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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 __GR_ADRENO_INFO_H__
|
||||
#define __GR_ADRENO_INFO_H__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace gralloc {
|
||||
|
||||
// Adreno Pixel Formats
|
||||
typedef enum {
|
||||
ADRENO_PIXELFORMAT_UNKNOWN = 0,
|
||||
ADRENO_PIXELFORMAT_R16G16B16A16_FLOAT = 10,
|
||||
ADRENO_PIXELFORMAT_R10G10B10A2_UNORM = 24, // Vertex, Normalized GL_UNSIGNED_INT_10_10_10_2_OES
|
||||
ADRENO_PIXELFORMAT_R8G8B8A8 = 28,
|
||||
ADRENO_PIXELFORMAT_R8G8B8A8_SRGB = 29,
|
||||
ADRENO_PIXELFORMAT_D32_FLOAT = 40,
|
||||
ADRENO_PIXELFORMAT_D24_UNORM_S8_UINT = 45,
|
||||
ADRENO_PIXELFORMAT_D16_UNORM = 55,
|
||||
ADRENO_PIXELFORMAT_B5G6R5 = 85,
|
||||
ADRENO_PIXELFORMAT_B5G5R5A1 = 86,
|
||||
ADRENO_PIXELFORMAT_B8G8R8A8_UNORM = 87,
|
||||
ADRENO_PIXELFORMAT_B8G8R8A8 = 90,
|
||||
ADRENO_PIXELFORMAT_B8G8R8A8_SRGB = 91,
|
||||
ADRENO_PIXELFORMAT_B8G8R8X8_SRGB = 93,
|
||||
ADRENO_PIXELFORMAT_NV12 = 103,
|
||||
ADRENO_PIXELFORMAT_P010 = 104,
|
||||
ADRENO_PIXELFORMAT_YUY2 = 107,
|
||||
ADRENO_PIXELFORMAT_B4G4R4A4 = 115,
|
||||
ADRENO_PIXELFORMAT_NV12_EXT = 506, // NV12 with non-std alignment and offsets
|
||||
ADRENO_PIXELFORMAT_R8G8B8X8 = 507, // GL_RGB8 (Internal)
|
||||
ADRENO_PIXELFORMAT_R8G8B8 = 508, // GL_RGB8
|
||||
ADRENO_PIXELFORMAT_A1B5G5R5 = 519, // GL_RGB5_A1
|
||||
ADRENO_PIXELFORMAT_R8G8B8X8_SRGB = 520, // GL_SRGB8
|
||||
ADRENO_PIXELFORMAT_R8G8B8_SRGB = 521, // GL_SRGB8
|
||||
ADRENO_PIXELFORMAT_A2B10G10R10_UNORM = 532,
|
||||
// Vertex, Normalized GL_UNSIGNED_INT_10_10_10_2_OES
|
||||
ADRENO_PIXELFORMAT_R10G10B10X2_UNORM = 537,
|
||||
ADRENO_PIXELFORMAT_D24_UNORM_X8_UINT = 548,
|
||||
ADRENO_PIXELFORMAT_D24_UNORM = 549,
|
||||
ADRENO_PIXELFORMAT_D32_FLOAT_X24S8_UINT = 551,
|
||||
ADRENO_PIXELFORMAT_S8_UINT = 552,
|
||||
ADRENO_PIXELFORMAT_ASTC_4X4 = 568, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_5X4 = 569, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_5X5 = 570, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_6X5 = 571, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_6X6 = 572, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_8X5 = 573, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_8X6 = 574, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_8X8 = 575, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X5 = 576, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X6 = 577, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X8 = 578, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X10 = 579, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_12X10 = 580, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_12X12 = 581, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_4X4_SRGB = 582, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_5X4_SRGB = 583, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_5X5_SRGB = 584, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_6X5_SRGB = 585, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_6X6_SRGB = 586, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_8X5_SRGB = 587, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_8X6_SRGB = 588, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_8X8_SRGB = 589, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X5_SRGB = 590, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X6_SRGB = 591, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X8_SRGB = 592, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_10X10_SRGB = 593, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_12X10_SRGB = 594, // ASTC Compressed
|
||||
ADRENO_PIXELFORMAT_ASTC_12X12_SRGB = 595, // ASTC Compressed
|
||||
// Vertex, Normalized GL_UNSIGNED_INT_10_10_10_2_OES
|
||||
ADRENO_PIXELFORMAT_R5G6B5 = 610, // RGBA version of B5G6R5
|
||||
ADRENO_PIXELFORMAT_R5G5B5A1 = 611, // RGBA version of B5G5R5A1
|
||||
ADRENO_PIXELFORMAT_R4G4B4A4 = 612, // RGBA version of B4G4R4A4
|
||||
ADRENO_PIXELFORMAT_UYVY = 614, // YUV 4:2:2 packed progressive (1 plane)
|
||||
ADRENO_PIXELFORMAT_NV21 = 619,
|
||||
ADRENO_PIXELFORMAT_Y8U8V8A8 = 620, // YUV 4:4:4 packed (1 plane)
|
||||
ADRENO_PIXELFORMAT_Y8 = 625, // Single 8-bit luma only channel YUV format
|
||||
ADRENO_PIXELFORMAT_TP10 = 654, // YUV 4:2:0 planar 10 bits/comp (2 planes)
|
||||
} ADRENOPIXELFORMAT;
|
||||
|
||||
typedef enum {
|
||||
SURFACE_TILE_MODE_DISABLE = 0x0, // used for linear surface
|
||||
SURFACE_TILE_MODE_ENABLE = 0x1 // used for tiled surface
|
||||
} surface_tile_mode_t;
|
||||
|
||||
class AdrenoMemInfo {
|
||||
public:
|
||||
/*
|
||||
* Function to compute aligned width and aligned height based on
|
||||
* width, height, format and usage flags.
|
||||
*
|
||||
* @return aligned width, aligned height
|
||||
*/
|
||||
void GetAlignedWidthAndHeight(int width, int height, int format, int usage,
|
||||
unsigned int* aligned_w, unsigned int* aligned_h, bool ubwc_enabled,
|
||||
bool tile_enabled);
|
||||
|
||||
/*
|
||||
* Function to compute the adreno aligned width and aligned height
|
||||
* based on the width and format.
|
||||
*
|
||||
* @return aligned width, aligned height
|
||||
*/
|
||||
void AlignUnCompressedRGB(int width, int height, int format, int tileEnabled,
|
||||
unsigned int* aligned_w, unsigned int* aligned_h);
|
||||
|
||||
/*
|
||||
* Function to compute the adreno aligned width and aligned height
|
||||
* based on the width and format.
|
||||
*
|
||||
* @return aligned width, aligned height
|
||||
*/
|
||||
void AlignCompressedRGB(int width, int height, int format, unsigned int* aligned_w,
|
||||
unsigned int* aligned_h);
|
||||
|
||||
/*
|
||||
* Function to compute the pixel alignment requirement.
|
||||
*
|
||||
* @return alignment
|
||||
*/
|
||||
uint32_t GetGpuPixelAlignment();
|
||||
|
||||
/*
|
||||
* Function to query whether GPU supports UBWC for given HAL format
|
||||
* @return > 0 : supported
|
||||
* 0 : not supported
|
||||
*/
|
||||
bool IsUBWCSupportedByGPU(int format);
|
||||
|
||||
/*
|
||||
* Function to check if GPU supports PI or not
|
||||
*/
|
||||
bool IsPISupportedByGPU(int format, uint64_t usage);
|
||||
/*
|
||||
* Function to get the corresponding Adreno format for given HAL format
|
||||
*/
|
||||
ADRENOPIXELFORMAT GetGpuPixelFormat(int hal_format);
|
||||
|
||||
/*
|
||||
* Function to get graphics metadata blob size
|
||||
* @return graphics metadata size
|
||||
*/
|
||||
uint32_t AdrenoGetMetadataBlobSize();
|
||||
|
||||
/*
|
||||
* Function to populate the graphics metadata blob
|
||||
* @return 1 : Successful
|
||||
* 2 : Unsuccessful
|
||||
*/
|
||||
int AdrenoInitMemoryLayout(void* metadata_blob, int width, int height, int depth, int format,
|
||||
int num_samples, int isUBWC, uint64_t usage, uint32_t num_planes);
|
||||
/*
|
||||
* Function to get buffer size for based on graphcis metadata
|
||||
* @return buffer size
|
||||
*/
|
||||
uint32_t AdrenoGetAlignedGpuBufferSize(void* metadata_blob);
|
||||
|
||||
/*
|
||||
* Function to check if adreno size calculation APIs are avaliable
|
||||
* @return true : Avaliable
|
||||
* false : Unavaliable
|
||||
*/
|
||||
bool AdrenoSizeAPIAvaliable();
|
||||
|
||||
static AdrenoMemInfo* GetInstance();
|
||||
|
||||
private:
|
||||
AdrenoMemInfo();
|
||||
~AdrenoMemInfo();
|
||||
// link(s)to adreno surface padding library.
|
||||
int (*LINK_adreno_compute_padding)(int width, int bpp, int surface_tile_height,
|
||||
int screen_tile_height, int padding_threshold) = NULL;
|
||||
void (*LINK_adreno_compute_aligned_width_and_height)(int width, int height, int bpp,
|
||||
int tile_mode, int raster_mode,
|
||||
int padding_threshold, int* aligned_w,
|
||||
int* aligned_h) = NULL;
|
||||
void (*LINK_adreno_compute_fmt_aligned_width_and_height)(int width, int height, int plane_id,
|
||||
int format, int num_samples,
|
||||
int tile_mode, int raster_mode,
|
||||
int padding_threshold, int* aligned_w,
|
||||
int* aligned_h) = NULL;
|
||||
void (*LINK_adreno_compute_compressedfmt_aligned_width_and_height)(
|
||||
int width, int height, int format, int tile_mode, int raster_mode, int padding_threshold,
|
||||
int* aligned_w, int* aligned_h, int* bpp) = NULL;
|
||||
int (*LINK_adreno_isUBWCSupportedByGpu)(ADRENOPIXELFORMAT format) = NULL;
|
||||
unsigned int (*LINK_adreno_get_gpu_pixel_alignment)() = NULL;
|
||||
|
||||
uint32_t (*LINK_adreno_get_metadata_blob_size)() = NULL;
|
||||
int (*LINK_adreno_init_memory_layout)(void* metadata_blob, int width, int height, int depth,
|
||||
ADRENOPIXELFORMAT format, int num_samples,
|
||||
surface_tile_mode_t tile_mode, uint64_t usage,
|
||||
uint32_t num_planes) = NULL;
|
||||
uint32_t (*LINK_adreno_get_aligned_gpu_buffer_size)(void* metadata_blob) = NULL;
|
||||
int (*LINK_adreno_isPISupportedByGpu)(int format, uint64_t usage) = NULL;
|
||||
|
||||
bool gfx_ubwc_disable_ = false;
|
||||
bool gfx_ahardware_buffer_disable_ = false;
|
||||
void* libadreno_utils_ = NULL;
|
||||
|
||||
static AdrenoMemInfo* s_instance;
|
||||
};
|
||||
|
||||
} // namespace gralloc
|
||||
|
||||
#endif // __GR_ADRENO_INFO_H__
|
||||
@@ -0,0 +1,190 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
|
||||
* Not a Contribution
|
||||
*
|
||||
* Copyright (C) 2008 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __GR_PRIV_HANDLE_H__
|
||||
#define __GR_PRIV_HANDLE_H__
|
||||
|
||||
#include <hardware/gralloc.h>
|
||||
#include <hardware/gralloc1.h>
|
||||
#include <log/log.h>
|
||||
#ifdef __cplusplus
|
||||
#include <cinttypes>
|
||||
#endif
|
||||
|
||||
#define GRALLOC1_FUNCTION_PERFORM 0x00001000
|
||||
|
||||
#define DBG_HANDLE false
|
||||
|
||||
typedef gralloc1_error_t (*GRALLOC1_PFN_PERFORM)(gralloc1_device_t* device, int operation, ...);
|
||||
|
||||
#define PRIV_HANDLE_CONST(exp) static_cast<const private_handle_t*>(exp)
|
||||
|
||||
#pragma pack(push, 4)
|
||||
#ifdef __cplusplus
|
||||
struct private_handle_t : public native_handle_t {
|
||||
#else
|
||||
struct private_handle_t {
|
||||
native_handle_t nativeHandle;
|
||||
#endif
|
||||
enum {
|
||||
PRIV_FLAGS_FRAMEBUFFER = 0x00000001,
|
||||
PRIV_FLAGS_USES_ION = 0x00000008,
|
||||
PRIV_FLAGS_NEEDS_FLUSH = 0x00000020,
|
||||
PRIV_FLAGS_INTERNAL_ONLY = 0x00000040,
|
||||
PRIV_FLAGS_NON_CPU_WRITER = 0x00000080,
|
||||
PRIV_FLAGS_CACHED = 0x00000200,
|
||||
PRIV_FLAGS_SECURE_BUFFER = 0x00000400,
|
||||
PRIV_FLAGS_EXTERNAL_ONLY = 0x00002000,
|
||||
PRIV_FLAGS_PROTECTED_BUFFER = 0x00004000,
|
||||
PRIV_FLAGS_VIDEO_ENCODER = 0x00010000,
|
||||
PRIV_FLAGS_CAMERA_WRITE = 0x00020000,
|
||||
PRIV_FLAGS_CAMERA_READ = 0x00040000,
|
||||
PRIV_FLAGS_HW_COMPOSER = 0x00080000,
|
||||
PRIV_FLAGS_HW_TEXTURE = 0x00100000,
|
||||
PRIV_FLAGS_ITU_R_601 = 0x00200000, // Unused from display
|
||||
PRIV_FLAGS_ITU_R_601_FR = 0x00400000, // Unused from display
|
||||
PRIV_FLAGS_ITU_R_709 = 0x00800000, // Unused from display
|
||||
PRIV_FLAGS_SECURE_DISPLAY = 0x01000000,
|
||||
PRIV_FLAGS_TILE_RENDERED = 0x02000000,
|
||||
PRIV_FLAGS_CPU_RENDERED = 0x04000000,
|
||||
PRIV_FLAGS_UBWC_ALIGNED = 0x08000000,
|
||||
PRIV_FLAGS_DISP_CONSUMER = 0x10000000,
|
||||
PRIV_FLAGS_CLIENT_ALLOCATED = 0x20000000, // Ion buffer allocated outside of gralloc
|
||||
PRIV_FLAGS_UBWC_ALIGNED_PI = 0x40000000, // PI format
|
||||
};
|
||||
|
||||
// file-descriptors dup'd over IPC
|
||||
int fd;
|
||||
int fd_metadata;
|
||||
|
||||
// values sent over IPC
|
||||
int magic;
|
||||
int flags;
|
||||
int width; // holds width of the actual buffer allocated
|
||||
int height; // holds height of the actual buffer allocated
|
||||
int unaligned_width; // holds width client asked to allocate
|
||||
int unaligned_height; // holds height client asked to allocate
|
||||
int format;
|
||||
int buffer_type;
|
||||
unsigned int layer_count;
|
||||
uint64_t id;
|
||||
uint64_t usage;
|
||||
|
||||
unsigned int size;
|
||||
unsigned int offset;
|
||||
unsigned int offset_metadata;
|
||||
uint64_t base;
|
||||
uint64_t base_metadata;
|
||||
uint64_t gpuaddr;
|
||||
#ifdef __cplusplus
|
||||
static const int kNumFds = 2;
|
||||
static const int kMagic = 'gmsm';
|
||||
|
||||
static inline int NumInts() {
|
||||
return ((sizeof(private_handle_t) - sizeof(native_handle_t)) / sizeof(int)) - kNumFds;
|
||||
}
|
||||
|
||||
private_handle_t(int fd, int meta_fd, int flags, int width, int height, int uw, int uh,
|
||||
int format, int buf_type, unsigned int size, uint64_t usage = 0)
|
||||
: fd(fd),
|
||||
fd_metadata(meta_fd),
|
||||
magic(kMagic),
|
||||
flags(flags),
|
||||
width(width),
|
||||
height(height),
|
||||
unaligned_width(uw),
|
||||
unaligned_height(uh),
|
||||
format(format),
|
||||
buffer_type(buf_type),
|
||||
layer_count(1),
|
||||
id(0),
|
||||
usage(usage),
|
||||
size(size),
|
||||
offset(0),
|
||||
offset_metadata(0),
|
||||
base(0),
|
||||
base_metadata(0),
|
||||
gpuaddr(0) {
|
||||
version = static_cast<int>(sizeof(native_handle));
|
||||
numInts = NumInts();
|
||||
numFds = kNumFds;
|
||||
}
|
||||
|
||||
// Legacy constructor used by some clients
|
||||
private_handle_t(int fd, unsigned int size, int usage, int buf_type, int format, int w, int h)
|
||||
: private_handle_t(fd, -1, PRIV_FLAGS_CLIENT_ALLOCATED, w, h, 0, 0, format, buf_type, size,
|
||||
static_cast<uint64_t>(usage)) {}
|
||||
|
||||
~private_handle_t() {
|
||||
magic = 0;
|
||||
ALOGE_IF(DBG_HANDLE, "Deleting buffer handle %p", this);
|
||||
}
|
||||
|
||||
static int validate(const native_handle* h) {
|
||||
auto* hnd = static_cast<const private_handle_t*>(h);
|
||||
if (!h || h->version != sizeof(native_handle) || h->numInts != NumInts() ||
|
||||
h->numFds != kNumFds) {
|
||||
ALOGE("Invalid gralloc handle (at %p): ver(%d/%zu) ints(%d/%d) fds(%d/%d)", h,
|
||||
h ? h->version : -1, sizeof(native_handle), h ? h->numInts : -1, NumInts(),
|
||||
h ? h->numFds : -1, kNumFds);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (hnd->magic != kMagic) {
|
||||
ALOGE("handle = %p invalid magic(%c%c%c%c/%c%c%c%c)", hnd,
|
||||
hnd ? (((hnd->magic >> 24) & 0xFF) ? ((hnd->magic >> 24) & 0xFF) : '-') : '?',
|
||||
hnd ? (((hnd->magic >> 16) & 0xFF) ? ((hnd->magic >> 16) & 0xFF) : '-') : '?',
|
||||
hnd ? (((hnd->magic >> 8) & 0xFF) ? ((hnd->magic >> 8) & 0xFF) : '-') : '?',
|
||||
hnd ? (((hnd->magic >> 0) & 0xFF) ? ((hnd->magic >> 0) & 0xFF) : '-') : '?',
|
||||
(kMagic >> 24) & 0xFF, (kMagic >> 16) & 0xFF, (kMagic >> 8) & 0xFF,
|
||||
(kMagic >> 0) & 0xFF);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void Dump(const private_handle_t* hnd) {
|
||||
ALOGD("handle id:%" PRIu64
|
||||
" wxh:%dx%d uwxuh:%dx%d size: %d fd:%d fd_meta:%d flags:0x%x "
|
||||
"usage:0x%" PRIx64 " format:0x%x layer_count: %d",
|
||||
hnd->id, hnd->width, hnd->height, hnd->unaligned_width, hnd->unaligned_height, hnd->size,
|
||||
hnd->fd, hnd->fd_metadata, hnd->flags, hnd->usage, hnd->format, hnd->layer_count);
|
||||
}
|
||||
|
||||
int GetUnalignedWidth() const { return unaligned_width; }
|
||||
|
||||
int GetUnalignedHeight() const { return unaligned_height; }
|
||||
|
||||
int GetColorFormat() const { return format; }
|
||||
|
||||
unsigned int GetLayerCount() const { return layer_count; }
|
||||
|
||||
int GetStride() const {
|
||||
// In handle we currently store aligned width after allocation.
|
||||
return width;
|
||||
}
|
||||
|
||||
uint64_t GetUsage() const { return usage; }
|
||||
|
||||
uint64_t GetBackingstore() const { return id; }
|
||||
#endif
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
#endif // __GR_PRIV_HANDLE_H__
|
||||
@@ -0,0 +1,662 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2019, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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 "gr_utils.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "gr_adreno_info.h"
|
||||
|
||||
#define ASTC_BLOCK_SIZE 16
|
||||
|
||||
#ifndef COLOR_FMT_P010_UBWC
|
||||
#define COLOR_FMT_P010_UBWC 9
|
||||
#endif
|
||||
|
||||
namespace gralloc {
|
||||
|
||||
bool IsUncompressedRGBFormat(int format) {
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
case HAL_PIXEL_FORMAT_RGB_888:
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
case HAL_PIXEL_FORMAT_BGRA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBA_5551:
|
||||
case HAL_PIXEL_FORMAT_RGBA_4444:
|
||||
case HAL_PIXEL_FORMAT_R_8:
|
||||
case HAL_PIXEL_FORMAT_RG_88:
|
||||
case HAL_PIXEL_FORMAT_BGRX_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
case HAL_PIXEL_FORMAT_ARGB_2101010:
|
||||
case HAL_PIXEL_FORMAT_RGBX_1010102:
|
||||
case HAL_PIXEL_FORMAT_XRGB_2101010:
|
||||
case HAL_PIXEL_FORMAT_BGRA_1010102:
|
||||
case HAL_PIXEL_FORMAT_ABGR_2101010:
|
||||
case HAL_PIXEL_FORMAT_BGRX_1010102:
|
||||
case HAL_PIXEL_FORMAT_XBGR_2101010:
|
||||
case HAL_PIXEL_FORMAT_RGBA_FP16:
|
||||
case HAL_PIXEL_FORMAT_BGR_888:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsCompressedRGBFormat(int format) {
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_4x4_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_5x4_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_5x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_6x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_6x6_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x6_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_8x8_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x6_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x8_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_10x10_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_12x10_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_RGBA_ASTC_12x12_KHR:
|
||||
case HAL_PIXEL_FORMAT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t GetBppForUncompressedRGB(int format) {
|
||||
uint32_t bpp = 0;
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_RGBA_FP16:
|
||||
bpp = 8;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
case HAL_PIXEL_FORMAT_BGRA_8888:
|
||||
case HAL_PIXEL_FORMAT_BGRX_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
case HAL_PIXEL_FORMAT_ARGB_2101010:
|
||||
case HAL_PIXEL_FORMAT_RGBX_1010102:
|
||||
case HAL_PIXEL_FORMAT_XRGB_2101010:
|
||||
case HAL_PIXEL_FORMAT_BGRA_1010102:
|
||||
case HAL_PIXEL_FORMAT_ABGR_2101010:
|
||||
case HAL_PIXEL_FORMAT_BGRX_1010102:
|
||||
case HAL_PIXEL_FORMAT_XBGR_2101010:
|
||||
bpp = 4;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RGB_888:
|
||||
case HAL_PIXEL_FORMAT_BGR_888:
|
||||
bpp = 3;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
case HAL_PIXEL_FORMAT_RGBA_5551:
|
||||
case HAL_PIXEL_FORMAT_RGBA_4444:
|
||||
bpp = 2;
|
||||
break;
|
||||
default:
|
||||
ALOGE("Error : %s New format request = 0x%x", __FUNCTION__, format);
|
||||
break;
|
||||
}
|
||||
|
||||
return bpp;
|
||||
}
|
||||
|
||||
bool CpuCanAccess(uint64_t usage) {
|
||||
return CpuCanRead(usage) || CpuCanWrite(usage);
|
||||
}
|
||||
|
||||
bool CpuCanRead(uint64_t usage) {
|
||||
if (usage & BufferUsage::CPU_READ_MASK) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CpuCanWrite(uint64_t usage) {
|
||||
if (usage & BufferUsage::CPU_WRITE_MASK) {
|
||||
// Application intends to use CPU for rendering
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t GetDataAlignment(int format, uint64_t usage) {
|
||||
uint32_t align = UINT(getpagesize());
|
||||
if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) {
|
||||
align = SIZE_8K;
|
||||
}
|
||||
|
||||
if (usage & BufferUsage::PROTECTED) {
|
||||
if ((usage & BufferUsage::CAMERA_OUTPUT) || (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY)) {
|
||||
// The alignment here reflects qsee mmu V7L/V8L requirement
|
||||
align = SZ_2M;
|
||||
} else {
|
||||
align = SECURE_ALIGN;
|
||||
}
|
||||
}
|
||||
|
||||
return align;
|
||||
}
|
||||
|
||||
bool IsGPUFlagSupported(uint64_t usage) {
|
||||
bool ret = true;
|
||||
if ((usage & BufferUsage::GPU_MIPMAP_COMPLETE)) {
|
||||
ALOGE("GPU_MIPMAP_COMPLETE not supported");
|
||||
ret = false;
|
||||
}
|
||||
|
||||
if ((usage & BufferUsage::GPU_CUBE_MAP)) {
|
||||
ALOGE("GPU_CUBE_MAP not supported");
|
||||
ret = false;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Returns the final buffer size meant to be allocated with ion
|
||||
unsigned int GetSize(const BufferInfo& info, unsigned int alignedw, unsigned int alignedh) {
|
||||
unsigned int size = 0;
|
||||
int format = info.format;
|
||||
int width = info.width;
|
||||
int height = info.height;
|
||||
uint64_t usage = info.usage;
|
||||
|
||||
if (!IsGPUFlagSupported(usage)) {
|
||||
ALOGE("Unsupported GPU usage flags present 0x%" PRIx64, usage);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (IsUBwcEnabled(format, usage)) {
|
||||
size = GetUBwcSize(width, height, format, alignedw, alignedh);
|
||||
} else if (IsUncompressedRGBFormat(format)) {
|
||||
uint32_t bpp = GetBppForUncompressedRGB(format);
|
||||
size = alignedw * alignedh * bpp;
|
||||
} else if (IsCompressedRGBFormat(format)) {
|
||||
size = alignedw * alignedh * ASTC_BLOCK_SIZE;
|
||||
} else {
|
||||
// Below switch should be for only YUV/custom formats
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_RAW16:
|
||||
case HAL_PIXEL_FORMAT_Y16:
|
||||
size = alignedw * alignedh * 2;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RAW10:
|
||||
case HAL_PIXEL_FORMAT_RAW12:
|
||||
size = ALIGN(alignedw * alignedh, SIZE_4K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RAW8:
|
||||
case HAL_PIXEL_FORMAT_Y8:
|
||||
size = alignedw * alignedh * 1;
|
||||
break;
|
||||
// adreno formats
|
||||
case HAL_PIXEL_FORMAT_YCrCb_420_SP_ADRENO: // NV21
|
||||
size = ALIGN(alignedw * alignedh, SIZE_4K);
|
||||
size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED: // NV12
|
||||
// The chroma plane is subsampled,
|
||||
// but the pitch in bytes is unchanged
|
||||
// The GPU needs 4K alignment, but the video decoder needs 8K
|
||||
size = ALIGN(alignedw * alignedh, SIZE_8K);
|
||||
size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_YV12:
|
||||
if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) {
|
||||
ALOGE("w or h is odd for the YV12 format");
|
||||
return 0;
|
||||
}
|
||||
size = alignedw * alignedh + (ALIGN(alignedw / 2, 16) * (alignedh / 2)) * 2;
|
||||
size = ALIGN(size, (unsigned int)SIZE_4K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP:
|
||||
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
|
||||
size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2 + 1, SIZE_4K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_P010:
|
||||
size = ALIGN((alignedw * alignedh * 2) + (alignedw * alignedh) + 1, SIZE_4K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_YCbCr_422_SP:
|
||||
case HAL_PIXEL_FORMAT_YCrCb_422_SP:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_422_I:
|
||||
case HAL_PIXEL_FORMAT_YCrCb_422_I:
|
||||
case HAL_PIXEL_FORMAT_CbYCrY_422_I:
|
||||
if (width & 1) {
|
||||
ALOGE("width is odd for the YUV422_SP format");
|
||||
return 0;
|
||||
}
|
||||
size = ALIGN(alignedw * alignedh * 2, SIZE_4K);
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_BLOB:
|
||||
case HAL_PIXEL_FORMAT_RAW_OPAQUE:
|
||||
if (height != 1) {
|
||||
ALOGE("%s: Buffers with HAL_PIXEL_FORMAT_BLOB must have height 1 ", __FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
size = (unsigned int)width;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_NV21_ZSL:
|
||||
size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2, SIZE_4K);
|
||||
break;
|
||||
default:
|
||||
ALOGE("%s: Unrecognized pixel format: 0x%x", __FUNCTION__, format);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
auto align = GetDataAlignment(format, usage);
|
||||
size = ALIGN(size, align) * info.layer_count;
|
||||
return size;
|
||||
}
|
||||
|
||||
// Explicitly defined UBWC formats
|
||||
bool IsUBwcFormat(int format) {
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool IsUBwcSupported(int format) {
|
||||
// Existing HAL formats with UBWC support
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
case HAL_PIXEL_FORMAT_NV12_ENCODEABLE:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS:
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
case HAL_PIXEL_FORMAT_RGBX_1010102:
|
||||
case HAL_PIXEL_FORMAT_DEPTH_16:
|
||||
case HAL_PIXEL_FORMAT_DEPTH_24:
|
||||
case HAL_PIXEL_FORMAT_DEPTH_24_STENCIL_8:
|
||||
case HAL_PIXEL_FORMAT_DEPTH_32F:
|
||||
case HAL_PIXEL_FORMAT_STENCIL_8:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsUBwcPISupported(int format, uint64_t usage) {
|
||||
if (usage & BufferUsage::COMPOSER_OVERLAY || !(usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC_PI)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// As of now only two formats
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC:
|
||||
case HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC: {
|
||||
if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) {
|
||||
if (AdrenoMemInfo::GetInstance()) {
|
||||
return AdrenoMemInfo::GetInstance()->IsPISupportedByGPU(format, usage);
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsUBwcEnabled(int format, uint64_t usage) {
|
||||
// Allow UBWC, if client is using an explicitly defined UBWC pixel format.
|
||||
if (IsUBwcFormat(format)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Allow UBWC, if an OpenGL client sets UBWC usage flag and GPU plus MDP
|
||||
// support the format. OR if a non-OpenGL client like Rotator, sets UBWC
|
||||
// usage flag and MDP supports the format.
|
||||
if (((usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC) ||
|
||||
(usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC_PI) ||
|
||||
(usage & BufferUsage::COMPOSER_CLIENT_TARGET)) &&
|
||||
IsUBwcSupported(format)) {
|
||||
bool enable = true;
|
||||
// Query GPU for UBWC only if buffer is intended to be used by GPU.
|
||||
if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) {
|
||||
if (AdrenoMemInfo::GetInstance()) {
|
||||
enable = AdrenoMemInfo::GetInstance()->IsUBWCSupportedByGPU(format);
|
||||
}
|
||||
}
|
||||
|
||||
// Allow UBWC, only if CPU usage flags are not set
|
||||
if (enable && !(CpuCanAccess(usage))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void GetRgbUBwcBlockSize(uint32_t bpp, int* block_width, int* block_height) {
|
||||
*block_width = 0;
|
||||
*block_height = 0;
|
||||
|
||||
switch (bpp) {
|
||||
case 2:
|
||||
case 4:
|
||||
*block_width = 16;
|
||||
*block_height = 4;
|
||||
break;
|
||||
case 8:
|
||||
*block_width = 8;
|
||||
*block_height = 4;
|
||||
break;
|
||||
case 16:
|
||||
*block_width = 4;
|
||||
*block_height = 4;
|
||||
break;
|
||||
default:
|
||||
ALOGE("%s: Unsupported bpp: %d", __FUNCTION__, bpp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) {
|
||||
unsigned int size = 0;
|
||||
int meta_width, meta_height;
|
||||
int block_width, block_height;
|
||||
|
||||
GetRgbUBwcBlockSize(bpp, &block_width, &block_height);
|
||||
if (!block_width || !block_height) {
|
||||
ALOGE("%s: Unsupported bpp: %d", __FUNCTION__, bpp);
|
||||
return size;
|
||||
}
|
||||
|
||||
// Align meta buffer height to 16 blocks
|
||||
meta_height = ALIGN(((height + block_height - 1) / block_height), 16);
|
||||
|
||||
// Align meta buffer width to 64 blocks
|
||||
meta_width = ALIGN(((width + block_width - 1) / block_width), 64);
|
||||
|
||||
// Align meta buffer size to 4K
|
||||
size = (unsigned int)ALIGN((meta_width * meta_height), 4096);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
|
||||
unsigned int alignedh) {
|
||||
unsigned int size = 0;
|
||||
uint32_t bpp = 0;
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
case HAL_PIXEL_FORMAT_RGBX_1010102:
|
||||
bpp = GetBppForUncompressedRGB(format);
|
||||
size = alignedw * alignedh * bpp;
|
||||
size += GetRgbUBwcMetaBufferSize(width, height, bpp);
|
||||
break;
|
||||
default:
|
||||
ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format);
|
||||
break;
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
unsigned int GetRgbMetaSize(int format, uint32_t width, uint32_t height, uint64_t usage) {
|
||||
unsigned int meta_size = 0;
|
||||
if (!IsUBwcEnabled(format, usage)) {
|
||||
return meta_size;
|
||||
}
|
||||
uint32_t bpp = GetBppForUncompressedRGB(format);
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_BGR_565:
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
case HAL_PIXEL_FORMAT_RGBX_1010102:
|
||||
case HAL_PIXEL_FORMAT_RGBA_FP16:
|
||||
meta_size = GetRgbUBwcMetaBufferSize(width, height, bpp);
|
||||
break;
|
||||
default:
|
||||
ALOGE("%s:Unsupported RGB format: 0x%x", __FUNCTION__, format);
|
||||
break;
|
||||
}
|
||||
return meta_size;
|
||||
}
|
||||
|
||||
bool CanUseAdrenoForSize(int buffer_type, uint64_t usage) {
|
||||
if (buffer_type == BUFFER_TYPE_VIDEO || !GetAdrenoSizeAPIStatus()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((usage & BufferUsage::PROTECTED) &&
|
||||
((usage & BufferUsage::CAMERA_OUTPUT) || (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GetAdrenoSizeAPIStatus() {
|
||||
AdrenoMemInfo* adreno_mem_info = AdrenoMemInfo::GetInstance();
|
||||
if (adreno_mem_info) {
|
||||
return adreno_mem_info->AdrenoSizeAPIAvaliable();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UseUncached(int format, uint64_t usage) {
|
||||
if ((usage & GRALLOC_USAGE_PRIVATE_UNCACHED) || (usage & BufferUsage::PROTECTED)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// CPU read rarely
|
||||
if ((usage & BufferUsage::CPU_READ_MASK) == static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// CPU write rarely
|
||||
if ((usage & BufferUsage::CPU_WRITE_MASK) ==
|
||||
static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((usage & BufferUsage::SENSOR_DIRECT_DATA) || (usage & BufferUsage::GPU_DATA_BUFFER)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (format && IsUBwcEnabled(format, usage)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
uint64_t GetHandleFlags(int format, uint64_t usage) {
|
||||
uint64_t priv_flags = 0;
|
||||
|
||||
if (usage & BufferUsage::VIDEO_ENCODER) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER;
|
||||
}
|
||||
|
||||
if (usage & BufferUsage::CAMERA_OUTPUT) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE;
|
||||
}
|
||||
|
||||
if (usage & BufferUsage::CAMERA_INPUT) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ;
|
||||
}
|
||||
|
||||
if (usage & BufferUsage::COMPOSER_OVERLAY) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_DISP_CONSUMER;
|
||||
}
|
||||
|
||||
if (usage & BufferUsage::GPU_TEXTURE) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE;
|
||||
}
|
||||
|
||||
if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_SECURE_DISPLAY;
|
||||
}
|
||||
|
||||
if (IsUBwcEnabled(format, usage)) {
|
||||
if (IsUBwcPISupported(format, usage)) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_UBWC_ALIGNED_PI;
|
||||
} else {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_UBWC_ALIGNED;
|
||||
}
|
||||
}
|
||||
|
||||
if (usage & (BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK)) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_CPU_RENDERED;
|
||||
}
|
||||
|
||||
if ((usage & (BufferUsage::VIDEO_ENCODER | BufferUsage::VIDEO_DECODER |
|
||||
BufferUsage::CAMERA_OUTPUT | BufferUsage::GPU_RENDER_TARGET))) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_NON_CPU_WRITER;
|
||||
}
|
||||
|
||||
if (!UseUncached(format, usage)) {
|
||||
priv_flags |= private_handle_t::PRIV_FLAGS_CACHED;
|
||||
}
|
||||
|
||||
return priv_flags;
|
||||
}
|
||||
|
||||
int GetImplDefinedFormat(uint64_t usage, int format) {
|
||||
int gr_format = format;
|
||||
|
||||
// If input format is HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED then based on
|
||||
// the usage bits, gralloc assigns a format.
|
||||
if (format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED ||
|
||||
format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
|
||||
if ((usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC || usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC_PI) &&
|
||||
format != HAL_PIXEL_FORMAT_YCbCr_420_888) {
|
||||
gr_format = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC;
|
||||
} else if (usage & BufferUsage::VIDEO_ENCODER) {
|
||||
if (usage & GRALLOC_USAGE_PRIVATE_VIDEO_NV21_ENCODER) {
|
||||
gr_format = HAL_PIXEL_FORMAT_NV21_ENCODEABLE; // NV21
|
||||
} else if (usage & GRALLOC_USAGE_PRIVATE_HEIF) {
|
||||
gr_format = HAL_PIXEL_FORMAT_NV12_HEIF;
|
||||
} else if (format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
|
||||
gr_format = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS;
|
||||
} else {
|
||||
gr_format = HAL_PIXEL_FORMAT_NV12_ENCODEABLE; // NV12
|
||||
}
|
||||
} else if (usage & BufferUsage::CAMERA_INPUT) {
|
||||
if (usage & BufferUsage::CAMERA_OUTPUT) {
|
||||
// Assumed ZSL if both producer and consumer camera flags set
|
||||
gr_format = HAL_PIXEL_FORMAT_NV21_ZSL; // NV21
|
||||
} else {
|
||||
gr_format = HAL_PIXEL_FORMAT_YCrCb_420_SP; // NV21
|
||||
}
|
||||
} else if (usage & BufferUsage::CAMERA_OUTPUT) {
|
||||
if (format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
|
||||
gr_format = HAL_PIXEL_FORMAT_NV21_ZSL; // NV21
|
||||
} else {
|
||||
gr_format = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS; // NV12 preview
|
||||
}
|
||||
} else if (usage & BufferUsage::COMPOSER_OVERLAY) {
|
||||
// XXX: If we still haven't set a format, default to RGBA8888
|
||||
gr_format = HAL_PIXEL_FORMAT_RGBA_8888;
|
||||
} else if (format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
|
||||
// If no other usage flags are detected, default the
|
||||
// flexible YUV format to NV21_ZSL
|
||||
gr_format = HAL_PIXEL_FORMAT_NV21_ZSL;
|
||||
}
|
||||
}
|
||||
|
||||
return gr_format;
|
||||
}
|
||||
|
||||
bool HasAlphaComponent(int32_t format) {
|
||||
switch (format) {
|
||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||
case HAL_PIXEL_FORMAT_BGRA_8888:
|
||||
case HAL_PIXEL_FORMAT_RGBA_5551:
|
||||
case HAL_PIXEL_FORMAT_RGBA_4444:
|
||||
case HAL_PIXEL_FORMAT_RGBA_1010102:
|
||||
case HAL_PIXEL_FORMAT_ARGB_2101010:
|
||||
case HAL_PIXEL_FORMAT_BGRA_1010102:
|
||||
case HAL_PIXEL_FORMAT_ABGR_2101010:
|
||||
case HAL_PIXEL_FORMAT_RGBA_FP16:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void GetRGBPlaneInfo(const BufferInfo& info, int32_t format, int32_t width, int32_t height,
|
||||
int32_t /* flags */, int* plane_count, PlaneLayoutInfo* plane_info) {
|
||||
uint64_t usage = info.usage;
|
||||
*plane_count = 1;
|
||||
uint32_t bpp = 0;
|
||||
if (IsUncompressedRGBFormat(format)) {
|
||||
bpp = GetBppForUncompressedRGB(format);
|
||||
}
|
||||
plane_info->component =
|
||||
(PlaneComponent)(PLANE_COMPONENT_R | PLANE_COMPONENT_G | PLANE_COMPONENT_B);
|
||||
if (HasAlphaComponent(format)) {
|
||||
plane_info->component = (PlaneComponent)(plane_info->component | PLANE_COMPONENT_A);
|
||||
}
|
||||
plane_info->size = GetSize(info, width, height);
|
||||
plane_info->step = bpp;
|
||||
plane_info->offset = GetRgbMetaSize(format, width, height, usage);
|
||||
plane_info->h_subsampling = 0;
|
||||
plane_info->v_subsampling = 0;
|
||||
plane_info->stride = width;
|
||||
plane_info->stride_bytes = width * plane_info->step;
|
||||
plane_info->scanlines = height;
|
||||
}
|
||||
|
||||
} // namespace gralloc
|
||||
@@ -0,0 +1,156 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2016,2018-2019, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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 __GR_UTILS_H__
|
||||
#define __GR_UTILS_H__
|
||||
|
||||
#include "gralloc_priv.h"
|
||||
#include "types/common.h"
|
||||
|
||||
#define SZ_2M 0x200000
|
||||
#define SZ_1M 0x100000
|
||||
#define SZ_4K 0x1000
|
||||
|
||||
#define SIZE_4K 4096
|
||||
#define SIZE_8K 8192
|
||||
|
||||
#ifdef SLAVE_SIDE_CP
|
||||
#define SECURE_ALIGN SZ_1M
|
||||
#else // MASTER_SIDE_CP
|
||||
#define SECURE_ALIGN SZ_4K
|
||||
#endif
|
||||
|
||||
#define INT(exp) static_cast<int>(exp)
|
||||
#define UINT(exp) static_cast<unsigned int>(exp)
|
||||
|
||||
using android::hardware::graphics::common::V1_1::BufferUsage;
|
||||
|
||||
namespace gralloc {
|
||||
struct BufferInfo {
|
||||
BufferInfo(int w, int h, int f, uint64_t usage = 0)
|
||||
: width(w), height(h), format(f), layer_count(1), usage(usage) {}
|
||||
int width;
|
||||
int height;
|
||||
int format;
|
||||
int layer_count;
|
||||
uint64_t usage;
|
||||
};
|
||||
|
||||
template <class Type1, class Type2>
|
||||
inline Type1 ALIGN(Type1 x, Type2 align) {
|
||||
return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1));
|
||||
}
|
||||
|
||||
enum PlaneComponent {
|
||||
/* luma */
|
||||
PLANE_COMPONENT_Y = 1 << 0,
|
||||
/* chroma blue */
|
||||
PLANE_COMPONENT_Cb = 1 << 1,
|
||||
/* chroma red */
|
||||
PLANE_COMPONENT_Cr = 1 << 2,
|
||||
|
||||
/* red */
|
||||
PLANE_COMPONENT_R = 1 << 10,
|
||||
/* green */
|
||||
PLANE_COMPONENT_G = 1 << 11,
|
||||
/* blue */
|
||||
PLANE_COMPONENT_B = 1 << 12,
|
||||
|
||||
/* alpha */
|
||||
PLANE_COMPONENT_A = 1 << 20,
|
||||
|
||||
/* raw data plane */
|
||||
PLANE_COMPONENT_RAW = 1 << 30,
|
||||
|
||||
/* meta information plane */
|
||||
PLANE_COMPONENT_META = 1 << 31,
|
||||
};
|
||||
|
||||
struct PlaneLayoutInfo {
|
||||
/** Components represented the type of plane. */
|
||||
PlaneComponent component;
|
||||
|
||||
/** horizontal subsampling. Must be a positive power of 2. */
|
||||
uint32_t h_subsampling;
|
||||
|
||||
/** vertical subsampling. Must be a positive power of 2. */
|
||||
uint32_t v_subsampling;
|
||||
|
||||
/** offset to the first byte of the top-left pixel of the plane
|
||||
* and it is calculated from the start of the buffer.
|
||||
* Add base of the handle with offset to get the first byte of the plane.
|
||||
*/
|
||||
uint32_t offset;
|
||||
|
||||
/** step is the distance in bytes from one pixel value to the next. */
|
||||
int32_t step;
|
||||
|
||||
/** stride of the plane in pixels */
|
||||
int32_t stride;
|
||||
|
||||
/** stride of the plane in in bytes */
|
||||
int32_t stride_bytes;
|
||||
|
||||
/** plane height or vertical stride */
|
||||
int32_t scanlines;
|
||||
|
||||
/** size of the plane in bytes */
|
||||
uint32_t size;
|
||||
};
|
||||
|
||||
bool IsCompressedRGBFormat(int format);
|
||||
bool IsUncompressedRGBFormat(int format);
|
||||
uint32_t GetBppForUncompressedRGB(int format);
|
||||
bool CpuCanAccess(uint64_t usage);
|
||||
bool CpuCanRead(uint64_t usage);
|
||||
bool CpuCanWrite(uint64_t usage);
|
||||
unsigned int GetSize(const BufferInfo& d, unsigned int alignedw, unsigned int alignedh);
|
||||
void GetRGBPlaneInfo(const BufferInfo& info, int32_t format, int32_t width, int32_t height,
|
||||
int32_t flags, int* plane_count, PlaneLayoutInfo* plane_info);
|
||||
unsigned int GetRgbMetaSize(int format, uint32_t width, uint32_t height, uint64_t usage);
|
||||
bool IsUBwcFormat(int format);
|
||||
bool IsUBwcSupported(int format);
|
||||
bool IsUBwcPISupported(int format, uint64_t usage);
|
||||
bool IsUBwcEnabled(int format, uint64_t usage);
|
||||
void GetRgbUBwcBlockSize(uint32_t bpp, int* block_width, int* block_height);
|
||||
unsigned int GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp);
|
||||
unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
|
||||
unsigned int alignedh);
|
||||
uint32_t GetDataAlignment(int format, uint64_t usage);
|
||||
bool CanUseAdrenoForSize(int buffer_type, uint64_t usage);
|
||||
bool GetAdrenoSizeAPIStatus();
|
||||
bool UseUncached(int format, uint64_t usage);
|
||||
uint64_t GetHandleFlags(int format, uint64_t usage);
|
||||
int GetImplDefinedFormat(uint64_t usage, int format);
|
||||
int GetCustomFormatFlags(int format, uint64_t usage, int* custom_format, uint64_t* priv_flags);
|
||||
bool IsGPUFlagSupported(uint64_t usage);
|
||||
bool HasAlphaComponent(int32_t format);
|
||||
} // namespace gralloc
|
||||
|
||||
#endif // __GR_UTILS_H__
|
||||
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2021, The Linux Foundation. All rights reserved.
|
||||
* Not a Contribution
|
||||
*
|
||||
* Copyright (C) 2008 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __GRALLOC_PRIV_H__
|
||||
#define __GRALLOC_PRIV_H__
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "QtiGrallocDefs.h"
|
||||
#include "gr_priv_handle.h"
|
||||
|
||||
//#pragma message "Warning: gralloc_priv.h is deprecated"
|
||||
|
||||
#define GRALLOC_PROP_PREFIX "vendor.gralloc."
|
||||
#define GRALLOC_PROP(prop_name) GRALLOC_PROP_PREFIX prop_name
|
||||
|
||||
#define DISABLE_UBWC_PROP GRALLOC_PROP("disable_ubwc")
|
||||
#define DISABLE_AHARDWAREBUFFER_PROP GRALLOC_PROP("disable_ahardware_buffer")
|
||||
#define ENABLE_FB_UBWC_PROP GRALLOC_PROP("enable_fb_ubwc")
|
||||
#define MAP_FB_MEMORY_PROP GRALLOC_PROP("map_fb_memory")
|
||||
#define USE_SYSTEM_HEAP_FOR_SENSORS GRALLOC_PROP("use_system_heap_for_sensors")
|
||||
|
||||
#define ROUND_UP_PAGESIZE(x) roundUpToPageSize(x)
|
||||
inline int roundUpToPageSize(int x) {
|
||||
return (x + (getpagesize() - 1)) & ~(getpagesize() - 1);
|
||||
}
|
||||
|
||||
/* Legacy gralloc1 definitions */
|
||||
/* Some clients may still be using the old flags */
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_ADSP_HEAP GRALLOC_USAGE_PRIVATE_ADSP_HEAP
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC GRALLOC_USAGE_PRIVATE_ALLOC_UBWC
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_UNCACHED GRALLOC_USAGE_PRIVATE_UNCACHED
|
||||
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_MM_HEAP GRALLOC_USAGE_PRIVATE_MM_HEAP
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_10BIT GRALLOC_USAGE_PRIVATE_10BIT
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_10BIT_TP GRALLOC_USAGE_PRIVATE_10BIT_TP
|
||||
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_10BIT_TP GRALLOC_USAGE_PRIVATE_10BIT_TP
|
||||
#define GRALLOC1_PRODUCER_USAGE_PRIVATE_VIDEO_NV21_ENCODER GRALLOC_USAGE_PRIVATE_VIDEO_NV21_ENCODER
|
||||
|
||||
// for PERFORM API :
|
||||
#define GRALLOC_MODULE_PERFORM_CREATE_HANDLE_FROM_BUFFER 1
|
||||
#define GRALLOC_MODULE_PERFORM_GET_STRIDE 2
|
||||
#define GRALLOC_MODULE_PERFORM_GET_CUSTOM_STRIDE_FROM_HANDLE 3
|
||||
#define GRALLOC_MODULE_PERFORM_GET_CUSTOM_STRIDE_AND_HEIGHT_FROM_HANDLE 4
|
||||
#define GRALLOC_MODULE_PERFORM_GET_ATTRIBUTES 5
|
||||
#define GRALLOC_MODULE_PERFORM_GET_COLOR_SPACE_FROM_HANDLE 6
|
||||
#define GRALLOC_MODULE_PERFORM_GET_YUV_PLANE_INFO 7
|
||||
#define GRALLOC_MODULE_PERFORM_GET_MAP_SECURE_BUFFER_INFO 8
|
||||
#define GRALLOC_MODULE_PERFORM_GET_UBWC_FLAG 9
|
||||
#define GRALLOC_MODULE_PERFORM_GET_RGB_DATA_ADDRESS 10
|
||||
#define GRALLOC_MODULE_PERFORM_GET_IGC 11
|
||||
#define GRALLOC_MODULE_PERFORM_SET_IGC 12
|
||||
#define GRALLOC_MODULE_PERFORM_SET_SINGLE_BUFFER_MODE 13
|
||||
#define GRALLOC1_MODULE_PERFORM_GET_BUFFER_SIZE_AND_DIMENSIONS 14
|
||||
#define GRALLOC1_MODULE_PERFORM_GET_INTERLACE_FLAG 15
|
||||
#define GRALLOC_MODULE_PERFORM_GET_GRAPHICS_METADATA 16
|
||||
|
||||
/* possible values for inverse gamma correction */
|
||||
#define HAL_IGC_NOT_SPECIFIED 0
|
||||
#define HAL_IGC_s_RGB 1
|
||||
|
||||
/* Color Space: Values maps to ColorSpace_t in qdMetadata.h */
|
||||
#define HAL_CSC_ITU_R_601 0
|
||||
#define HAL_CSC_ITU_R_601_FR 1
|
||||
#define HAL_CSC_ITU_R_709 2
|
||||
#define HAL_CSC_ITU_R_709_FR 3
|
||||
#define HAL_CSC_ITU_R_2020 4
|
||||
#define HAL_CSC_ITU_R_2020_FR 5
|
||||
|
||||
/* possible formats for 3D content*/
|
||||
enum {
|
||||
HAL_NO_3D = 0x0,
|
||||
HAL_3D_SIDE_BY_SIDE_L_R = 0x1,
|
||||
HAL_3D_SIDE_BY_SIDE_R_L = 0x2,
|
||||
HAL_3D_TOP_BOTTOM = 0x4,
|
||||
HAL_3D_IN_SIDE_BY_SIDE_L_R = 0x10000, // unused legacy format
|
||||
};
|
||||
|
||||
/* Flag to determine interlaced content
|
||||
* Value maps to Flags presents in types.hal of QtiMapperextensions
|
||||
*/
|
||||
enum {
|
||||
LAYOUT_INTERLACED_FLAG = 1 << 0,
|
||||
};
|
||||
|
||||
#endif // __GRALLOC_PRIV_H__
|
||||
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2022, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/MQDescriptor.h>
|
||||
#include <hidl/Status.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
#include <utils/misc.h>
|
||||
|
||||
#include "types/mapper.h"
|
||||
|
||||
namespace vendor::qti::hardware::display::mapperextensions::V1_0 {
|
||||
struct IQtiMapperExtensions;
|
||||
}
|
||||
|
||||
namespace android::hardware::graphics::mapper {
|
||||
namespace V2_0 {
|
||||
|
||||
struct IMapper : public IBase {
|
||||
struct BufferDescriptorInfo final {
|
||||
uint32_t width __attribute__((aligned(4)));
|
||||
uint32_t height __attribute__((aligned(4)));
|
||||
uint32_t layerCount __attribute__((aligned(4)));
|
||||
graphics::common::V1_0::PixelFormat format __attribute__((aligned(4)));
|
||||
hidl_bitfield<graphics::common::V1_0::BufferUsage> usage __attribute__((aligned(8)));
|
||||
};
|
||||
|
||||
struct Rect final {
|
||||
int32_t left __attribute__((aligned(4)));
|
||||
int32_t top __attribute__((aligned(4)));
|
||||
int32_t width __attribute__((aligned(4)));
|
||||
int32_t height __attribute__((aligned(4)));
|
||||
};
|
||||
|
||||
static sp<IMapper> getService(const std::string& /* serviceName */, const bool /* getStub */);
|
||||
};
|
||||
|
||||
} // namespace V2_0
|
||||
namespace V3_0 {
|
||||
|
||||
struct IMapper : public IBase {
|
||||
static sp<IMapper> getService(const std::string& /* serviceName */, const bool /* getStub */);
|
||||
};
|
||||
|
||||
} // namespace V3_0
|
||||
namespace V4_0 {
|
||||
|
||||
struct IMapper : public IBase {
|
||||
static sp<IMapper> getService(const std::string& /* serviceName */, const bool /* getStub */);
|
||||
};
|
||||
|
||||
} // namespace V4_0
|
||||
} // namespace android::hardware::graphics::mapper
|
||||
|
||||
namespace vendor::qti::hardware::display::mapper {
|
||||
namespace V4_0 {
|
||||
|
||||
struct IQtiMapper : public IBase {
|
||||
static Return<sp<IQtiMapper>> castFrom(const sp<graphics::mapper::V4_0::IMapper>& /* parent */,
|
||||
bool /* emitError */);
|
||||
};
|
||||
|
||||
} // namespace V4_0
|
||||
namespace V3_0 {
|
||||
|
||||
struct IQtiMapper : public IBase {
|
||||
static Return<sp<IQtiMapper>> castFrom(const sp<graphics::mapper::V3_0::IMapper>& /* parent */,
|
||||
bool /* emitError */);
|
||||
};
|
||||
|
||||
} // namespace V3_0
|
||||
namespace V2_0 {
|
||||
|
||||
struct IQtiMapper : public IBase {
|
||||
using createDescriptor_cb = std::function<void(graphics::mapper::V2_0::Error error,
|
||||
const hidl_vec<uint32_t>& descriptor)>;
|
||||
virtual Return<void> createDescriptor(
|
||||
const graphics::mapper::V2_0::IMapper::BufferDescriptorInfo& descriptorInfo,
|
||||
createDescriptor_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using importBuffer_cb = std::function<void(graphics::mapper::V2_0::Error error, void* buffer)>;
|
||||
virtual Return<void> importBuffer(const hidl_handle& rawHandle, importBuffer_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<graphics::mapper::V2_0::Error> freeBuffer(void* buffer) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using lock_cb = std::function<void(graphics::mapper::V2_0::Error error, void* data)>;
|
||||
virtual Return<void> lock(void* buffer,
|
||||
hidl_bitfield<graphics::common::V1_0::BufferUsage> cpuUsage,
|
||||
const graphics::mapper::V2_0::IMapper::Rect& accessRegion,
|
||||
const hidl_handle& acquireFence, lock_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using lockYCbCr_cb = std::function<void(graphics::mapper::V2_0::Error error,
|
||||
const graphics::mapper::V2_0::YCbCrLayout& layout)>;
|
||||
virtual Return<void> lockYCbCr(void* buffer,
|
||||
hidl_bitfield<graphics::common::V1_0::BufferUsage> cpuUsage,
|
||||
const graphics::mapper::V2_0::IMapper::Rect& accessRegion,
|
||||
const hidl_handle& acquireFence, lockYCbCr_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using unlock_cb =
|
||||
std::function<void(graphics::mapper::V2_0::Error error, const hidl_handle& releaseFence)>;
|
||||
virtual Return<void> unlock(void* buffer, unlock_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual Return<graphics::mapper::V2_0::Error> validateBufferSize(
|
||||
void* buffer, const graphics::mapper::V2_0::IMapper::BufferDescriptorInfo& descriptorInfo,
|
||||
uint32_t stride) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using getTransportSize_cb =
|
||||
std::function<void(graphics::mapper::V2_0::Error error, uint32_t numFds, uint32_t numInts)>;
|
||||
virtual Return<void> getTransportSize(void* buffer, getTransportSize_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using createDescriptor_2_1_cb = std::function<void(graphics::mapper::V2_0::Error error,
|
||||
const hidl_vec<uint32_t>& descriptor)>;
|
||||
virtual Return<void> createDescriptor_2_1(
|
||||
const graphics::mapper::V2_0::IMapper::BufferDescriptorInfo& descriptorInfo,
|
||||
createDescriptor_2_1_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using getMapperExtensions_cb =
|
||||
std::function<void(graphics::mapper::V2_0::Error error,
|
||||
const ::android::sp<::vendor::qti::hardware::display::mapperextensions::
|
||||
V1_0::IQtiMapperExtensions>& extensions)>;
|
||||
virtual Return<void> getMapperExtensions(getMapperExtensions_cb _hidl_cb);
|
||||
|
||||
static Return<sp<IQtiMapper>> castFrom(const sp<graphics::mapper::V2_0::IMapper>& /* parent */,
|
||||
bool /* emitError */);
|
||||
};
|
||||
|
||||
} // namespace V2_0
|
||||
} // namespace vendor::qti::hardware::display::mapper
|
||||
@@ -0,0 +1,224 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2022, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/MQDescriptor.h>
|
||||
#include <hidl/Status.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
#include <utils/misc.h>
|
||||
|
||||
#include "gralloc_priv.h"
|
||||
#include "types/mapperextensions.h"
|
||||
|
||||
namespace vendor::qti::hardware::display::mapperextensions {
|
||||
namespace V1_0 {
|
||||
|
||||
struct IQtiMapperExtensions : public IBase {
|
||||
IQtiMapperExtensions(){};
|
||||
};
|
||||
|
||||
} // namespace V1_0
|
||||
namespace V1_1 {
|
||||
using Error = V1_0::Error;
|
||||
using PlaneLayout = V1_0::PlaneLayout;
|
||||
|
||||
struct IQtiMapperExtensions : public IBase {
|
||||
IQtiMapperExtensions();
|
||||
|
||||
gralloc1_device_t* gralloc;
|
||||
GRALLOC1_PFN_PERFORM perform;
|
||||
|
||||
using getMapSecureBufferFlag_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, bool mapSecureBuffer)>;
|
||||
virtual ::android::hardware::Return<void> getMapSecureBufferFlag(
|
||||
void* buffer, getMapSecureBufferFlag_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
// Used, passthrough
|
||||
using getInterlacedFlag_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, bool interlaced)>;
|
||||
virtual ::android::hardware::Return<void> getInterlacedFlag(void* buffer,
|
||||
getInterlacedFlag_cb _hidl_cb);
|
||||
|
||||
using getCustomDimensions_cb =
|
||||
std::function<void(::vendor::qti::hardware::display::mapperextensions::V1_0::Error error,
|
||||
int32_t stride, int32_t height)>;
|
||||
virtual ::android::hardware::Return<void> getCustomDimensions(void* buffer,
|
||||
getCustomDimensions_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
// Used, passthrough
|
||||
using getRgbDataAddress_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, void* rgb_data)>;
|
||||
virtual ::android::hardware::Return<void> getRgbDataAddress(void* buffer,
|
||||
getRgbDataAddress_cb _hidl_cb);
|
||||
|
||||
using calculateBufferAttributes_cb =
|
||||
std::function<void(::vendor::qti::hardware::display::mapperextensions::V1_0::Error error,
|
||||
int32_t aligned_width, int32_t aligned_height, bool ubwc_enabled)>;
|
||||
virtual ::android::hardware::Return<void> calculateBufferAttributes(
|
||||
int32_t width, int32_t height, int32_t format, uint64_t usage,
|
||||
calculateBufferAttributes_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
// Used, passhthrough
|
||||
using getColorSpace_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, int32_t color_space)>;
|
||||
virtual ::android::hardware::Return<void> getColorSpace(void* buffer, getColorSpace_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
// Used, passthrough with hidl fixups
|
||||
using getYuvPlaneInfo_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error,
|
||||
const ::android::hardware::hidl_vec<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::YCbCrLayout>& layout)>;
|
||||
virtual ::android::hardware::Return<void> getYuvPlaneInfo(void* buffer,
|
||||
getYuvPlaneInfo_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
virtual ::android::hardware::Return<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error>
|
||||
setSingleBufferMode(void* buffer, bool enable) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
using getCustomFormatFlags_cb =
|
||||
std::function<void(::vendor::qti::hardware::display::mapperextensions::V1_0::Error error,
|
||||
int32_t format, uint64_t priv_flags)>;
|
||||
virtual ::android::hardware::Return<void> getCustomFormatFlags(int32_t format, uint64_t usage,
|
||||
getCustomFormatFlags_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getFd_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, int32_t fd)>;
|
||||
virtual ::android::hardware::Return<void> getFd(void* buffer, getFd_cb _hidl_cb);
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getWidth_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, int32_t width)>;
|
||||
virtual ::android::hardware::Return<void> getWidth(void* buffer, getWidth_cb _hidl_cb);
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getHeight_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, int32_t height)>;
|
||||
virtual ::android::hardware::Return<void> getHeight(void* buffer, getHeight_cb _hidl_cb);
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getOffset_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, uint64_t offset)>;
|
||||
virtual ::android::hardware::Return<void> getOffset(void* buffer, getOffset_cb _hidl_cb);
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getSize_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, uint64_t size)>;
|
||||
virtual ::android::hardware::Return<void> getSize(void* buffer, getSize_cb _hidl_cb);
|
||||
|
||||
using getUnalignedWidth_cb =
|
||||
std::function<void(::vendor::qti::hardware::display::mapperextensions::V1_0::Error error,
|
||||
int32_t unaligned_width)>;
|
||||
virtual ::android::hardware::Return<void> getUnalignedWidth(void* buffer,
|
||||
getUnalignedWidth_cb _hidl_cb);
|
||||
|
||||
using getUnalignedHeight_cb =
|
||||
std::function<void(::vendor::qti::hardware::display::mapperextensions::V1_0::Error error,
|
||||
int32_t unaligned_height)>;
|
||||
virtual ::android::hardware::Return<void> getUnalignedHeight(void* buffer,
|
||||
getUnalignedHeight_cb _hidl_cb);
|
||||
|
||||
using getLayerCount_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, uint64_t layer_count)>;
|
||||
virtual ::android::hardware::Return<void> getLayerCount(void* buffer, getLayerCount_cb _hidl_cb);
|
||||
|
||||
using getId_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, uint64_t id)>;
|
||||
virtual ::android::hardware::Return<void> getId(void* buffer, getId_cb _hidl_cb);
|
||||
|
||||
using getUsageFlags_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, uint64_t usage)>;
|
||||
virtual ::android::hardware::Return<void> getUsageFlags(void* buffer, getUsageFlags_cb _hidl_cb);
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getFormat_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, int32_t format)>;
|
||||
virtual ::android::hardware::Return<void> getFormat(void* buffer, getFormat_cb _hidl_cb);
|
||||
|
||||
// Used, cast private data with no passthrough
|
||||
using getPrivateFlags_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, int32_t flags)>;
|
||||
virtual ::android::hardware::Return<void> getPrivateFlags(void* buffer,
|
||||
getPrivateFlags_cb _hidl_cb);
|
||||
|
||||
using getSurfaceMetadata_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, void* metadata)>;
|
||||
virtual ::android::hardware::Return<void> getSurfaceMetadata(void* buffer,
|
||||
getSurfaceMetadata_cb _hidl_cb) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
// Used, PAIN
|
||||
using getFormatLayout_cb = std::function<void(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error error, uint64_t size,
|
||||
const ::android::hardware::hidl_vec<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout>& plane_info)>;
|
||||
virtual ::android::hardware::Return<void> getFormatLayout(int32_t format, uint64_t usage,
|
||||
int32_t flags, int32_t width,
|
||||
int32_t height,
|
||||
getFormatLayout_cb _hidl_cb);
|
||||
|
||||
// V1.1, Used, passthrough
|
||||
virtual ::android::hardware::Return<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error>
|
||||
getSurfaceMetadata_V1(void* buffer, void* metadata) {
|
||||
ALOGE("%s", __func__);
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
static Return<sp<IQtiMapperExtensions>> castFrom(
|
||||
android::sp<V1_0::IQtiMapperExtensions> const& /* parent */, bool /* emitError */);
|
||||
};
|
||||
|
||||
} // namespace V1_1
|
||||
} // namespace vendor::qti::hardware::display::mapperextensions
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,250 @@
|
||||
#ifndef HIDL_GENERATED_ANDROID_HARDWARE_GRAPHICS_MAPPER_V2_0_TYPES_H
|
||||
#define HIDL_GENERATED_ANDROID_HARDWARE_GRAPHICS_MAPPER_V2_0_TYPES_H
|
||||
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/MQDescriptor.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
#include <utils/misc.h>
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace graphics {
|
||||
namespace mapper {
|
||||
namespace V2_0 {
|
||||
|
||||
// Forward declaration for forward reference support:
|
||||
enum class Error : int32_t;
|
||||
struct YCbCrLayout;
|
||||
|
||||
enum class Error : int32_t {
|
||||
NONE = 0,
|
||||
BAD_DESCRIPTOR = 1,
|
||||
BAD_BUFFER = 2,
|
||||
BAD_VALUE = 3,
|
||||
NO_RESOURCES = 5,
|
||||
UNSUPPORTED = 7,
|
||||
};
|
||||
|
||||
/**
|
||||
* A buffer descriptor is an implementation-defined opaque data returned by
|
||||
* createDescriptor. It describes the properties of a buffer and is consumed
|
||||
* by the allocator.
|
||||
*/
|
||||
typedef ::android::hardware::hidl_vec<uint32_t> BufferDescriptor;
|
||||
|
||||
/**
|
||||
* Structure for describing YCbCr formats for consumption by applications.
|
||||
* This is used with PixelFormat::YCBCR_*_888.
|
||||
*
|
||||
* Buffer chroma subsampling is defined in the format.
|
||||
* e.g. PixelFormat::YCBCR_420_888 has subsampling 4:2:0.
|
||||
*
|
||||
* Buffers must have a 8 bit depth.
|
||||
*
|
||||
* y, cb, and cr point to the first byte of their respective planes.
|
||||
*
|
||||
* Stride describes the distance in bytes from the first value of one row of
|
||||
* the image to the first value of the next row. It includes the width of the
|
||||
* image plus padding.
|
||||
* yStride is the stride of the luma plane.
|
||||
* cStride is the stride of the chroma planes.
|
||||
*
|
||||
* chromaStep is the distance in bytes from one chroma pixel value to the
|
||||
* next. This is 2 bytes for semiplanar (because chroma values are interleaved
|
||||
* and each chroma value is one byte) and 1 for planar.
|
||||
*/
|
||||
struct YCbCrLayout final {
|
||||
void* y;
|
||||
void* cb;
|
||||
void* cr;
|
||||
uint32_t yStride;
|
||||
uint32_t cStride;
|
||||
uint32_t chromaStep;
|
||||
};
|
||||
|
||||
//
|
||||
// type declarations for package
|
||||
//
|
||||
|
||||
template <typename>
|
||||
static inline std::string toString(int32_t o);
|
||||
static inline std::string toString(::android::hardware::graphics::mapper::V2_0::Error o);
|
||||
|
||||
constexpr int32_t operator|(const ::android::hardware::graphics::mapper::V2_0::Error lhs,
|
||||
const ::android::hardware::graphics::mapper::V2_0::Error rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) | static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator|(const int32_t lhs,
|
||||
const ::android::hardware::graphics::mapper::V2_0::Error rhs) {
|
||||
return static_cast<int32_t>(lhs | static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator|(const ::android::hardware::graphics::mapper::V2_0::Error lhs,
|
||||
const int32_t rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) | rhs);
|
||||
}
|
||||
constexpr int32_t operator&(const ::android::hardware::graphics::mapper::V2_0::Error lhs,
|
||||
const ::android::hardware::graphics::mapper::V2_0::Error rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) & static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator&(const int32_t lhs,
|
||||
const ::android::hardware::graphics::mapper::V2_0::Error rhs) {
|
||||
return static_cast<int32_t>(lhs & static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator&(const ::android::hardware::graphics::mapper::V2_0::Error lhs,
|
||||
const int32_t rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) & rhs);
|
||||
}
|
||||
constexpr int32_t& operator|=(int32_t& v,
|
||||
const ::android::hardware::graphics::mapper::V2_0::Error e) {
|
||||
v |= static_cast<int32_t>(e);
|
||||
return v;
|
||||
}
|
||||
constexpr int32_t& operator&=(int32_t& v,
|
||||
const ::android::hardware::graphics::mapper::V2_0::Error e) {
|
||||
v &= static_cast<int32_t>(e);
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
const ::android::hardware::graphics::mapper::V2_0::YCbCrLayout& o);
|
||||
// operator== and operator!= are not generated for YCbCrLayout
|
||||
|
||||
//
|
||||
// type header definitions for package
|
||||
//
|
||||
|
||||
template <>
|
||||
inline std::string toString<::android::hardware::graphics::mapper::V2_0::Error>(int32_t o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
std::string os;
|
||||
::android::hardware::hidl_bitfield<::android::hardware::graphics::mapper::V2_0::Error> flipped =
|
||||
0;
|
||||
bool first = true;
|
||||
if ((o & ::android::hardware::graphics::mapper::V2_0::Error::NONE) ==
|
||||
static_cast<int32_t>(::android::hardware::graphics::mapper::V2_0::Error::NONE)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "NONE";
|
||||
first = false;
|
||||
flipped |= ::android::hardware::graphics::mapper::V2_0::Error::NONE;
|
||||
}
|
||||
if ((o & ::android::hardware::graphics::mapper::V2_0::Error::BAD_DESCRIPTOR) ==
|
||||
static_cast<int32_t>(::android::hardware::graphics::mapper::V2_0::Error::BAD_DESCRIPTOR)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "BAD_DESCRIPTOR";
|
||||
first = false;
|
||||
flipped |= ::android::hardware::graphics::mapper::V2_0::Error::BAD_DESCRIPTOR;
|
||||
}
|
||||
if ((o & ::android::hardware::graphics::mapper::V2_0::Error::BAD_BUFFER) ==
|
||||
static_cast<int32_t>(::android::hardware::graphics::mapper::V2_0::Error::BAD_BUFFER)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "BAD_BUFFER";
|
||||
first = false;
|
||||
flipped |= ::android::hardware::graphics::mapper::V2_0::Error::BAD_BUFFER;
|
||||
}
|
||||
if ((o & ::android::hardware::graphics::mapper::V2_0::Error::BAD_VALUE) ==
|
||||
static_cast<int32_t>(::android::hardware::graphics::mapper::V2_0::Error::BAD_VALUE)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "BAD_VALUE";
|
||||
first = false;
|
||||
flipped |= ::android::hardware::graphics::mapper::V2_0::Error::BAD_VALUE;
|
||||
}
|
||||
if ((o & ::android::hardware::graphics::mapper::V2_0::Error::NO_RESOURCES) ==
|
||||
static_cast<int32_t>(::android::hardware::graphics::mapper::V2_0::Error::NO_RESOURCES)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "NO_RESOURCES";
|
||||
first = false;
|
||||
flipped |= ::android::hardware::graphics::mapper::V2_0::Error::NO_RESOURCES;
|
||||
}
|
||||
if ((o & ::android::hardware::graphics::mapper::V2_0::Error::UNSUPPORTED) ==
|
||||
static_cast<int32_t>(::android::hardware::graphics::mapper::V2_0::Error::UNSUPPORTED)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "UNSUPPORTED";
|
||||
first = false;
|
||||
flipped |= ::android::hardware::graphics::mapper::V2_0::Error::UNSUPPORTED;
|
||||
}
|
||||
if (o != flipped) {
|
||||
os += (first ? "" : " | ");
|
||||
os += toHexString(o & (~flipped));
|
||||
}
|
||||
os += " (";
|
||||
os += toHexString(o);
|
||||
os += ")";
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(::android::hardware::graphics::mapper::V2_0::Error o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
if (o == ::android::hardware::graphics::mapper::V2_0::Error::NONE) {
|
||||
return "NONE";
|
||||
}
|
||||
if (o == ::android::hardware::graphics::mapper::V2_0::Error::BAD_DESCRIPTOR) {
|
||||
return "BAD_DESCRIPTOR";
|
||||
}
|
||||
if (o == ::android::hardware::graphics::mapper::V2_0::Error::BAD_BUFFER) {
|
||||
return "BAD_BUFFER";
|
||||
}
|
||||
if (o == ::android::hardware::graphics::mapper::V2_0::Error::BAD_VALUE) {
|
||||
return "BAD_VALUE";
|
||||
}
|
||||
if (o == ::android::hardware::graphics::mapper::V2_0::Error::NO_RESOURCES) {
|
||||
return "NO_RESOURCES";
|
||||
}
|
||||
if (o == ::android::hardware::graphics::mapper::V2_0::Error::UNSUPPORTED) {
|
||||
return "UNSUPPORTED";
|
||||
}
|
||||
std::string os;
|
||||
os += toHexString(static_cast<int32_t>(o));
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
const ::android::hardware::graphics::mapper::V2_0::YCbCrLayout& o) {
|
||||
using ::android::hardware::toString;
|
||||
std::string os;
|
||||
os += "{";
|
||||
os += ".y = ";
|
||||
os += ::android::hardware::toString(o.y);
|
||||
os += ", .cb = ";
|
||||
os += ::android::hardware::toString(o.cb);
|
||||
os += ", .cr = ";
|
||||
os += ::android::hardware::toString(o.cr);
|
||||
os += ", .yStride = ";
|
||||
os += ::android::hardware::toString(o.yStride);
|
||||
os += ", .cStride = ";
|
||||
os += ::android::hardware::toString(o.cStride);
|
||||
os += ", .chromaStep = ";
|
||||
os += ::android::hardware::toString(o.chromaStep);
|
||||
os += "}";
|
||||
return os;
|
||||
}
|
||||
|
||||
// operator== and operator!= are not generated for YCbCrLayout
|
||||
|
||||
} // namespace V2_0
|
||||
} // namespace mapper
|
||||
} // namespace graphics
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
//
|
||||
// global type declarations for package
|
||||
//
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace details {
|
||||
template <>
|
||||
constexpr std::array<::android::hardware::graphics::mapper::V2_0::Error, 6>
|
||||
hidl_enum_values<::android::hardware::graphics::mapper::V2_0::Error> = {
|
||||
::android::hardware::graphics::mapper::V2_0::Error::NONE,
|
||||
::android::hardware::graphics::mapper::V2_0::Error::BAD_DESCRIPTOR,
|
||||
::android::hardware::graphics::mapper::V2_0::Error::BAD_BUFFER,
|
||||
::android::hardware::graphics::mapper::V2_0::Error::BAD_VALUE,
|
||||
::android::hardware::graphics::mapper::V2_0::Error::NO_RESOURCES,
|
||||
::android::hardware::graphics::mapper::V2_0::Error::UNSUPPORTED,
|
||||
};
|
||||
} // namespace details
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // HIDL_GENERATED_ANDROID_HARDWARE_GRAPHICS_MAPPER_V2_0_TYPES_H
|
||||
@@ -0,0 +1,707 @@
|
||||
#ifndef HIDL_GENERATED_VENDOR_QTI_HARDWARE_DISPLAY_MAPPEREXTENSIONS_V1_0_TYPES_H
|
||||
#define HIDL_GENERATED_VENDOR_QTI_HARDWARE_DISPLAY_MAPPEREXTENSIONS_V1_0_TYPES_H
|
||||
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/MQDescriptor.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
#include <utils/misc.h>
|
||||
|
||||
namespace vendor {
|
||||
namespace qti {
|
||||
namespace hardware {
|
||||
namespace display {
|
||||
namespace mapperextensions {
|
||||
namespace V1_0 {
|
||||
|
||||
// Forward declaration for forward reference support:
|
||||
enum class Error : int32_t;
|
||||
struct YCbCrLayout;
|
||||
enum class PlaneComponent : uint32_t;
|
||||
enum class Flags : int32_t;
|
||||
struct PlaneLayout;
|
||||
|
||||
enum class Error : int32_t {
|
||||
NONE = 0,
|
||||
BAD_BUFFER = 2,
|
||||
NO_RESOURCES = 5,
|
||||
UNSUPPORTED = 7,
|
||||
};
|
||||
|
||||
struct YCbCrLayout final {
|
||||
void* y;
|
||||
void* cb;
|
||||
void* cr;
|
||||
uint32_t yStride;
|
||||
uint32_t cStride;
|
||||
uint32_t chromaStep;
|
||||
};
|
||||
|
||||
/**
|
||||
* Plane Component type definitions.
|
||||
*/
|
||||
enum class PlaneComponent : uint32_t {
|
||||
PLANE_COMPONENT_Y = 1u /* (1 << 0) */,
|
||||
PLANE_COMPONENT_Cb = 2u /* (1 << 1) */,
|
||||
PLANE_COMPONENT_Cr = 4u /* (1 << 2) */,
|
||||
PLANE_COMPONENT_R = 1024u /* (1 << 10) */,
|
||||
PLANE_COMPONENT_G = 2048u /* (1 << 11) */,
|
||||
PLANE_COMPONENT_B = 4096u /* (1 << 12) */,
|
||||
PLANE_COMPONENT_A = 1048576u /* (1 << 20) */,
|
||||
PLANE_COMPONENT_RAW = 1073741824u /* (1 << 30) */,
|
||||
PLANE_COMPONENT_META = 2147483648u /* (1 << 31) */,
|
||||
};
|
||||
|
||||
/**
|
||||
* Flags to send with getFormatLayout for extra information for e.g. interlaced,
|
||||
* otherwise send 0.
|
||||
*/
|
||||
enum class Flags : int32_t {
|
||||
LAYOUT_INTERLACED_FLAG = 1 /* (1 << 0) */,
|
||||
};
|
||||
|
||||
/**
|
||||
* Structure for describing plane layout information for YUVA/RGBA/RAW formats
|
||||
* YUV formats can be planar or semi-planar.
|
||||
*
|
||||
* This layout structure is used with any pixel format that can be
|
||||
* represented by it, such as:
|
||||
* - HAL_PIXEL_FORMAT_YCbCr_*
|
||||
* - HAL_PIXEL_FORMAT_RGB*_*
|
||||
* - even implementation defined formats that can be represented by
|
||||
* the structures
|
||||
*
|
||||
* Each plane can be made up of one or more PlaneComponents depending on
|
||||
* the format.
|
||||
*
|
||||
* Each plane can be subsampled either vertically or horizontally by
|
||||
* a power-of-two factor.
|
||||
*
|
||||
* Pixel increment describes the distance in bytes from one pixel to the
|
||||
* next pixel (to the right) on the same row for the component plane.
|
||||
* This can be negative.
|
||||
*
|
||||
* Stride is provided in both pixels and bytes.
|
||||
* Stride_bytes describes the distance in bytes from the first pixel of
|
||||
* one row to the first pixel of the next row (below) for the component plane.
|
||||
* This can be negative.
|
||||
*
|
||||
* Scanlines describes the height of the plane in terms of number of rows.
|
||||
*
|
||||
* Size of plane is stride_bytes * scanlines + any padding required for
|
||||
* alignment as per format specification.
|
||||
*
|
||||
*/
|
||||
struct PlaneLayout final {
|
||||
::android::hardware::hidl_bitfield<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent>
|
||||
component __attribute__((aligned(4)));
|
||||
uint32_t h_subsampling __attribute__((aligned(4)));
|
||||
uint32_t v_subsampling __attribute__((aligned(4)));
|
||||
uint32_t offset __attribute__((aligned(4)));
|
||||
int32_t pixel_increment __attribute__((aligned(4)));
|
||||
int32_t stride __attribute__((aligned(4)));
|
||||
int32_t stride_bytes __attribute__((aligned(4)));
|
||||
int32_t scanlines __attribute__((aligned(4)));
|
||||
uint32_t size __attribute__((aligned(4)));
|
||||
};
|
||||
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
component) == 0,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
h_subsampling) == 4,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
v_subsampling) == 8,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
offset) == 12,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
pixel_increment) == 16,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
stride) == 20,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
stride_bytes) == 24,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
scanlines) == 28,
|
||||
"wrong offset");
|
||||
static_assert(offsetof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout,
|
||||
size) == 32,
|
||||
"wrong offset");
|
||||
static_assert(sizeof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout) == 36,
|
||||
"wrong size");
|
||||
static_assert(__alignof(::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout) == 4,
|
||||
"wrong alignment");
|
||||
|
||||
//
|
||||
// type declarations for package
|
||||
//
|
||||
|
||||
template <typename>
|
||||
static inline std::string toString(int32_t o);
|
||||
static inline std::string toString(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error o);
|
||||
|
||||
constexpr int32_t operator|(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) | static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator|(
|
||||
const int32_t lhs, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error rhs) {
|
||||
return static_cast<int32_t>(lhs | static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator|(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error lhs, const int32_t rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) | rhs);
|
||||
}
|
||||
constexpr int32_t operator&(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) & static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator&(
|
||||
const int32_t lhs, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error rhs) {
|
||||
return static_cast<int32_t>(lhs & static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator&(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error lhs, const int32_t rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) & rhs);
|
||||
}
|
||||
constexpr int32_t& operator|=(
|
||||
int32_t& v, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error e) {
|
||||
v |= static_cast<int32_t>(e);
|
||||
return v;
|
||||
}
|
||||
constexpr int32_t& operator&=(
|
||||
int32_t& v, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Error e) {
|
||||
v &= static_cast<int32_t>(e);
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::YCbCrLayout& o);
|
||||
// operator== and operator!= are not generated for YCbCrLayout
|
||||
|
||||
template <typename>
|
||||
static inline std::string toString(uint32_t o);
|
||||
static inline std::string toString(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent o);
|
||||
|
||||
constexpr uint32_t operator|(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent rhs) {
|
||||
return static_cast<uint32_t>(static_cast<uint32_t>(lhs) | static_cast<uint32_t>(rhs));
|
||||
}
|
||||
constexpr uint32_t operator|(
|
||||
const uint32_t lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent rhs) {
|
||||
return static_cast<uint32_t>(lhs | static_cast<uint32_t>(rhs));
|
||||
}
|
||||
constexpr uint32_t operator|(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent lhs,
|
||||
const uint32_t rhs) {
|
||||
return static_cast<uint32_t>(static_cast<uint32_t>(lhs) | rhs);
|
||||
}
|
||||
constexpr uint32_t operator&(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent rhs) {
|
||||
return static_cast<uint32_t>(static_cast<uint32_t>(lhs) & static_cast<uint32_t>(rhs));
|
||||
}
|
||||
constexpr uint32_t operator&(
|
||||
const uint32_t lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent rhs) {
|
||||
return static_cast<uint32_t>(lhs & static_cast<uint32_t>(rhs));
|
||||
}
|
||||
constexpr uint32_t operator&(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent lhs,
|
||||
const uint32_t rhs) {
|
||||
return static_cast<uint32_t>(static_cast<uint32_t>(lhs) & rhs);
|
||||
}
|
||||
constexpr uint32_t& operator|=(
|
||||
uint32_t& v, const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent e) {
|
||||
v |= static_cast<uint32_t>(e);
|
||||
return v;
|
||||
}
|
||||
constexpr uint32_t& operator&=(
|
||||
uint32_t& v, const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent e) {
|
||||
v &= static_cast<uint32_t>(e);
|
||||
return v;
|
||||
}
|
||||
|
||||
template <typename>
|
||||
static inline std::string toString(int32_t o);
|
||||
static inline std::string toString(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags o);
|
||||
|
||||
constexpr int32_t operator|(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) | static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator|(
|
||||
const int32_t lhs, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags rhs) {
|
||||
return static_cast<int32_t>(lhs | static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator|(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags lhs, const int32_t rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) | rhs);
|
||||
}
|
||||
constexpr int32_t operator&(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) & static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator&(
|
||||
const int32_t lhs, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags rhs) {
|
||||
return static_cast<int32_t>(lhs & static_cast<int32_t>(rhs));
|
||||
}
|
||||
constexpr int32_t operator&(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags lhs, const int32_t rhs) {
|
||||
return static_cast<int32_t>(static_cast<int32_t>(lhs) & rhs);
|
||||
}
|
||||
constexpr int32_t& operator|=(
|
||||
int32_t& v, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags e) {
|
||||
v |= static_cast<int32_t>(e);
|
||||
return v;
|
||||
}
|
||||
constexpr int32_t& operator&=(
|
||||
int32_t& v, const ::vendor::qti::hardware::display::mapperextensions::V1_0::Flags e) {
|
||||
v &= static_cast<int32_t>(e);
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& o);
|
||||
static inline bool operator==(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& rhs);
|
||||
static inline bool operator!=(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& rhs);
|
||||
|
||||
//
|
||||
// type header definitions for package
|
||||
//
|
||||
|
||||
template <>
|
||||
inline std::string toString<::vendor::qti::hardware::display::mapperextensions::V1_0::Error>(
|
||||
int32_t o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
std::string os;
|
||||
::android::hardware::hidl_bitfield<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error>
|
||||
flipped = 0;
|
||||
bool first = true;
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NONE) ==
|
||||
static_cast<int32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NONE)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "NONE";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NONE;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::BAD_BUFFER) ==
|
||||
static_cast<int32_t>(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::BAD_BUFFER)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "BAD_BUFFER";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::BAD_BUFFER;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NO_RESOURCES) ==
|
||||
static_cast<int32_t>(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NO_RESOURCES)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "NO_RESOURCES";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NO_RESOURCES;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::UNSUPPORTED) ==
|
||||
static_cast<int32_t>(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::UNSUPPORTED)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "UNSUPPORTED";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::UNSUPPORTED;
|
||||
}
|
||||
if (o != flipped) {
|
||||
os += (first ? "" : " | ");
|
||||
os += toHexString(o & (~flipped));
|
||||
}
|
||||
os += " (";
|
||||
os += toHexString(o);
|
||||
os += ")";
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NONE) {
|
||||
return "NONE";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::BAD_BUFFER) {
|
||||
return "BAD_BUFFER";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NO_RESOURCES) {
|
||||
return "NO_RESOURCES";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::Error::UNSUPPORTED) {
|
||||
return "UNSUPPORTED";
|
||||
}
|
||||
std::string os;
|
||||
os += toHexString(static_cast<int32_t>(o));
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::YCbCrLayout& o) {
|
||||
using ::android::hardware::toString;
|
||||
std::string os;
|
||||
os += "{";
|
||||
os += ".y = ";
|
||||
os += ::android::hardware::toString(o.y);
|
||||
os += ", .cb = ";
|
||||
os += ::android::hardware::toString(o.cb);
|
||||
os += ", .cr = ";
|
||||
os += ::android::hardware::toString(o.cr);
|
||||
os += ", .yStride = ";
|
||||
os += ::android::hardware::toString(o.yStride);
|
||||
os += ", .cStride = ";
|
||||
os += ::android::hardware::toString(o.cStride);
|
||||
os += ", .chromaStep = ";
|
||||
os += ::android::hardware::toString(o.chromaStep);
|
||||
os += "}";
|
||||
return os;
|
||||
}
|
||||
|
||||
// operator== and operator!= are not generated for YCbCrLayout
|
||||
|
||||
template <>
|
||||
inline std::string
|
||||
toString<::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent>(uint32_t o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
std::string os;
|
||||
::android::hardware::hidl_bitfield<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent>
|
||||
flipped = 0;
|
||||
bool first = true;
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Y) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_Y)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_Y";
|
||||
first = false;
|
||||
flipped |=
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_Y;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cb) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_Cb)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_Cb";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cb;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cr) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_Cr)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_Cr";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cr;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_R) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_R)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_R";
|
||||
first = false;
|
||||
flipped |=
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_R;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_G) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_G)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_G";
|
||||
first = false;
|
||||
flipped |=
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_G;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_B) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_B)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_B";
|
||||
first = false;
|
||||
flipped |=
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_B;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_A) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_A)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_A";
|
||||
first = false;
|
||||
flipped |=
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_A;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_RAW) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_RAW)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_RAW";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_RAW;
|
||||
}
|
||||
if ((o & ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_META) ==
|
||||
static_cast<uint32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::
|
||||
PlaneComponent::PLANE_COMPONENT_META)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "PLANE_COMPONENT_META";
|
||||
first = false;
|
||||
flipped |= ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_META;
|
||||
}
|
||||
if (o != flipped) {
|
||||
os += (first ? "" : " | ");
|
||||
os += toHexString(o & (~flipped));
|
||||
}
|
||||
os += " (";
|
||||
os += toHexString(o);
|
||||
os += ")";
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
if (o ==
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_Y) {
|
||||
return "PLANE_COMPONENT_Y";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cb) {
|
||||
return "PLANE_COMPONENT_Cb";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cr) {
|
||||
return "PLANE_COMPONENT_Cr";
|
||||
}
|
||||
if (o ==
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_R) {
|
||||
return "PLANE_COMPONENT_R";
|
||||
}
|
||||
if (o ==
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_G) {
|
||||
return "PLANE_COMPONENT_G";
|
||||
}
|
||||
if (o ==
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_B) {
|
||||
return "PLANE_COMPONENT_B";
|
||||
}
|
||||
if (o ==
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_A) {
|
||||
return "PLANE_COMPONENT_A";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_RAW) {
|
||||
return "PLANE_COMPONENT_RAW";
|
||||
}
|
||||
if (o == ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_META) {
|
||||
return "PLANE_COMPONENT_META";
|
||||
}
|
||||
std::string os;
|
||||
os += toHexString(static_cast<uint32_t>(o));
|
||||
return os;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline std::string toString<::vendor::qti::hardware::display::mapperextensions::V1_0::Flags>(
|
||||
int32_t o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
std::string os;
|
||||
::android::hardware::hidl_bitfield<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags>
|
||||
flipped = 0;
|
||||
bool first = true;
|
||||
if ((o &
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags::LAYOUT_INTERLACED_FLAG) ==
|
||||
static_cast<int32_t>(::vendor::qti::hardware::display::mapperextensions::V1_0::Flags::
|
||||
LAYOUT_INTERLACED_FLAG)) {
|
||||
os += (first ? "" : " | ");
|
||||
os += "LAYOUT_INTERLACED_FLAG";
|
||||
first = false;
|
||||
flipped |=
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags::LAYOUT_INTERLACED_FLAG;
|
||||
}
|
||||
if (o != flipped) {
|
||||
os += (first ? "" : " | ");
|
||||
os += toHexString(o & (~flipped));
|
||||
}
|
||||
os += " (";
|
||||
os += toHexString(o);
|
||||
os += ")";
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags o) {
|
||||
using ::android::hardware::details::toHexString;
|
||||
if (o ==
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags::LAYOUT_INTERLACED_FLAG) {
|
||||
return "LAYOUT_INTERLACED_FLAG";
|
||||
}
|
||||
std::string os;
|
||||
os += toHexString(static_cast<int32_t>(o));
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline std::string toString(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& o) {
|
||||
using ::android::hardware::toString;
|
||||
std::string os;
|
||||
os += "{";
|
||||
os += ".component = ";
|
||||
os += ::vendor::qti::hardware::display::mapperextensions::V1_0::toString<
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent>(o.component);
|
||||
os += ", .h_subsampling = ";
|
||||
os += ::android::hardware::toString(o.h_subsampling);
|
||||
os += ", .v_subsampling = ";
|
||||
os += ::android::hardware::toString(o.v_subsampling);
|
||||
os += ", .offset = ";
|
||||
os += ::android::hardware::toString(o.offset);
|
||||
os += ", .pixel_increment = ";
|
||||
os += ::android::hardware::toString(o.pixel_increment);
|
||||
os += ", .stride = ";
|
||||
os += ::android::hardware::toString(o.stride);
|
||||
os += ", .stride_bytes = ";
|
||||
os += ::android::hardware::toString(o.stride_bytes);
|
||||
os += ", .scanlines = ";
|
||||
os += ::android::hardware::toString(o.scanlines);
|
||||
os += ", .size = ";
|
||||
os += ::android::hardware::toString(o.size);
|
||||
os += "}";
|
||||
return os;
|
||||
}
|
||||
|
||||
static inline bool operator==(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& rhs) {
|
||||
if (lhs.component != rhs.component) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.h_subsampling != rhs.h_subsampling) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.v_subsampling != rhs.v_subsampling) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.offset != rhs.offset) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.pixel_increment != rhs.pixel_increment) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.stride != rhs.stride) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.stride_bytes != rhs.stride_bytes) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.scanlines != rhs.scanlines) {
|
||||
return false;
|
||||
}
|
||||
if (lhs.size != rhs.size) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline bool operator!=(
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& lhs,
|
||||
const ::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneLayout& rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
} // namespace V1_0
|
||||
} // namespace mapperextensions
|
||||
} // namespace display
|
||||
} // namespace hardware
|
||||
} // namespace qti
|
||||
} // namespace vendor
|
||||
|
||||
//
|
||||
// global type declarations for package
|
||||
//
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace details {
|
||||
template <>
|
||||
constexpr std::array<::vendor::qti::hardware::display::mapperextensions::V1_0::Error, 4>
|
||||
hidl_enum_values<::vendor::qti::hardware::display::mapperextensions::V1_0::Error> = {
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NONE,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::BAD_BUFFER,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::NO_RESOURCES,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Error::UNSUPPORTED,
|
||||
};
|
||||
} // namespace details
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace details {
|
||||
template <>
|
||||
constexpr std::array<::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent, 9>
|
||||
hidl_enum_values<::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent> = {
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_Y,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cb,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_Cr,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_R,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_G,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_B,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::PLANE_COMPONENT_A,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_RAW,
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::PlaneComponent::
|
||||
PLANE_COMPONENT_META,
|
||||
};
|
||||
} // namespace details
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace details {
|
||||
template <>
|
||||
constexpr std::array<::vendor::qti::hardware::display::mapperextensions::V1_0::Flags, 1>
|
||||
hidl_enum_values<::vendor::qti::hardware::display::mapperextensions::V1_0::Flags> = {
|
||||
::vendor::qti::hardware::display::mapperextensions::V1_0::Flags::LAYOUT_INTERLACED_FLAG,
|
||||
};
|
||||
} // namespace details
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // HIDL_GENERATED_VENDOR_QTI_HARDWARE_DISPLAY_MAPPEREXTENSIONS_V1_0_TYPES_H
|
||||
@@ -0,0 +1,472 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2022, The Linux Foundation. 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 The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#define LOG_TAG "qtimapper-shim"
|
||||
|
||||
#include <android/hidl/base/1.0/BpHwBase.h>
|
||||
#include <dlfcn.h>
|
||||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/MQDescriptor.h>
|
||||
#include <hidl/Status.h>
|
||||
#include <log/log.h>
|
||||
#include <utils/NativeHandle.h>
|
||||
#include <utils/misc.h>
|
||||
|
||||
#include "ext/common.h"
|
||||
#include "ext/gr_utils.h"
|
||||
#include "ext/mapper.h"
|
||||
#include "ext/mapperextensions.h"
|
||||
|
||||
using namespace android::hardware;
|
||||
using namespace android;
|
||||
|
||||
// These two functions are used by the blob and aren't present on Q so weakly stub them
|
||||
extern "C" uint64_t __attribute__((weak)) atrace_get_enabled_tags() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
namespace android::hardware::details {
|
||||
void __attribute__((weak)) return_status::onValueRetrieval() const {}
|
||||
} // namespace android::hardware::details
|
||||
|
||||
bool IBase::isRemote() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
sp<graphics::mapper::V2_0::IMapper> (*Mapper20GetService)(const std::string&, const bool);
|
||||
sp<graphics::mapper::V3_0::IMapper> (*Mapper30GetService)(const std::string&, const bool);
|
||||
sp<graphics::mapper::V4_0::IMapper> (*Mapper40GetService)(const std::string&, const bool);
|
||||
|
||||
Return<sp<vendor::qti::hardware::display::mapper::V2_0::IQtiMapper>> (*QtiMapper20CastFrom)(
|
||||
const sp<graphics::mapper::V2_0::IMapper>&, bool);
|
||||
Return<sp<vendor::qti::hardware::display::mapper::V3_0::IQtiMapper>> (*QtiMapper30CastFrom)(
|
||||
const sp<graphics::mapper::V3_0::IMapper>&, bool);
|
||||
Return<sp<vendor::qti::hardware::display::mapper::V4_0::IQtiMapper>> (*QtiMapper40CastFrom)(
|
||||
const sp<graphics::mapper::V4_0::IMapper>&, bool);
|
||||
|
||||
Return<sp<vendor::qti::hardware::display::mapperextensions::V1_1::IQtiMapperExtensions>> (
|
||||
*MapperExtensions11CastFrom)(
|
||||
const sp<vendor::qti::hardware::display::mapperextensions::V1_0::IQtiMapperExtensions>&, bool);
|
||||
|
||||
__attribute__((constructor)) static void initShim() {
|
||||
void* qtiMapper40Hnd =
|
||||
dlopen("vendor.qti.hardware.display.mapper@4.0.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (qtiMapper40Hnd) {
|
||||
void* mapper40Hnd = dlopen("android.hardware.graphics.mapper@4.0.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (mapper40Hnd) {
|
||||
Mapper40GetService = reinterpret_cast<decltype(Mapper40GetService)>(
|
||||
dlsym(mapper40Hnd,
|
||||
"_ZN7android8hardware8graphics6mapper4V4_07IMapper10getServiceERKNSt3__112basic_"
|
||||
"stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEb"));
|
||||
QtiMapper40CastFrom = reinterpret_cast<decltype(QtiMapper40CastFrom)>(dlsym(
|
||||
qtiMapper40Hnd,
|
||||
"_ZN6vendor3qti8hardware7display6mapper4V4_010IQtiMapper8castFromERKN7android2spINS6_"
|
||||
"8hardware8graphics6mapper4V4_07IMapperEEEb"));
|
||||
|
||||
ALOGD("%s: Mapper 4.0 present", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
void* qtiMapper30Hnd =
|
||||
dlopen("vendor.qti.hardware.display.mapper@3.0.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (qtiMapper30Hnd) {
|
||||
void* mapper30Hnd = dlopen("android.hardware.graphics.mapper@3.0.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (mapper30Hnd) {
|
||||
Mapper30GetService = reinterpret_cast<decltype(Mapper30GetService)>(
|
||||
dlsym(mapper30Hnd,
|
||||
"_ZN7android8hardware8graphics6mapper4V3_07IMapper10getServiceERKNSt3__112basic_"
|
||||
"stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEb"));
|
||||
QtiMapper30CastFrom = reinterpret_cast<decltype(QtiMapper30CastFrom)>(dlsym(
|
||||
qtiMapper30Hnd,
|
||||
"_ZN6vendor3qti8hardware7display6mapper4V3_010IQtiMapper8castFromERKN7android2spINS6_"
|
||||
"8hardware8graphics6mapper4V3_07IMapperEEEb"));
|
||||
ALOGD("%s: Mapper 3.0 present", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
void* qtiMapper20Hnd =
|
||||
dlopen("vendor.qti.hardware.display.mapper@2.0.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (qtiMapper20Hnd) {
|
||||
void* mapper20Hnd = dlopen("android.hardware.graphics.mapper@2.0.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (mapper20Hnd) {
|
||||
Mapper20GetService = reinterpret_cast<decltype(Mapper20GetService)>(
|
||||
dlsym(mapper20Hnd,
|
||||
"_ZN7android8hardware8graphics6mapper4V2_07IMapper10getServiceERKNSt3__112basic_"
|
||||
"stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEb"));
|
||||
QtiMapper20CastFrom = reinterpret_cast<decltype(QtiMapper20CastFrom)>(dlsym(
|
||||
qtiMapper20Hnd,
|
||||
"_ZN6vendor3qti8hardware7display6mapper4V2_010IQtiMapper8castFromERKN7android2spINS6_"
|
||||
"8hardware8graphics6mapper4V2_07IMapperEEEb"));
|
||||
ALOGD("%s: Mapper 2.0 present", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
void* mapperExtensions11Hnd =
|
||||
dlopen("vendor.qti.hardware.display.mapperextensions@1.1.so", RTLD_LAZY | RTLD_LOCAL);
|
||||
if (mapperExtensions11Hnd) {
|
||||
MapperExtensions11CastFrom = reinterpret_cast<decltype(MapperExtensions11CastFrom)>(dlsym(
|
||||
mapperExtensions11Hnd,
|
||||
"_ZN6vendor3qti8hardware7display16mapperextensions4V1_"
|
||||
"120IQtiMapperExtensions8castFromERKN7android2spINS3_4V1_020IQtiMapperExtensionsEEEb"));
|
||||
ALOGD("%s: Mapper Extensions 1.1 present", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
namespace android::hardware::graphics::mapper {
|
||||
namespace V2_0 {
|
||||
|
||||
sp<IMapper> IMapper::getService(const std::string& serviceName, const bool getStub) {
|
||||
if (Mapper20GetService) return Mapper20GetService(serviceName, getStub);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace V2_0
|
||||
namespace V3_0 {
|
||||
|
||||
sp<IMapper> IMapper::getService(const std::string& serviceName, const bool getStub) {
|
||||
if (Mapper30GetService) return Mapper30GetService(serviceName, getStub);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace V3_0
|
||||
namespace V4_0 {
|
||||
|
||||
sp<IMapper> IMapper::getService(const std::string& serviceName, const bool getStub) {
|
||||
if (Mapper40GetService) return Mapper40GetService(serviceName, getStub);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace V4_0
|
||||
} // namespace android::hardware::graphics::mapper
|
||||
namespace vendor::qti::hardware::display {
|
||||
namespace mapper {
|
||||
namespace V4_0 {
|
||||
|
||||
Return<sp<IQtiMapper>> IQtiMapper::castFrom(const sp<graphics::mapper::V4_0::IMapper>& parent,
|
||||
bool emitError) {
|
||||
if (QtiMapper40CastFrom) return QtiMapper40CastFrom(parent, emitError);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace V4_0
|
||||
namespace V3_0 {
|
||||
|
||||
Return<sp<IQtiMapper>> IQtiMapper::castFrom(const sp<graphics::mapper::V3_0::IMapper>& parent,
|
||||
bool emitError) {
|
||||
if (QtiMapper30CastFrom) return QtiMapper30CastFrom(parent, emitError);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace V3_0
|
||||
namespace V2_0 {
|
||||
|
||||
Return<sp<IQtiMapper>> IQtiMapper::castFrom(const sp<graphics::mapper::V2_0::IMapper>& parent,
|
||||
bool emitError) {
|
||||
if (QtiMapper20CastFrom) return QtiMapper20CastFrom(parent, emitError);
|
||||
|
||||
return new IQtiMapper();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapper::getMapperExtensions(getMapperExtensions_cb _hidl_cb) {
|
||||
sp<mapperextensions::V1_0::IQtiMapperExtensions> ext{
|
||||
new mapperextensions::V1_0::IQtiMapperExtensions()};
|
||||
_hidl_cb(graphics::mapper::V2_0::Error::NONE, ext);
|
||||
return Void();
|
||||
}
|
||||
|
||||
} // namespace V2_0
|
||||
} // namespace mapper
|
||||
namespace mapperextensions {
|
||||
namespace V1_1 {
|
||||
|
||||
IQtiMapperExtensions::IQtiMapperExtensions() {
|
||||
ALOGI("IQtiMapperExtensions shim active");
|
||||
|
||||
hw_module_t const* module;
|
||||
if (hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &module)) {
|
||||
ALOGE("Failed to open gralloc module!");
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
if (gralloc1_open(module, &gralloc)) {
|
||||
ALOGE("Failed to open gralloc HAL!");
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
perform = reinterpret_cast<GRALLOC1_PFN_PERFORM>(
|
||||
gralloc->getFunction(gralloc, GRALLOC1_FUNCTION_PERFORM));
|
||||
if (!perform) {
|
||||
ALOGE("Failed to get gralloc perform helper!");
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
ALOGD("Opened gralloc1 HAL");
|
||||
}
|
||||
|
||||
Return<sp<IQtiMapperExtensions>> IQtiMapperExtensions::castFrom(
|
||||
android::sp<V1_0::IQtiMapperExtensions> const& parent, bool emitError) {
|
||||
if (MapperExtensions11CastFrom) return MapperExtensions11CastFrom(parent, emitError);
|
||||
return new IQtiMapperExtensions();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getRgbDataAddress(void* buffer, getRgbDataAddress_cb _hidl_cb) {
|
||||
void* rgb_data = nullptr;
|
||||
|
||||
auto err = perform(gralloc, GRALLOC_MODULE_PERFORM_GET_RGB_DATA_ADDRESS, buffer, &rgb_data)
|
||||
? Error::BAD_BUFFER
|
||||
: Error::NONE;
|
||||
_hidl_cb(err, rgb_data);
|
||||
|
||||
ALOGV("%s: err: %d rgb_data: %p", __func__, err, rgb_data);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getInterlacedFlag(void* buffer, getInterlacedFlag_cb _hidl_cb) {
|
||||
int flag = 0;
|
||||
auto perform = reinterpret_cast<GRALLOC1_PFN_PERFORM>(
|
||||
gralloc->getFunction(gralloc, GRALLOC1_FUNCTION_PERFORM));
|
||||
auto err = perform(gralloc, GRALLOC1_MODULE_PERFORM_GET_INTERLACE_FLAG, buffer, &flag)
|
||||
? Error::BAD_BUFFER
|
||||
: Error::NONE;
|
||||
_hidl_cb(err, flag);
|
||||
ALOGV("%s: err: %d flag: %d", __func__, err, flag);
|
||||
return Void();
|
||||
}
|
||||
Return<void> IQtiMapperExtensions::getFd(void* buffer, getFd_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int fd = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
fd = hnd->fd;
|
||||
}
|
||||
hidl_cb(err, fd);
|
||||
ALOGV("%s: fd: %d", __func__, fd);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getWidth(void* buffer, getWidth_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int width = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
width = hnd->width;
|
||||
}
|
||||
hidl_cb(err, width);
|
||||
ALOGV("%s: width: %d", __func__, width);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getHeight(void* buffer, getHeight_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int height = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
height = hnd->height;
|
||||
}
|
||||
hidl_cb(err, height);
|
||||
ALOGV("%s: height: %d", __func__, height);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getFormat(void* buffer, getFormat_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int format = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
format = hnd->format;
|
||||
}
|
||||
hidl_cb(err, format);
|
||||
|
||||
ALOGV("%s: format: %d", __func__, format);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getPrivateFlags(void* buffer, getPrivateFlags_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int flags = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
flags = hnd->flags;
|
||||
}
|
||||
hidl_cb(err, flags);
|
||||
ALOGV("%s: flags: %d", __func__, flags);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getUnalignedWidth(void* buffer, getUnalignedWidth_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int unaligned_width = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
unaligned_width = hnd->unaligned_width;
|
||||
}
|
||||
hidl_cb(err, unaligned_width);
|
||||
|
||||
ALOGV("%s: unaligned_width: %u", __func__, unaligned_width);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getUnalignedHeight(void* buffer, getUnalignedHeight_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
int unaligned_height = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
unaligned_height = hnd->unaligned_height;
|
||||
}
|
||||
hidl_cb(err, unaligned_height);
|
||||
ALOGV("%s: unaligned_height: %u", __func__, unaligned_height);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getLayerCount(void* buffer, getLayerCount_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
unsigned int layer_count = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
layer_count = hnd->layer_count;
|
||||
}
|
||||
hidl_cb(err, layer_count);
|
||||
ALOGV("%s: layer_count: %u", __func__, layer_count);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getId(void* buffer, getId_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
uint64_t id = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
id = hnd->id;
|
||||
}
|
||||
hidl_cb(err, id);
|
||||
ALOGV("%s: id: %" PRIu64, __func__, id);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getUsageFlags(void* buffer, getUsageFlags_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
uint64_t usage = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
usage = hnd->usage;
|
||||
}
|
||||
hidl_cb(err, usage);
|
||||
ALOGV("%s: usage: %" PRIu64, __func__, usage);
|
||||
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getSize(void* buffer, getSize_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
unsigned int size = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
size = hnd->size;
|
||||
}
|
||||
hidl_cb(err, size);
|
||||
ALOGV("%s: size: %u", __func__, size);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getOffset(void* buffer, getOffset_cb hidl_cb) {
|
||||
auto err = Error::BAD_BUFFER;
|
||||
unsigned int offset = 0;
|
||||
auto hnd = static_cast<private_handle_t*>(buffer);
|
||||
if (buffer != nullptr && private_handle_t::validate(hnd) == 0) {
|
||||
err = Error::NONE;
|
||||
offset = hnd->offset;
|
||||
}
|
||||
hidl_cb(err, offset);
|
||||
ALOGV("%s: offset: %u", __func__, offset);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> IQtiMapperExtensions::getFormatLayout(int32_t format, uint64_t usage, int32_t flags,
|
||||
int32_t width, int32_t height,
|
||||
getFormatLayout_cb _hidl_cb) {
|
||||
hidl_vec<PlaneLayout> plane_info;
|
||||
unsigned int alignedw = 0, alignedh = 0, tile_enabled = 0;
|
||||
int plane_count = 0;
|
||||
uint64_t size = 0;
|
||||
int custom_format = gralloc::GetImplDefinedFormat(usage, format);
|
||||
gralloc::BufferInfo info(width, height, custom_format, usage);
|
||||
|
||||
auto err = perform(gralloc, GRALLOC_MODULE_PERFORM_GET_ATTRIBUTES, width, height, custom_format,
|
||||
usage, usage, &alignedw, &alignedh, &tile_enabled)
|
||||
? Error::BAD_BUFFER
|
||||
: Error::NONE;
|
||||
if (err != Error::NONE) {
|
||||
_hidl_cb(err, 0, plane_info);
|
||||
return Void();
|
||||
}
|
||||
|
||||
size = gralloc::GetSize(info, alignedw, alignedh);
|
||||
gralloc::PlaneLayoutInfo plane_layout[8] = {};
|
||||
|
||||
if (gralloc::IsUncompressedRGBFormat(custom_format) ||
|
||||
gralloc::IsCompressedRGBFormat(custom_format)) {
|
||||
gralloc::GetRGBPlaneInfo(info, custom_format, alignedw, alignedh, flags, &plane_count,
|
||||
plane_layout);
|
||||
} else {
|
||||
ALOGE("%s: unsupported format %d", __func__, format);
|
||||
err = Error::BAD_BUFFER;
|
||||
_hidl_cb(err, size, plane_info);
|
||||
return Void();
|
||||
}
|
||||
|
||||
plane_info.resize(plane_count);
|
||||
for (int i = 0; i < plane_count; i++) {
|
||||
plane_info[i].component = plane_layout[i].component;
|
||||
plane_info[i].h_subsampling = plane_layout[i].h_subsampling;
|
||||
plane_info[i].v_subsampling = plane_layout[i].v_subsampling;
|
||||
plane_info[i].offset = plane_layout[i].offset;
|
||||
plane_info[i].pixel_increment = plane_layout[i].step;
|
||||
plane_info[i].stride = plane_layout[i].stride;
|
||||
plane_info[i].stride_bytes = plane_layout[i].stride_bytes;
|
||||
plane_info[i].scanlines = plane_layout[i].scanlines;
|
||||
plane_info[i].size = plane_layout[i].size;
|
||||
}
|
||||
|
||||
_hidl_cb(err, size, plane_info);
|
||||
return Void();
|
||||
}
|
||||
|
||||
} // namespace V1_1
|
||||
} // namespace mapperextensions
|
||||
} // namespace vendor::qti::hardware::display
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* One function: the release fence the fake-input ring writer needs.
|
||||
*
|
||||
* FakeInputWriter publishes events into a shared-memory ring that libfakeinput.so reads from
|
||||
* another process. Java's memory model says nothing about what a foreign reader sees, so the
|
||||
* writer calls this between filling the events and advancing the sequence counter: everything
|
||||
* written before it is visible to the reader before the counter moves.
|
||||
*/
|
||||
#include <jni.h>
|
||||
#include <stdatomic.h>
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_the412banner_steamdeck_input_FakeInputWriter_nativeStoreFence(JNIEnv *env, jclass clazz) {
|
||||
(void)env;
|
||||
(void)clazz;
|
||||
atomic_thread_fence(memory_order_release);
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t cas_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000f3,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x000000ed,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00030005,0x00000009,0x00007675,0x00060005,0x0000000b,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00030005,0x0000000d,0x00007870,0x00030005,0x00000010,0x00004350,
|
||||
0x00040006,0x00000010,0x00000000,0x0063646e,0x00060006,0x00000010,0x00000001,0x6f736572,
|
||||
0x6974756c,0x00006e6f,0x00060006,0x00000010,0x00000002,0x72616873,0x73656e70,0x00000073,
|
||||
0x00030005,0x00000012,0x00006370,0x00050005,0x0000001b,0x52414853,0x53454e50,0x00000053,
|
||||
0x00030005,0x00000022,0x00000061,0x00060005,0x00000026,0x75706e49,0x78655474,0x65727574,
|
||||
0x00000000,0x00030005,0x00000036,0x00000062,0x00030005,0x00000041,0x00000063,0x00030005,
|
||||
0x0000004d,0x00000064,0x00030005,0x00000057,0x00000065,0x00030005,0x0000005c,0x00000066,
|
||||
0x00030005,0x00000065,0x00000067,0x00030005,0x00000071,0x00000068,0x00030005,0x0000007a,
|
||||
0x00000069,0x00040005,0x00000085,0x47526e6d,0x00000042,0x00040005,0x0000008f,0x47526e6d,
|
||||
0x00003242,0x00040005,0x0000009c,0x4752786d,0x00000042,0x00040005,0x000000a6,0x4752786d,
|
||||
0x00003242,0x00050005,0x000000b3,0x4d706372,0x42475278,0x00000000,0x00040005,0x000000b7,
|
||||
0x52706d61,0x00004247,0x00040005,0x000000c5,0x6b616570,0x00000000,0x00040005,0x000000cb,
|
||||
0x42475277,0x00000000,0x00060005,0x000000d2,0x57706372,0x68676965,0x42475274,0x00000000,
|
||||
0x00040005,0x000000d9,0x646e6977,0x0000776f,0x00030005,0x000000e1,0x006c6f63,0x00050005,
|
||||
0x000000ed,0x4374756f,0x726f6c6f,0x00000000,0x00040047,0x0000000b,0x0000001e,0x00000000,
|
||||
0x00030047,0x00000010,0x00000002,0x00050048,0x00000010,0x00000000,0x00000023,0x00000000,
|
||||
0x00050048,0x00000010,0x00000001,0x00000023,0x00000010,0x00050048,0x00000010,0x00000002,
|
||||
0x00000023,0x00000018,0x00040047,0x00000026,0x00000021,0x00000000,0x00040047,0x00000026,
|
||||
0x00000022,0x00000000,0x00040047,0x000000ed,0x0000001e,0x00000000,0x00020013,0x00000002,
|
||||
0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,
|
||||
0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00040020,0x0000000a,
|
||||
0x00000001,0x00000007,0x0004003b,0x0000000a,0x0000000b,0x00000001,0x0004002b,0x00000006,
|
||||
0x0000000e,0x3f800000,0x00040017,0x0000000f,0x00000006,0x00000004,0x0005001e,0x00000010,
|
||||
0x0000000f,0x00000007,0x00000006,0x00040020,0x00000011,0x00000009,0x00000010,0x0004003b,
|
||||
0x00000011,0x00000012,0x00000009,0x00040015,0x00000013,0x00000020,0x00000001,0x0004002b,
|
||||
0x00000013,0x00000014,0x00000001,0x00040020,0x00000015,0x00000009,0x00000007,0x00040020,
|
||||
0x0000001a,0x00000007,0x00000006,0x0004002b,0x00000013,0x0000001c,0x00000002,0x00040020,
|
||||
0x0000001d,0x00000009,0x00000006,0x00040017,0x00000020,0x00000006,0x00000003,0x00040020,
|
||||
0x00000021,0x00000007,0x00000020,0x00090019,0x00000023,0x00000006,0x00000001,0x00000000,
|
||||
0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000024,0x00000023,0x00040020,
|
||||
0x00000025,0x00000000,0x00000024,0x0004003b,0x00000025,0x00000026,0x00000000,0x00040015,
|
||||
0x00000029,0x00000020,0x00000000,0x0004002b,0x00000029,0x0000002a,0x00000000,0x0004002b,
|
||||
0x00000029,0x0000002e,0x00000001,0x0004002b,0x00000006,0x00000039,0x00000000,0x0006002c,
|
||||
0x00000020,0x000000b4,0x0000000e,0x0000000e,0x0000000e,0x0004002b,0x00000006,0x000000b9,
|
||||
0x40000000,0x0004002b,0x00000006,0x000000c6,0x41000000,0x0004002b,0x00000006,0x000000c7,
|
||||
0x40400000,0x0004002b,0x00000006,0x000000cc,0xbf800000,0x0006002c,0x00000020,0x000000cd,
|
||||
0x000000cc,0x000000cc,0x000000cc,0x0004002b,0x00000006,0x000000d3,0x40800000,0x00040020,
|
||||
0x000000ec,0x00000003,0x0000000f,0x0004003b,0x000000ec,0x000000ed,0x00000003,0x00050036,
|
||||
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000008,
|
||||
0x00000009,0x00000007,0x0004003b,0x00000008,0x0000000d,0x00000007,0x0004003b,0x0000001a,
|
||||
0x0000001b,0x00000007,0x0004003b,0x00000021,0x00000022,0x00000007,0x0004003b,0x00000021,
|
||||
0x00000036,0x00000007,0x0004003b,0x00000021,0x00000041,0x00000007,0x0004003b,0x00000021,
|
||||
0x0000004d,0x00000007,0x0004003b,0x00000021,0x00000057,0x00000007,0x0004003b,0x00000021,
|
||||
0x0000005c,0x00000007,0x0004003b,0x00000021,0x00000065,0x00000007,0x0004003b,0x00000021,
|
||||
0x00000071,0x00000007,0x0004003b,0x00000021,0x0000007a,0x00000007,0x0004003b,0x00000021,
|
||||
0x00000085,0x00000007,0x0004003b,0x00000021,0x0000008f,0x00000007,0x0004003b,0x00000021,
|
||||
0x0000009c,0x00000007,0x0004003b,0x00000021,0x000000a6,0x00000007,0x0004003b,0x00000021,
|
||||
0x000000b3,0x00000007,0x0004003b,0x00000021,0x000000b7,0x00000007,0x0004003b,0x0000001a,
|
||||
0x000000c5,0x00000007,0x0004003b,0x00000021,0x000000cb,0x00000007,0x0004003b,0x00000021,
|
||||
0x000000d2,0x00000007,0x0004003b,0x00000021,0x000000d9,0x00000007,0x0004003b,0x00000021,
|
||||
0x000000e1,0x00000007,0x0004003d,0x00000007,0x0000000c,0x0000000b,0x0003003e,0x00000009,
|
||||
0x0000000c,0x00050041,0x00000015,0x00000016,0x00000012,0x00000014,0x0004003d,0x00000007,
|
||||
0x00000017,0x00000016,0x00050050,0x00000007,0x00000018,0x0000000e,0x0000000e,0x00050088,
|
||||
0x00000007,0x00000019,0x00000018,0x00000017,0x0003003e,0x0000000d,0x00000019,0x00050041,
|
||||
0x0000001d,0x0000001e,0x00000012,0x0000001c,0x0004003d,0x00000006,0x0000001f,0x0000001e,
|
||||
0x0003003e,0x0000001b,0x0000001f,0x0004003d,0x00000024,0x00000027,0x00000026,0x0004003d,
|
||||
0x00000007,0x00000028,0x00000009,0x00050041,0x0000001a,0x0000002b,0x0000000d,0x0000002a,
|
||||
0x0004003d,0x00000006,0x0000002c,0x0000002b,0x0004007f,0x00000006,0x0000002d,0x0000002c,
|
||||
0x00050041,0x0000001a,0x0000002f,0x0000000d,0x0000002e,0x0004003d,0x00000006,0x00000030,
|
||||
0x0000002f,0x0004007f,0x00000006,0x00000031,0x00000030,0x00050050,0x00000007,0x00000032,
|
||||
0x0000002d,0x00000031,0x00050081,0x00000007,0x00000033,0x00000028,0x00000032,0x00050057,
|
||||
0x0000000f,0x00000034,0x00000027,0x00000033,0x0008004f,0x00000020,0x00000035,0x00000034,
|
||||
0x00000034,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000022,0x00000035,0x0004003d,
|
||||
0x00000024,0x00000037,0x00000026,0x0004003d,0x00000007,0x00000038,0x00000009,0x00050041,
|
||||
0x0000001a,0x0000003a,0x0000000d,0x0000002e,0x0004003d,0x00000006,0x0000003b,0x0000003a,
|
||||
0x0004007f,0x00000006,0x0000003c,0x0000003b,0x00050050,0x00000007,0x0000003d,0x00000039,
|
||||
0x0000003c,0x00050081,0x00000007,0x0000003e,0x00000038,0x0000003d,0x00050057,0x0000000f,
|
||||
0x0000003f,0x00000037,0x0000003e,0x0008004f,0x00000020,0x00000040,0x0000003f,0x0000003f,
|
||||
0x00000000,0x00000001,0x00000002,0x0003003e,0x00000036,0x00000040,0x0004003d,0x00000024,
|
||||
0x00000042,0x00000026,0x0004003d,0x00000007,0x00000043,0x00000009,0x00050041,0x0000001a,
|
||||
0x00000044,0x0000000d,0x0000002a,0x0004003d,0x00000006,0x00000045,0x00000044,0x00050041,
|
||||
0x0000001a,0x00000046,0x0000000d,0x0000002e,0x0004003d,0x00000006,0x00000047,0x00000046,
|
||||
0x0004007f,0x00000006,0x00000048,0x00000047,0x00050050,0x00000007,0x00000049,0x00000045,
|
||||
0x00000048,0x00050081,0x00000007,0x0000004a,0x00000043,0x00000049,0x00050057,0x0000000f,
|
||||
0x0000004b,0x00000042,0x0000004a,0x0008004f,0x00000020,0x0000004c,0x0000004b,0x0000004b,
|
||||
0x00000000,0x00000001,0x00000002,0x0003003e,0x00000041,0x0000004c,0x0004003d,0x00000024,
|
||||
0x0000004e,0x00000026,0x0004003d,0x00000007,0x0000004f,0x00000009,0x00050041,0x0000001a,
|
||||
0x00000050,0x0000000d,0x0000002a,0x0004003d,0x00000006,0x00000051,0x00000050,0x0004007f,
|
||||
0x00000006,0x00000052,0x00000051,0x00050050,0x00000007,0x00000053,0x00000052,0x00000039,
|
||||
0x00050081,0x00000007,0x00000054,0x0000004f,0x00000053,0x00050057,0x0000000f,0x00000055,
|
||||
0x0000004e,0x00000054,0x0008004f,0x00000020,0x00000056,0x00000055,0x00000055,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x0000004d,0x00000056,0x0004003d,0x00000024,0x00000058,
|
||||
0x00000026,0x0004003d,0x00000007,0x00000059,0x00000009,0x00050057,0x0000000f,0x0000005a,
|
||||
0x00000058,0x00000059,0x0008004f,0x00000020,0x0000005b,0x0000005a,0x0000005a,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x00000057,0x0000005b,0x0004003d,0x00000024,0x0000005d,
|
||||
0x00000026,0x0004003d,0x00000007,0x0000005e,0x00000009,0x00050041,0x0000001a,0x0000005f,
|
||||
0x0000000d,0x0000002a,0x0004003d,0x00000006,0x00000060,0x0000005f,0x00050050,0x00000007,
|
||||
0x00000061,0x00000060,0x00000039,0x00050081,0x00000007,0x00000062,0x0000005e,0x00000061,
|
||||
0x00050057,0x0000000f,0x00000063,0x0000005d,0x00000062,0x0008004f,0x00000020,0x00000064,
|
||||
0x00000063,0x00000063,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000005c,0x00000064,
|
||||
0x0004003d,0x00000024,0x00000066,0x00000026,0x0004003d,0x00000007,0x00000067,0x00000009,
|
||||
0x00050041,0x0000001a,0x00000068,0x0000000d,0x0000002a,0x0004003d,0x00000006,0x00000069,
|
||||
0x00000068,0x0004007f,0x00000006,0x0000006a,0x00000069,0x00050041,0x0000001a,0x0000006b,
|
||||
0x0000000d,0x0000002e,0x0004003d,0x00000006,0x0000006c,0x0000006b,0x00050050,0x00000007,
|
||||
0x0000006d,0x0000006a,0x0000006c,0x00050081,0x00000007,0x0000006e,0x00000067,0x0000006d,
|
||||
0x00050057,0x0000000f,0x0000006f,0x00000066,0x0000006e,0x0008004f,0x00000020,0x00000070,
|
||||
0x0000006f,0x0000006f,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000065,0x00000070,
|
||||
0x0004003d,0x00000024,0x00000072,0x00000026,0x0004003d,0x00000007,0x00000073,0x00000009,
|
||||
0x00050041,0x0000001a,0x00000074,0x0000000d,0x0000002e,0x0004003d,0x00000006,0x00000075,
|
||||
0x00000074,0x00050050,0x00000007,0x00000076,0x00000039,0x00000075,0x00050081,0x00000007,
|
||||
0x00000077,0x00000073,0x00000076,0x00050057,0x0000000f,0x00000078,0x00000072,0x00000077,
|
||||
0x0008004f,0x00000020,0x00000079,0x00000078,0x00000078,0x00000000,0x00000001,0x00000002,
|
||||
0x0003003e,0x00000071,0x00000079,0x0004003d,0x00000024,0x0000007b,0x00000026,0x0004003d,
|
||||
0x00000007,0x0000007c,0x00000009,0x00050041,0x0000001a,0x0000007d,0x0000000d,0x0000002a,
|
||||
0x0004003d,0x00000006,0x0000007e,0x0000007d,0x00050041,0x0000001a,0x0000007f,0x0000000d,
|
||||
0x0000002e,0x0004003d,0x00000006,0x00000080,0x0000007f,0x00050050,0x00000007,0x00000081,
|
||||
0x0000007e,0x00000080,0x00050081,0x00000007,0x00000082,0x0000007c,0x00000081,0x00050057,
|
||||
0x0000000f,0x00000083,0x0000007b,0x00000082,0x0008004f,0x00000020,0x00000084,0x00000083,
|
||||
0x00000083,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000007a,0x00000084,0x0004003d,
|
||||
0x00000020,0x00000086,0x0000004d,0x0004003d,0x00000020,0x00000087,0x00000057,0x0007000c,
|
||||
0x00000020,0x00000088,0x00000001,0x00000025,0x00000086,0x00000087,0x0004003d,0x00000020,
|
||||
0x00000089,0x0000005c,0x0004003d,0x00000020,0x0000008a,0x00000036,0x0007000c,0x00000020,
|
||||
0x0000008b,0x00000001,0x00000025,0x00000089,0x0000008a,0x0007000c,0x00000020,0x0000008c,
|
||||
0x00000001,0x00000025,0x00000088,0x0000008b,0x0004003d,0x00000020,0x0000008d,0x00000071,
|
||||
0x0007000c,0x00000020,0x0000008e,0x00000001,0x00000025,0x0000008c,0x0000008d,0x0003003e,
|
||||
0x00000085,0x0000008e,0x0004003d,0x00000020,0x00000090,0x00000085,0x0004003d,0x00000020,
|
||||
0x00000091,0x00000022,0x0007000c,0x00000020,0x00000092,0x00000001,0x00000025,0x00000090,
|
||||
0x00000091,0x0004003d,0x00000020,0x00000093,0x00000065,0x0004003d,0x00000020,0x00000094,
|
||||
0x00000041,0x0007000c,0x00000020,0x00000095,0x00000001,0x00000025,0x00000093,0x00000094,
|
||||
0x0007000c,0x00000020,0x00000096,0x00000001,0x00000025,0x00000092,0x00000095,0x0004003d,
|
||||
0x00000020,0x00000097,0x0000007a,0x0007000c,0x00000020,0x00000098,0x00000001,0x00000025,
|
||||
0x00000096,0x00000097,0x0003003e,0x0000008f,0x00000098,0x0004003d,0x00000020,0x00000099,
|
||||
0x0000008f,0x0004003d,0x00000020,0x0000009a,0x00000085,0x00050081,0x00000020,0x0000009b,
|
||||
0x0000009a,0x00000099,0x0003003e,0x00000085,0x0000009b,0x0004003d,0x00000020,0x0000009d,
|
||||
0x0000004d,0x0004003d,0x00000020,0x0000009e,0x00000057,0x0007000c,0x00000020,0x0000009f,
|
||||
0x00000001,0x00000028,0x0000009d,0x0000009e,0x0004003d,0x00000020,0x000000a0,0x0000005c,
|
||||
0x0004003d,0x00000020,0x000000a1,0x00000036,0x0007000c,0x00000020,0x000000a2,0x00000001,
|
||||
0x00000028,0x000000a0,0x000000a1,0x0007000c,0x00000020,0x000000a3,0x00000001,0x00000028,
|
||||
0x0000009f,0x000000a2,0x0004003d,0x00000020,0x000000a4,0x00000071,0x0007000c,0x00000020,
|
||||
0x000000a5,0x00000001,0x00000028,0x000000a3,0x000000a4,0x0003003e,0x0000009c,0x000000a5,
|
||||
0x0004003d,0x00000020,0x000000a7,0x0000009c,0x0004003d,0x00000020,0x000000a8,0x00000022,
|
||||
0x0007000c,0x00000020,0x000000a9,0x00000001,0x00000028,0x000000a7,0x000000a8,0x0004003d,
|
||||
0x00000020,0x000000aa,0x00000065,0x0004003d,0x00000020,0x000000ab,0x00000041,0x0007000c,
|
||||
0x00000020,0x000000ac,0x00000001,0x00000028,0x000000aa,0x000000ab,0x0007000c,0x00000020,
|
||||
0x000000ad,0x00000001,0x00000028,0x000000a9,0x000000ac,0x0004003d,0x00000020,0x000000ae,
|
||||
0x0000007a,0x0007000c,0x00000020,0x000000af,0x00000001,0x00000028,0x000000ad,0x000000ae,
|
||||
0x0003003e,0x000000a6,0x000000af,0x0004003d,0x00000020,0x000000b0,0x000000a6,0x0004003d,
|
||||
0x00000020,0x000000b1,0x0000009c,0x00050081,0x00000020,0x000000b2,0x000000b1,0x000000b0,
|
||||
0x0003003e,0x0000009c,0x000000b2,0x0004003d,0x00000020,0x000000b5,0x0000009c,0x00050088,
|
||||
0x00000020,0x000000b6,0x000000b4,0x000000b5,0x0003003e,0x000000b3,0x000000b6,0x0004003d,
|
||||
0x00000020,0x000000b8,0x00000085,0x0004003d,0x00000020,0x000000ba,0x0000009c,0x00060050,
|
||||
0x00000020,0x000000bb,0x000000b9,0x000000b9,0x000000b9,0x00050083,0x00000020,0x000000bc,
|
||||
0x000000bb,0x000000ba,0x0007000c,0x00000020,0x000000bd,0x00000001,0x00000025,0x000000b8,
|
||||
0x000000bc,0x0004003d,0x00000020,0x000000be,0x000000b3,0x00050085,0x00000020,0x000000bf,
|
||||
0x000000bd,0x000000be,0x00060050,0x00000020,0x000000c0,0x00000039,0x00000039,0x00000039,
|
||||
0x00060050,0x00000020,0x000000c1,0x0000000e,0x0000000e,0x0000000e,0x0008000c,0x00000020,
|
||||
0x000000c2,0x00000001,0x0000002b,0x000000bf,0x000000c0,0x000000c1,0x0003003e,0x000000b7,
|
||||
0x000000c2,0x0004003d,0x00000020,0x000000c3,0x000000b7,0x0006000c,0x00000020,0x000000c4,
|
||||
0x00000001,0x00000020,0x000000c3,0x0003003e,0x000000b7,0x000000c4,0x0004003d,0x00000006,
|
||||
0x000000c8,0x0000001b,0x00050085,0x00000006,0x000000c9,0x000000c7,0x000000c8,0x00050083,
|
||||
0x00000006,0x000000ca,0x000000c6,0x000000c9,0x0003003e,0x000000c5,0x000000ca,0x0004003d,
|
||||
0x00000020,0x000000ce,0x000000b7,0x0004003d,0x00000006,0x000000cf,0x000000c5,0x0005008e,
|
||||
0x00000020,0x000000d0,0x000000ce,0x000000cf,0x00050088,0x00000020,0x000000d1,0x000000cd,
|
||||
0x000000d0,0x0003003e,0x000000cb,0x000000d1,0x0004003d,0x00000020,0x000000d4,0x000000cb,
|
||||
0x0005008e,0x00000020,0x000000d5,0x000000d4,0x000000d3,0x00060050,0x00000020,0x000000d6,
|
||||
0x0000000e,0x0000000e,0x0000000e,0x00050081,0x00000020,0x000000d7,0x000000d6,0x000000d5,
|
||||
0x00050088,0x00000020,0x000000d8,0x000000b4,0x000000d7,0x0003003e,0x000000d2,0x000000d8,
|
||||
0x0004003d,0x00000020,0x000000da,0x00000036,0x0004003d,0x00000020,0x000000db,0x0000004d,
|
||||
0x00050081,0x00000020,0x000000dc,0x000000da,0x000000db,0x0004003d,0x00000020,0x000000dd,
|
||||
0x0000005c,0x0004003d,0x00000020,0x000000de,0x00000071,0x00050081,0x00000020,0x000000df,
|
||||
0x000000dd,0x000000de,0x00050081,0x00000020,0x000000e0,0x000000dc,0x000000df,0x0003003e,
|
||||
0x000000d9,0x000000e0,0x0004003d,0x00000020,0x000000e2,0x000000d9,0x0004003d,0x00000020,
|
||||
0x000000e3,0x000000cb,0x00050085,0x00000020,0x000000e4,0x000000e2,0x000000e3,0x0004003d,
|
||||
0x00000020,0x000000e5,0x00000057,0x00050081,0x00000020,0x000000e6,0x000000e4,0x000000e5,
|
||||
0x0004003d,0x00000020,0x000000e7,0x000000d2,0x00050085,0x00000020,0x000000e8,0x000000e6,
|
||||
0x000000e7,0x00060050,0x00000020,0x000000e9,0x00000039,0x00000039,0x00000039,0x00060050,
|
||||
0x00000020,0x000000ea,0x0000000e,0x0000000e,0x0000000e,0x0008000c,0x00000020,0x000000eb,
|
||||
0x00000001,0x0000002b,0x000000e8,0x000000e9,0x000000ea,0x0003003e,0x000000e1,0x000000eb,
|
||||
0x0004003d,0x00000020,0x000000ee,0x000000e1,0x00050051,0x00000006,0x000000ef,0x000000ee,
|
||||
0x00000000,0x00050051,0x00000006,0x000000f0,0x000000ee,0x00000001,0x00050051,0x00000006,
|
||||
0x000000f1,0x000000ee,0x00000002,0x00070050,0x0000000f,0x000000f2,0x000000ef,0x000000f0,
|
||||
0x000000f1,0x0000000e,0x0003003e,0x000000ed,0x000000f2,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,76 @@
|
||||
// 1116.5.0
|
||||
#pragma once
|
||||
const uint32_t color_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x00000059,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000011,0x0000004e,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00050005,0x00000009,0x65786574,0x6c6f436c,0x0000726f,0x00060005,0x0000000d,
|
||||
0x75706e49,0x78655474,0x65727574,0x00000000,0x00060005,0x00000011,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00040005,0x00000016,0x6f6c6f63,0x00000072,0x00030005,0x0000001a,
|
||||
0x00004350,0x00040006,0x0000001a,0x00000000,0x0063646e,0x00060006,0x0000001a,0x00000001,
|
||||
0x67697262,0x656e7468,0x00007373,0x00060006,0x0000001a,0x00000002,0x746e6f63,0x74736172,
|
||||
0x00000000,0x00050006,0x0000001a,0x00000003,0x6d6d6167,0x00000061,0x00060006,0x0000001a,
|
||||
0x00000004,0x75746173,0x69746172,0x00006e6f,0x00030005,0x0000001c,0x00006370,0x00040005,
|
||||
0x00000036,0x79657267,0x00000000,0x00050005,0x0000004e,0x4374756f,0x726f6c6f,0x00000000,
|
||||
0x00040047,0x0000000d,0x00000021,0x00000000,0x00040047,0x0000000d,0x00000022,0x00000000,
|
||||
0x00040047,0x00000011,0x0000001e,0x00000000,0x00030047,0x0000001a,0x00000002,0x00050048,
|
||||
0x0000001a,0x00000000,0x00000023,0x00000000,0x00050048,0x0000001a,0x00000001,0x00000023,
|
||||
0x00000010,0x00050048,0x0000001a,0x00000002,0x00000023,0x00000014,0x00050048,0x0000001a,
|
||||
0x00000003,0x00000023,0x00000018,0x00050048,0x0000001a,0x00000004,0x00000023,0x0000001c,
|
||||
0x00040047,0x0000004e,0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,
|
||||
0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,
|
||||
0x00040020,0x00000008,0x00000007,0x00000007,0x00090019,0x0000000a,0x00000006,0x00000001,
|
||||
0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x0000000b,0x0000000a,
|
||||
0x00040020,0x0000000c,0x00000000,0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000000,
|
||||
0x00040017,0x0000000f,0x00000006,0x00000002,0x00040020,0x00000010,0x00000001,0x0000000f,
|
||||
0x0004003b,0x00000010,0x00000011,0x00000001,0x00040017,0x00000014,0x00000006,0x00000003,
|
||||
0x00040020,0x00000015,0x00000007,0x00000014,0x0007001e,0x0000001a,0x00000007,0x00000006,
|
||||
0x00000006,0x00000006,0x00000006,0x00040020,0x0000001b,0x00000009,0x0000001a,0x0004003b,
|
||||
0x0000001b,0x0000001c,0x00000009,0x00040015,0x0000001d,0x00000020,0x00000001,0x0004002b,
|
||||
0x0000001d,0x0000001e,0x00000001,0x00040020,0x0000001f,0x00000009,0x00000006,0x0004002b,
|
||||
0x00000006,0x00000024,0x00000000,0x0004002b,0x00000006,0x00000025,0x3f800000,0x0004002b,
|
||||
0x00000006,0x0000002a,0x3f000000,0x0004002b,0x0000001d,0x0000002d,0x00000002,0x0004002b,
|
||||
0x00000006,0x00000031,0x40000000,0x0004002b,0x00000006,0x00000038,0x3e59b3d0,0x0004002b,
|
||||
0x00000006,0x00000039,0x3f371759,0x0004002b,0x00000006,0x0000003a,0x3d93dd98,0x0006002c,
|
||||
0x00000014,0x0000003b,0x00000038,0x00000039,0x0000003a,0x0004002b,0x0000001d,0x00000040,
|
||||
0x00000004,0x0004002b,0x0000001d,0x00000047,0x00000003,0x00040020,0x0000004d,0x00000003,
|
||||
0x00000007,0x0004003b,0x0000004d,0x0000004e,0x00000003,0x00040015,0x00000050,0x00000020,
|
||||
0x00000000,0x0004002b,0x00000050,0x00000051,0x00000003,0x00040020,0x00000052,0x00000007,
|
||||
0x00000006,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
|
||||
0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x00000015,0x00000016,0x00000007,
|
||||
0x0004003b,0x00000015,0x00000036,0x00000007,0x0004003d,0x0000000b,0x0000000e,0x0000000d,
|
||||
0x0004003d,0x0000000f,0x00000012,0x00000011,0x00050057,0x00000007,0x00000013,0x0000000e,
|
||||
0x00000012,0x0003003e,0x00000009,0x00000013,0x0004003d,0x00000007,0x00000017,0x00000009,
|
||||
0x0008004f,0x00000014,0x00000018,0x00000017,0x00000017,0x00000000,0x00000001,0x00000002,
|
||||
0x0003003e,0x00000016,0x00000018,0x0004003d,0x00000014,0x00000019,0x00000016,0x00050041,
|
||||
0x0000001f,0x00000020,0x0000001c,0x0000001e,0x0004003d,0x00000006,0x00000021,0x00000020,
|
||||
0x00060050,0x00000014,0x00000022,0x00000021,0x00000021,0x00000021,0x00050081,0x00000014,
|
||||
0x00000023,0x00000019,0x00000022,0x00060050,0x00000014,0x00000026,0x00000024,0x00000024,
|
||||
0x00000024,0x00060050,0x00000014,0x00000027,0x00000025,0x00000025,0x00000025,0x0008000c,
|
||||
0x00000014,0x00000028,0x00000001,0x0000002b,0x00000023,0x00000026,0x00000027,0x0003003e,
|
||||
0x00000016,0x00000028,0x0004003d,0x00000014,0x00000029,0x00000016,0x00060050,0x00000014,
|
||||
0x0000002b,0x0000002a,0x0000002a,0x0000002a,0x00050083,0x00000014,0x0000002c,0x00000029,
|
||||
0x0000002b,0x00050041,0x0000001f,0x0000002e,0x0000001c,0x0000002d,0x0004003d,0x00000006,
|
||||
0x0000002f,0x0000002e,0x00050081,0x00000006,0x00000030,0x0000002f,0x00000025,0x0008000c,
|
||||
0x00000006,0x00000032,0x00000001,0x0000002b,0x00000030,0x0000002a,0x00000031,0x0005008e,
|
||||
0x00000014,0x00000033,0x0000002c,0x00000032,0x00060050,0x00000014,0x00000034,0x0000002a,
|
||||
0x0000002a,0x0000002a,0x00050081,0x00000014,0x00000035,0x00000033,0x00000034,0x0003003e,
|
||||
0x00000016,0x00000035,0x0004003d,0x00000014,0x00000037,0x00000016,0x00050094,0x00000006,
|
||||
0x0000003c,0x00000037,0x0000003b,0x00060050,0x00000014,0x0000003d,0x0000003c,0x0000003c,
|
||||
0x0000003c,0x0003003e,0x00000036,0x0000003d,0x0004003d,0x00000014,0x0000003e,0x00000036,
|
||||
0x0004003d,0x00000014,0x0000003f,0x00000016,0x00050041,0x0000001f,0x00000041,0x0000001c,
|
||||
0x00000040,0x0004003d,0x00000006,0x00000042,0x00000041,0x0008000c,0x00000006,0x00000043,
|
||||
0x00000001,0x0000002b,0x00000042,0x00000024,0x00000031,0x00060050,0x00000014,0x00000044,
|
||||
0x00000043,0x00000043,0x00000043,0x0008000c,0x00000014,0x00000045,0x00000001,0x0000002e,
|
||||
0x0000003e,0x0000003f,0x00000044,0x0003003e,0x00000016,0x00000045,0x0004003d,0x00000014,
|
||||
0x00000046,0x00000016,0x00050041,0x0000001f,0x00000048,0x0000001c,0x00000047,0x0004003d,
|
||||
0x00000006,0x00000049,0x00000048,0x00050088,0x00000006,0x0000004a,0x00000025,0x00000049,
|
||||
0x00060050,0x00000014,0x0000004b,0x0000004a,0x0000004a,0x0000004a,0x0007000c,0x00000014,
|
||||
0x0000004c,0x00000001,0x0000001a,0x00000046,0x0000004b,0x0003003e,0x00000016,0x0000004c,
|
||||
0x0004003d,0x00000014,0x0000004f,0x00000016,0x00050041,0x00000052,0x00000053,0x00000009,
|
||||
0x00000051,0x0004003d,0x00000006,0x00000054,0x00000053,0x00050051,0x00000006,0x00000055,
|
||||
0x0000004f,0x00000000,0x00050051,0x00000006,0x00000056,0x0000004f,0x00000001,0x00050051,
|
||||
0x00000006,0x00000057,0x0000004f,0x00000002,0x00070050,0x00000007,0x00000058,0x00000055,
|
||||
0x00000056,0x00000057,0x00000054,0x0003003e,0x0000004e,0x00000058,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,78 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t crt_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x00000063,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x0000004f,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00030005,0x00000009,0x00565576,0x00060005,0x0000000b,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00050005,0x0000000f,0x616e6966,0x6c6f436c,0x0000726f,0x00060005,
|
||||
0x00000013,0x75706e49,0x78655474,0x65727574,0x00000000,0x00050005,0x0000003b,0x6e616373,
|
||||
0x656e696c,0x00000058,0x00050005,0x00000045,0x6e616373,0x656e696c,0x00000059,0x00050005,
|
||||
0x0000004f,0x4374756f,0x726f6c6f,0x00000000,0x00030005,0x00000060,0x00004350,0x00040006,
|
||||
0x00000060,0x00000000,0x0063646e,0x00060006,0x00000060,0x00000001,0x6f736572,0x6974756c,
|
||||
0x00006e6f,0x00030005,0x00000062,0x00006370,0x00040047,0x0000000b,0x0000001e,0x00000000,
|
||||
0x00040047,0x00000013,0x00000021,0x00000000,0x00040047,0x00000013,0x00000022,0x00000000,
|
||||
0x00040047,0x0000004f,0x0000001e,0x00000000,0x00030047,0x00000060,0x00000002,0x00050048,
|
||||
0x00000060,0x00000000,0x00000023,0x00000000,0x00050048,0x00000060,0x00000001,0x00000023,
|
||||
0x00000010,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,
|
||||
0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,
|
||||
0x00000007,0x00040020,0x0000000a,0x00000001,0x00000007,0x0004003b,0x0000000a,0x0000000b,
|
||||
0x00000001,0x00040017,0x0000000d,0x00000006,0x00000004,0x00040020,0x0000000e,0x00000007,
|
||||
0x0000000d,0x00090019,0x00000010,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,
|
||||
0x00000001,0x00000000,0x0003001b,0x00000011,0x00000010,0x00040020,0x00000012,0x00000000,
|
||||
0x00000011,0x0004003b,0x00000012,0x00000013,0x00000000,0x0004002b,0x00000006,0x00000019,
|
||||
0x3f000000,0x0004002b,0x00000006,0x0000001c,0x3f8051ec,0x00040015,0x00000021,0x00000020,
|
||||
0x00000000,0x0004002b,0x00000021,0x00000022,0x00000000,0x0004002b,0x00000021,0x00000024,
|
||||
0x00000001,0x00040020,0x00000025,0x00000007,0x00000006,0x0004002b,0x00000021,0x00000031,
|
||||
0x00000002,0x00040017,0x00000033,0x00000006,0x00000003,0x0004002b,0x00000006,0x0000003e,
|
||||
0x44800000,0x0004002b,0x00000006,0x00000042,0x3e000000,0x0004002b,0x00000006,0x0000004b,
|
||||
0x3ec00000,0x00040020,0x0000004e,0x00000003,0x0000000d,0x0004003b,0x0000004e,0x0000004f,
|
||||
0x00000003,0x0004002b,0x00000006,0x00000052,0x00000000,0x0006002c,0x00000033,0x00000053,
|
||||
0x00000052,0x00000052,0x00000052,0x0004002b,0x00000021,0x00000059,0x00000003,0x0004001e,
|
||||
0x00000060,0x0000000d,0x00000007,0x00040020,0x00000061,0x00000009,0x00000060,0x0004003b,
|
||||
0x00000061,0x00000062,0x00000009,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,
|
||||
0x000200f8,0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x0000000e,
|
||||
0x0000000f,0x00000007,0x0004003b,0x00000025,0x0000003b,0x00000007,0x0004003b,0x00000025,
|
||||
0x00000045,0x00000007,0x0004003d,0x00000007,0x0000000c,0x0000000b,0x0003003e,0x00000009,
|
||||
0x0000000c,0x0004003d,0x00000011,0x00000014,0x00000013,0x0004003d,0x00000007,0x00000015,
|
||||
0x00000009,0x00050057,0x0000000d,0x00000016,0x00000014,0x00000015,0x0003003e,0x0000000f,
|
||||
0x00000016,0x0004003d,0x00000011,0x00000017,0x00000013,0x0004003d,0x00000007,0x00000018,
|
||||
0x00000009,0x00050050,0x00000007,0x0000001a,0x00000019,0x00000019,0x00050083,0x00000007,
|
||||
0x0000001b,0x00000018,0x0000001a,0x0005008e,0x00000007,0x0000001d,0x0000001b,0x0000001c,
|
||||
0x00050050,0x00000007,0x0000001e,0x00000019,0x00000019,0x00050081,0x00000007,0x0000001f,
|
||||
0x0000001d,0x0000001e,0x00050057,0x0000000d,0x00000020,0x00000017,0x0000001f,0x00050051,
|
||||
0x00000006,0x00000023,0x00000020,0x00000000,0x00050041,0x00000025,0x00000026,0x0000000f,
|
||||
0x00000024,0x0004003d,0x00000006,0x00000027,0x00000026,0x0004003d,0x00000011,0x00000028,
|
||||
0x00000013,0x0004003d,0x00000007,0x00000029,0x00000009,0x00050050,0x00000007,0x0000002a,
|
||||
0x00000019,0x00000019,0x00050083,0x00000007,0x0000002b,0x00000029,0x0000002a,0x00050050,
|
||||
0x00000007,0x0000002c,0x0000001c,0x0000001c,0x00050088,0x00000007,0x0000002d,0x0000002b,
|
||||
0x0000002c,0x00050050,0x00000007,0x0000002e,0x00000019,0x00000019,0x00050081,0x00000007,
|
||||
0x0000002f,0x0000002d,0x0000002e,0x00050057,0x0000000d,0x00000030,0x00000028,0x0000002f,
|
||||
0x00050051,0x00000006,0x00000032,0x00000030,0x00000002,0x00060050,0x00000033,0x00000034,
|
||||
0x00000023,0x00000027,0x00000032,0x00050041,0x00000025,0x00000035,0x0000000f,0x00000022,
|
||||
0x00050051,0x00000006,0x00000036,0x00000034,0x00000000,0x0003003e,0x00000035,0x00000036,
|
||||
0x00050041,0x00000025,0x00000037,0x0000000f,0x00000024,0x00050051,0x00000006,0x00000038,
|
||||
0x00000034,0x00000001,0x0003003e,0x00000037,0x00000038,0x00050041,0x00000025,0x00000039,
|
||||
0x0000000f,0x00000031,0x00050051,0x00000006,0x0000003a,0x00000034,0x00000002,0x0003003e,
|
||||
0x00000039,0x0000003a,0x00050041,0x00000025,0x0000003c,0x00000009,0x00000022,0x0004003d,
|
||||
0x00000006,0x0000003d,0x0000003c,0x00050085,0x00000006,0x0000003f,0x0000003d,0x0000003e,
|
||||
0x0006000c,0x00000006,0x00000040,0x00000001,0x0000000d,0x0000003f,0x00050085,0x00000006,
|
||||
0x00000041,0x00000040,0x00000019,0x00050085,0x00000006,0x00000043,0x00000041,0x00000042,
|
||||
0x0006000c,0x00000006,0x00000044,0x00000001,0x00000004,0x00000043,0x0003003e,0x0000003b,
|
||||
0x00000044,0x00050041,0x00000025,0x00000046,0x00000009,0x00000024,0x0004003d,0x00000006,
|
||||
0x00000047,0x00000046,0x00050085,0x00000006,0x00000048,0x00000047,0x0000003e,0x0006000c,
|
||||
0x00000006,0x00000049,0x00000001,0x0000000d,0x00000048,0x00050085,0x00000006,0x0000004a,
|
||||
0x00000049,0x00000019,0x00050085,0x00000006,0x0000004c,0x0000004a,0x0000004b,0x0006000c,
|
||||
0x00000006,0x0000004d,0x00000001,0x00000004,0x0000004c,0x0003003e,0x00000045,0x0000004d,
|
||||
0x0004003d,0x0000000d,0x00000050,0x0000000f,0x0008004f,0x00000033,0x00000051,0x00000050,
|
||||
0x00000050,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000006,0x00000054,0x0000003b,
|
||||
0x0004003d,0x00000006,0x00000055,0x00000045,0x00050081,0x00000006,0x00000056,0x00000054,
|
||||
0x00000055,0x00060050,0x00000033,0x00000057,0x00000056,0x00000056,0x00000056,0x0008000c,
|
||||
0x00000033,0x00000058,0x00000001,0x0000002e,0x00000051,0x00000053,0x00000057,0x00050041,
|
||||
0x00000025,0x0000005a,0x0000000f,0x00000059,0x0004003d,0x00000006,0x0000005b,0x0000005a,
|
||||
0x00050051,0x00000006,0x0000005c,0x00000058,0x00000000,0x00050051,0x00000006,0x0000005d,
|
||||
0x00000058,0x00000001,0x00050051,0x00000006,0x0000005e,0x00000058,0x00000002,0x00070050,
|
||||
0x0000000d,0x0000005f,0x0000005c,0x0000005d,0x0000005e,0x0000005b,0x0003003e,0x0000004f,
|
||||
0x0000005f,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,907 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t fsr_easu_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000046e,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000447,0x00000468,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00050005,0x0000000a,0x70635241,0x66283146,0x00003b31,0x00030005,0x00000009,
|
||||
0x00000078,0x00060005,0x0000000d,0x78725041,0x63526f4c,0x28314670,0x003b3166,0x00030005,
|
||||
0x0000000c,0x00000078,0x00060005,0x00000010,0x78725041,0x73526f4c,0x28314671,0x003b3166,
|
||||
0x00030005,0x0000000f,0x00000078,0x00050005,0x00000013,0x74615341,0x66283146,0x00003b31,
|
||||
0x00030005,0x00000012,0x00000078,0x00080005,0x0000001b,0x6e694d41,0x28334633,0x3b336676,
|
||||
0x3b336676,0x3b336676,0x00000000,0x00030005,0x00000018,0x00000061,0x00030005,0x00000019,
|
||||
0x00000062,0x00030005,0x0000001a,0x00000063,0x00080005,0x00000020,0x78614d41,0x28334633,
|
||||
0x3b336676,0x3b336676,0x3b336676,0x00000000,0x00030005,0x0000001d,0x00000061,0x00030005,
|
||||
0x0000001e,0x00000062,0x00030005,0x0000001f,0x00000063,0x00060005,0x00000027,0x45727346,
|
||||
0x52757361,0x66762846,0x00003b32,0x00030005,0x00000026,0x00000070,0x00060005,0x0000002a,
|
||||
0x45727346,0x47757361,0x66762846,0x00003b32,0x00030005,0x00000029,0x00000070,0x00060005,
|
||||
0x0000002d,0x45727346,0x42757361,0x66762846,0x00003b32,0x00030005,0x0000002c,0x00000070,
|
||||
0x000d0005,0x00000038,0x45727346,0x54757361,0x28467061,0x3b336676,0x763b3166,0x763b3266,
|
||||
0x763b3266,0x663b3266,0x31663b31,0x3366763b,0x0000003b,0x00030005,0x00000030,0x00004361,
|
||||
0x00030005,0x00000031,0x00005761,0x00030005,0x00000032,0x0066666f,0x00030005,0x00000033,
|
||||
0x00726964,0x00030005,0x00000034,0x006e656c,0x00030005,0x00000035,0x00626f6c,0x00030005,
|
||||
0x00000036,0x00706c63,0x00030005,0x00000037,0x00000063,0x000f0005,0x00000049,0x45727346,
|
||||
0x53757361,0x28467465,0x3b326676,0x763b3166,0x623b3266,0x31623b31,0x3b31623b,0x663b3162,
|
||||
0x31663b31,0x3b31663b,0x663b3166,0x00003b31,0x00030005,0x0000003d,0x00726964,0x00030005,
|
||||
0x0000003e,0x006e656c,0x00030005,0x0000003f,0x00007070,0x00030005,0x00000040,0x00536962,
|
||||
0x00030005,0x00000041,0x00546962,0x00030005,0x00000042,0x00556962,0x00030005,0x00000043,
|
||||
0x00566962,0x00030005,0x00000044,0x0000416c,0x00030005,0x00000045,0x0000426c,0x00030005,
|
||||
0x00000046,0x0000436c,0x00030005,0x00000047,0x0000446c,0x00030005,0x00000048,0x0000456c,
|
||||
0x000b0005,0x00000057,0x45727346,0x46757361,0x33667628,0x3275763b,0x3475763b,0x3475763b,
|
||||
0x3475763b,0x3475763b,0x0000003b,0x00030005,0x00000051,0x00786970,0x00030005,0x00000052,
|
||||
0x00007069,0x00040005,0x00000053,0x306e6f63,0x00000000,0x00040005,0x00000054,0x316e6f63,
|
||||
0x00000000,0x00040005,0x00000055,0x326e6f63,0x00000000,0x00040005,0x00000056,0x336e6f63,
|
||||
0x00000000,0x00060005,0x0000007c,0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,
|
||||
0x00000090,0x00000076,0x00030005,0x000000af,0x00003264,0x00030005,0x000000be,0x00004277,
|
||||
0x00030005,0x000000c4,0x00004177,0x00030005,0x000000d4,0x00000077,0x00030005,0x000000e0,
|
||||
0x00000077,0x00030005,0x00000105,0x00006364,0x00030005,0x00000109,0x00006263,0x00040005,
|
||||
0x0000010d,0x586e656c,0x00000000,0x00040005,0x00000113,0x61726170,0x0000006d,0x00040005,
|
||||
0x00000116,0x58726964,0x00000000,0x00040005,0x00000125,0x61726170,0x0000006d,0x00030005,
|
||||
0x0000012f,0x00006365,0x00030005,0x00000133,0x00006163,0x00040005,0x00000137,0x596e656c,
|
||||
0x00000000,0x00040005,0x0000013d,0x61726170,0x0000006d,0x00040005,0x00000140,0x59726964,
|
||||
0x00000000,0x00040005,0x0000014f,0x61726170,0x0000006d,0x00030005,0x00000159,0x00007070,
|
||||
0x00030005,0x00000164,0x00007066,0x00030005,0x0000016a,0x00003070,0x00030005,0x00000174,
|
||||
0x00003170,0x00030005,0x0000017a,0x00003270,0x00030005,0x00000180,0x00003370,0x00040005,
|
||||
0x00000187,0x7a7a6362,0x00000052,0x00040005,0x00000188,0x61726170,0x0000006d,0x00040005,
|
||||
0x0000018b,0x7a7a6362,0x00000047,0x00040005,0x0000018c,0x61726170,0x0000006d,0x00040005,
|
||||
0x0000018f,0x7a7a6362,0x00000042,0x00040005,0x00000190,0x61726170,0x0000006d,0x00040005,
|
||||
0x00000193,0x65666a69,0x00000052,0x00040005,0x00000194,0x61726170,0x0000006d,0x00040005,
|
||||
0x00000197,0x65666a69,0x00000047,0x00040005,0x00000198,0x61726170,0x0000006d,0x00040005,
|
||||
0x0000019b,0x65666a69,0x00000042,0x00040005,0x0000019c,0x61726170,0x0000006d,0x00040005,
|
||||
0x0000019f,0x67686c6b,0x00000052,0x00040005,0x000001a0,0x61726170,0x0000006d,0x00040005,
|
||||
0x000001a3,0x67686c6b,0x00000047,0x00040005,0x000001a4,0x61726170,0x0000006d,0x00040005,
|
||||
0x000001a7,0x67686c6b,0x00000042,0x00040005,0x000001a8,0x61726170,0x0000006d,0x00040005,
|
||||
0x000001ab,0x6e6f7a7a,0x00000052,0x00040005,0x000001ac,0x61726170,0x0000006d,0x00040005,
|
||||
0x000001af,0x6e6f7a7a,0x00000047,0x00040005,0x000001b0,0x61726170,0x0000006d,0x00040005,
|
||||
0x000001b3,0x6e6f7a7a,0x00000042,0x00040005,0x000001b4,0x61726170,0x0000006d,0x00040005,
|
||||
0x000001b7,0x7a7a6362,0x0000004c,0x00040005,0x000001c1,0x65666a69,0x0000004c,0x00040005,
|
||||
0x000001c9,0x67686c6b,0x0000004c,0x00040005,0x000001d1,0x6e6f7a7a,0x0000004c,0x00030005,
|
||||
0x000001d9,0x00004c62,0x00030005,0x000001dc,0x00004c63,0x00030005,0x000001df,0x00004c69,
|
||||
0x00030005,0x000001e2,0x00004c6a,0x00030005,0x000001e5,0x00004c66,0x00030005,0x000001e9,
|
||||
0x00004c65,0x00030005,0x000001ed,0x00004c6b,0x00030005,0x000001f0,0x00004c6c,0x00030005,
|
||||
0x000001f3,0x00004c68,0x00030005,0x000001f6,0x00004c67,0x00030005,0x000001f9,0x00004c6f,
|
||||
0x00030005,0x000001fc,0x00004c6e,0x00030005,0x000001ff,0x00726964,0x00030005,0x00000201,
|
||||
0x006e656c,0x00040005,0x00000204,0x61726170,0x0000006d,0x00040005,0x00000206,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000208,0x61726170,0x0000006d,0x00040005,0x0000020a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000020b,0x61726170,0x0000006d,0x00040005,0x0000020c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000020d,0x61726170,0x0000006d,0x00040005,0x0000020e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000210,0x61726170,0x0000006d,0x00040005,0x00000212,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000214,0x61726170,0x0000006d,0x00040005,0x00000216,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000021b,0x61726170,0x0000006d,0x00040005,0x0000021d,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000021f,0x61726170,0x0000006d,0x00040005,0x00000221,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000222,0x61726170,0x0000006d,0x00040005,0x00000223,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000224,0x61726170,0x0000006d,0x00040005,0x00000225,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000227,0x61726170,0x0000006d,0x00040005,0x00000229,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000022b,0x61726170,0x0000006d,0x00040005,0x0000022d,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000232,0x61726170,0x0000006d,0x00040005,0x00000234,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000236,0x61726170,0x0000006d,0x00040005,0x00000238,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000239,0x61726170,0x0000006d,0x00040005,0x0000023a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000023b,0x61726170,0x0000006d,0x00040005,0x0000023c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000023e,0x61726170,0x0000006d,0x00040005,0x00000240,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000242,0x61726170,0x0000006d,0x00040005,0x00000244,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000249,0x61726170,0x0000006d,0x00040005,0x0000024b,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000024d,0x61726170,0x0000006d,0x00040005,0x0000024f,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000250,0x61726170,0x0000006d,0x00040005,0x00000251,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000252,0x61726170,0x0000006d,0x00040005,0x00000253,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000255,0x61726170,0x0000006d,0x00040005,0x00000257,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000259,0x61726170,0x0000006d,0x00040005,0x0000025b,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000260,0x32726964,0x00000000,0x00040005,0x00000264,0x52726964,
|
||||
0x00000000,0x00030005,0x0000026a,0x006f727a,0x00040005,0x0000026e,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000286,0x65727473,0x00686374,0x00040005,0x00000299,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000029c,0x326e656c,0x00000000,0x00030005,0x000002a7,0x00626f6c,0x00030005,
|
||||
0x000002ac,0x00706c63,0x00040005,0x000002ad,0x61726170,0x0000006d,0x00040005,0x000002b0,
|
||||
0x346e696d,0x00000000,0x00040005,0x000002c6,0x61726170,0x0000006d,0x00040005,0x000002c7,
|
||||
0x61726170,0x0000006d,0x00040005,0x000002c8,0x61726170,0x0000006d,0x00040005,0x000002d2,
|
||||
0x3478616d,0x00000000,0x00040005,0x000002e8,0x61726170,0x0000006d,0x00040005,0x000002e9,
|
||||
0x61726170,0x0000006d,0x00040005,0x000002ea,0x61726170,0x0000006d,0x00030005,0x000002f4,
|
||||
0x00004361,0x00030005,0x000002f6,0x00005761,0x00040005,0x00000301,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000303,0x61726170,0x0000006d,0x00040005,0x00000305,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000306,0x61726170,0x0000006d,0x00040005,0x00000308,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000030a,0x61726170,0x0000006d,0x00040005,0x0000030c,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000030e,0x61726170,0x0000006d,0x00040005,0x0000031c,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000031e,0x61726170,0x0000006d,0x00040005,0x00000320,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000321,0x61726170,0x0000006d,0x00040005,0x00000323,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000325,0x61726170,0x0000006d,0x00040005,0x00000327,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000329,0x61726170,0x0000006d,0x00040005,0x00000337,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000339,0x61726170,0x0000006d,0x00040005,0x0000033b,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000033c,0x61726170,0x0000006d,0x00040005,0x0000033e,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000340,0x61726170,0x0000006d,0x00040005,0x00000342,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000344,0x61726170,0x0000006d,0x00040005,0x00000352,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000354,0x61726170,0x0000006d,0x00040005,0x00000356,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000357,0x61726170,0x0000006d,0x00040005,0x00000359,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000035b,0x61726170,0x0000006d,0x00040005,0x0000035d,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000035f,0x61726170,0x0000006d,0x00040005,0x0000036c,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000036e,0x61726170,0x0000006d,0x00040005,0x00000370,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000371,0x61726170,0x0000006d,0x00040005,0x00000373,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000375,0x61726170,0x0000006d,0x00040005,0x00000377,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000379,0x61726170,0x0000006d,0x00040005,0x00000387,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000389,0x61726170,0x0000006d,0x00040005,0x0000038b,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000038c,0x61726170,0x0000006d,0x00040005,0x0000038e,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000390,0x61726170,0x0000006d,0x00040005,0x00000392,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000394,0x61726170,0x0000006d,0x00040005,0x000003a2,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003a4,0x61726170,0x0000006d,0x00040005,0x000003a6,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003a7,0x61726170,0x0000006d,0x00040005,0x000003a9,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003ab,0x61726170,0x0000006d,0x00040005,0x000003ad,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003af,0x61726170,0x0000006d,0x00040005,0x000003be,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003c0,0x61726170,0x0000006d,0x00040005,0x000003c2,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003c3,0x61726170,0x0000006d,0x00040005,0x000003c5,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003c7,0x61726170,0x0000006d,0x00040005,0x000003c9,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003cb,0x61726170,0x0000006d,0x00040005,0x000003d9,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003db,0x61726170,0x0000006d,0x00040005,0x000003dd,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003de,0x61726170,0x0000006d,0x00040005,0x000003e0,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003e2,0x61726170,0x0000006d,0x00040005,0x000003e4,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003e6,0x61726170,0x0000006d,0x00040005,0x000003f4,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003f6,0x61726170,0x0000006d,0x00040005,0x000003f8,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003f9,0x61726170,0x0000006d,0x00040005,0x000003fb,0x61726170,0x0000006d,
|
||||
0x00040005,0x000003fd,0x61726170,0x0000006d,0x00040005,0x000003ff,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000401,0x61726170,0x0000006d,0x00040005,0x0000040f,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000411,0x61726170,0x0000006d,0x00040005,0x00000413,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000414,0x61726170,0x0000006d,0x00040005,0x00000416,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000418,0x61726170,0x0000006d,0x00040005,0x0000041a,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000041c,0x61726170,0x0000006d,0x00040005,0x0000042a,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000042c,0x61726170,0x0000006d,0x00040005,0x0000042e,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000042f,0x61726170,0x0000006d,0x00040005,0x00000431,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000433,0x61726170,0x0000006d,0x00040005,0x00000435,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000437,0x61726170,0x0000006d,0x00040005,0x0000043e,0x61726170,0x0000006d,
|
||||
0x00030005,0x00000445,0x00007069,0x00060005,0x00000447,0x67617266,0x43786554,0x64726f6f,
|
||||
0x00000000,0x00030005,0x00000449,0x00004350,0x00040006,0x00000449,0x00000000,0x0063646e,
|
||||
0x00050006,0x00000449,0x00000001,0x306e6f63,0x00000000,0x00050006,0x00000449,0x00000002,
|
||||
0x316e6f63,0x00000000,0x00050006,0x00000449,0x00000003,0x326e6f63,0x00000000,0x00050006,
|
||||
0x00000449,0x00000004,0x336e6f63,0x00000000,0x00060006,0x00000449,0x00000005,0x7074756f,
|
||||
0x69537475,0x0000657a,0x00030005,0x0000044b,0x00006370,0x00030005,0x00000452,0x00000063,
|
||||
0x00040005,0x00000455,0x61726170,0x0000006d,0x00040005,0x00000456,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000458,0x61726170,0x0000006d,0x00040005,0x0000045c,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000045f,0x61726170,0x0000006d,0x00040005,0x00000462,0x61726170,0x0000006d,
|
||||
0x00050005,0x00000468,0x4374756f,0x726f6c6f,0x00000000,0x00040047,0x0000007c,0x00000021,
|
||||
0x00000000,0x00040047,0x0000007c,0x00000022,0x00000000,0x00040047,0x00000447,0x0000001e,
|
||||
0x00000000,0x00030047,0x00000449,0x00000002,0x00050048,0x00000449,0x00000000,0x00000023,
|
||||
0x00000000,0x00050048,0x00000449,0x00000001,0x00000023,0x00000010,0x00050048,0x00000449,
|
||||
0x00000002,0x00000023,0x00000020,0x00050048,0x00000449,0x00000003,0x00000023,0x00000030,
|
||||
0x00050048,0x00000449,0x00000004,0x00000023,0x00000040,0x00050048,0x00000449,0x00000005,
|
||||
0x00000023,0x00000050,0x00040047,0x00000468,0x0000001e,0x00000000,0x00020013,0x00000002,
|
||||
0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040020,0x00000007,
|
||||
0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,0x00040017,0x00000015,
|
||||
0x00000006,0x00000003,0x00040020,0x00000016,0x00000007,0x00000015,0x00060021,0x00000017,
|
||||
0x00000015,0x00000016,0x00000016,0x00000016,0x00040017,0x00000022,0x00000006,0x00000002,
|
||||
0x00040020,0x00000023,0x00000007,0x00000022,0x00040017,0x00000024,0x00000006,0x00000004,
|
||||
0x00040021,0x00000025,0x00000024,0x00000023,0x000b0021,0x0000002f,0x00000002,0x00000016,
|
||||
0x00000007,0x00000023,0x00000023,0x00000023,0x00000007,0x00000007,0x00000016,0x00020014,
|
||||
0x0000003a,0x00040020,0x0000003b,0x00000007,0x0000003a,0x000f0021,0x0000003c,0x00000002,
|
||||
0x00000023,0x00000007,0x00000023,0x0000003b,0x0000003b,0x0000003b,0x0000003b,0x00000007,
|
||||
0x00000007,0x00000007,0x00000007,0x00000007,0x00040015,0x0000004b,0x00000020,0x00000000,
|
||||
0x00040017,0x0000004c,0x0000004b,0x00000002,0x00040020,0x0000004d,0x00000007,0x0000004c,
|
||||
0x00040017,0x0000004e,0x0000004b,0x00000004,0x00040020,0x0000004f,0x00000007,0x0000004e,
|
||||
0x00090021,0x00000050,0x00000002,0x00000016,0x0000004d,0x0000004f,0x0000004f,0x0000004f,
|
||||
0x0000004f,0x0004002b,0x00000006,0x00000059,0x3f800000,0x0004002b,0x00000006,0x00000067,
|
||||
0x00000000,0x00090019,0x00000079,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,
|
||||
0x00000001,0x00000000,0x0003001b,0x0000007a,0x00000079,0x00040020,0x0000007b,0x00000000,
|
||||
0x0000007a,0x0004003b,0x0000007b,0x0000007c,0x00000000,0x00040015,0x0000007f,0x00000020,
|
||||
0x00000001,0x0004002b,0x0000007f,0x00000080,0x00000000,0x0004002b,0x0000007f,0x00000086,
|
||||
0x00000001,0x0004002b,0x0000007f,0x0000008c,0x00000002,0x0004002b,0x0000004b,0x00000091,
|
||||
0x00000000,0x0004002b,0x0000004b,0x00000097,0x00000001,0x0004002b,0x00000006,0x000000bf,
|
||||
0x3ecccccd,0x0004002b,0x00000006,0x000000c2,0xbf800000,0x0004002b,0x00000006,0x000000cf,
|
||||
0x3fc80000,0x0004002b,0x00000006,0x000000d2,0xbf100000,0x00040020,0x00000186,0x00000007,
|
||||
0x00000024,0x0004002b,0x00000006,0x000001b9,0x3f000000,0x0007002c,0x00000024,0x000001ba,
|
||||
0x000001b9,0x000001b9,0x000001b9,0x000001b9,0x0004002b,0x0000004b,0x000001e6,0x00000002,
|
||||
0x0004002b,0x0000004b,0x000001ea,0x00000003,0x0005002c,0x00000022,0x00000200,0x00000067,
|
||||
0x00000067,0x00030029,0x0000003a,0x00000202,0x0003002a,0x0000003a,0x00000203,0x0004002b,
|
||||
0x00000006,0x0000026c,0x38000000,0x0004002b,0x00000006,0x000002a2,0xbf000000,0x0004002b,
|
||||
0x00000006,0x000002a8,0xbe947ae1,0x0006002c,0x00000015,0x000002f5,0x00000067,0x00000067,
|
||||
0x00000067,0x0005002c,0x00000022,0x000002f7,0x00000067,0x000000c2,0x0005002c,0x00000022,
|
||||
0x00000312,0x00000059,0x000000c2,0x0005002c,0x00000022,0x0000032d,0x000000c2,0x00000059,
|
||||
0x0005002c,0x00000022,0x00000348,0x00000067,0x00000059,0x0005002c,0x00000022,0x0000037d,
|
||||
0x000000c2,0x00000067,0x0005002c,0x00000022,0x00000398,0x00000059,0x00000059,0x0004002b,
|
||||
0x00000006,0x000003b3,0x40000000,0x0005002c,0x00000022,0x000003b4,0x000003b3,0x00000059,
|
||||
0x0005002c,0x00000022,0x000003cf,0x000003b3,0x00000067,0x0005002c,0x00000022,0x000003ea,
|
||||
0x00000059,0x00000067,0x0005002c,0x00000022,0x00000405,0x00000059,0x000003b3,0x0005002c,
|
||||
0x00000022,0x00000420,0x00000067,0x000003b3,0x00040020,0x00000446,0x00000001,0x00000022,
|
||||
0x0004003b,0x00000446,0x00000447,0x00000001,0x0008001e,0x00000449,0x00000024,0x0000004e,
|
||||
0x0000004e,0x0000004e,0x0000004e,0x00000022,0x00040020,0x0000044a,0x00000009,0x00000449,
|
||||
0x0004003b,0x0000044a,0x0000044b,0x00000009,0x0004002b,0x0000007f,0x0000044c,0x00000005,
|
||||
0x00040020,0x0000044d,0x00000009,0x00000022,0x0004002b,0x0000007f,0x00000453,0x00000003,
|
||||
0x0004002b,0x0000007f,0x00000454,0x00000004,0x00040020,0x00000459,0x00000009,0x0000004e,
|
||||
0x00040020,0x00000467,0x00000003,0x00000024,0x0004003b,0x00000467,0x00000468,0x00000003,
|
||||
0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
|
||||
0x0000004d,0x00000445,0x00000007,0x0004003b,0x00000016,0x00000452,0x00000007,0x0004003b,
|
||||
0x00000016,0x00000455,0x00000007,0x0004003b,0x0000004d,0x00000456,0x00000007,0x0004003b,
|
||||
0x0000004f,0x00000458,0x00000007,0x0004003b,0x0000004f,0x0000045c,0x00000007,0x0004003b,
|
||||
0x0000004f,0x0000045f,0x00000007,0x0004003b,0x0000004f,0x00000462,0x00000007,0x0004003d,
|
||||
0x00000022,0x00000448,0x00000447,0x00050041,0x0000044d,0x0000044e,0x0000044b,0x0000044c,
|
||||
0x0004003d,0x00000022,0x0000044f,0x0000044e,0x00050085,0x00000022,0x00000450,0x00000448,
|
||||
0x0000044f,0x0004006d,0x0000004c,0x00000451,0x00000450,0x0003003e,0x00000445,0x00000451,
|
||||
0x0004003d,0x0000004c,0x00000457,0x00000445,0x0003003e,0x00000456,0x00000457,0x00050041,
|
||||
0x00000459,0x0000045a,0x0000044b,0x00000086,0x0004003d,0x0000004e,0x0000045b,0x0000045a,
|
||||
0x0003003e,0x00000458,0x0000045b,0x00050041,0x00000459,0x0000045d,0x0000044b,0x0000008c,
|
||||
0x0004003d,0x0000004e,0x0000045e,0x0000045d,0x0003003e,0x0000045c,0x0000045e,0x00050041,
|
||||
0x00000459,0x00000460,0x0000044b,0x00000453,0x0004003d,0x0000004e,0x00000461,0x00000460,
|
||||
0x0003003e,0x0000045f,0x00000461,0x00050041,0x00000459,0x00000463,0x0000044b,0x00000454,
|
||||
0x0004003d,0x0000004e,0x00000464,0x00000463,0x0003003e,0x00000462,0x00000464,0x000a0039,
|
||||
0x00000002,0x00000465,0x00000057,0x00000455,0x00000456,0x00000458,0x0000045c,0x0000045f,
|
||||
0x00000462,0x0004003d,0x00000015,0x00000466,0x00000455,0x0003003e,0x00000452,0x00000466,
|
||||
0x0004003d,0x00000015,0x00000469,0x00000452,0x00050051,0x00000006,0x0000046a,0x00000469,
|
||||
0x00000000,0x00050051,0x00000006,0x0000046b,0x00000469,0x00000001,0x00050051,0x00000006,
|
||||
0x0000046c,0x00000469,0x00000002,0x00070050,0x00000024,0x0000046d,0x0000046a,0x0000046b,
|
||||
0x0000046c,0x00000059,0x0003003e,0x00000468,0x0000046d,0x000100fd,0x00010038,0x00050036,
|
||||
0x00000006,0x0000000a,0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,0x000200f8,
|
||||
0x0000000b,0x0004003d,0x00000006,0x0000005a,0x00000009,0x00050088,0x00000006,0x0000005b,
|
||||
0x00000059,0x0000005a,0x000200fe,0x0000005b,0x00010038,0x00050036,0x00000006,0x0000000d,
|
||||
0x00000000,0x00000008,0x00030037,0x00000007,0x0000000c,0x000200f8,0x0000000e,0x0004003d,
|
||||
0x00000006,0x0000005e,0x0000000c,0x00050088,0x00000006,0x0000005f,0x00000059,0x0000005e,
|
||||
0x000200fe,0x0000005f,0x00010038,0x00050036,0x00000006,0x00000010,0x00000000,0x00000008,
|
||||
0x00030037,0x00000007,0x0000000f,0x000200f8,0x00000011,0x0004003d,0x00000006,0x00000062,
|
||||
0x0000000f,0x0006000c,0x00000006,0x00000063,0x00000001,0x00000020,0x00000062,0x000200fe,
|
||||
0x00000063,0x00010038,0x00050036,0x00000006,0x00000013,0x00000000,0x00000008,0x00030037,
|
||||
0x00000007,0x00000012,0x000200f8,0x00000014,0x0004003d,0x00000006,0x00000066,0x00000012,
|
||||
0x0008000c,0x00000006,0x00000068,0x00000001,0x0000002b,0x00000066,0x00000067,0x00000059,
|
||||
0x000200fe,0x00000068,0x00010038,0x00050036,0x00000015,0x0000001b,0x00000000,0x00000017,
|
||||
0x00030037,0x00000016,0x00000018,0x00030037,0x00000016,0x00000019,0x00030037,0x00000016,
|
||||
0x0000001a,0x000200f8,0x0000001c,0x0004003d,0x00000015,0x0000006b,0x00000018,0x0004003d,
|
||||
0x00000015,0x0000006c,0x00000019,0x0004003d,0x00000015,0x0000006d,0x0000001a,0x0007000c,
|
||||
0x00000015,0x0000006e,0x00000001,0x00000025,0x0000006c,0x0000006d,0x0007000c,0x00000015,
|
||||
0x0000006f,0x00000001,0x00000025,0x0000006b,0x0000006e,0x000200fe,0x0000006f,0x00010038,
|
||||
0x00050036,0x00000015,0x00000020,0x00000000,0x00000017,0x00030037,0x00000016,0x0000001d,
|
||||
0x00030037,0x00000016,0x0000001e,0x00030037,0x00000016,0x0000001f,0x000200f8,0x00000021,
|
||||
0x0004003d,0x00000015,0x00000072,0x0000001d,0x0004003d,0x00000015,0x00000073,0x0000001e,
|
||||
0x0004003d,0x00000015,0x00000074,0x0000001f,0x0007000c,0x00000015,0x00000075,0x00000001,
|
||||
0x00000028,0x00000073,0x00000074,0x0007000c,0x00000015,0x00000076,0x00000001,0x00000028,
|
||||
0x00000072,0x00000075,0x000200fe,0x00000076,0x00010038,0x00050036,0x00000024,0x00000027,
|
||||
0x00000000,0x00000025,0x00030037,0x00000023,0x00000026,0x000200f8,0x00000028,0x0004003d,
|
||||
0x0000007a,0x0000007d,0x0000007c,0x0004003d,0x00000022,0x0000007e,0x00000026,0x00060060,
|
||||
0x00000024,0x00000081,0x0000007d,0x0000007e,0x00000080,0x000200fe,0x00000081,0x00010038,
|
||||
0x00050036,0x00000024,0x0000002a,0x00000000,0x00000025,0x00030037,0x00000023,0x00000029,
|
||||
0x000200f8,0x0000002b,0x0004003d,0x0000007a,0x00000084,0x0000007c,0x0004003d,0x00000022,
|
||||
0x00000085,0x00000029,0x00060060,0x00000024,0x00000087,0x00000084,0x00000085,0x00000086,
|
||||
0x000200fe,0x00000087,0x00010038,0x00050036,0x00000024,0x0000002d,0x00000000,0x00000025,
|
||||
0x00030037,0x00000023,0x0000002c,0x000200f8,0x0000002e,0x0004003d,0x0000007a,0x0000008a,
|
||||
0x0000007c,0x0004003d,0x00000022,0x0000008b,0x0000002c,0x00060060,0x00000024,0x0000008d,
|
||||
0x0000008a,0x0000008b,0x0000008c,0x000200fe,0x0000008d,0x00010038,0x00050036,0x00000002,
|
||||
0x00000038,0x00000000,0x0000002f,0x00030037,0x00000016,0x00000030,0x00030037,0x00000007,
|
||||
0x00000031,0x00030037,0x00000023,0x00000032,0x00030037,0x00000023,0x00000033,0x00030037,
|
||||
0x00000023,0x00000034,0x00030037,0x00000007,0x00000035,0x00030037,0x00000007,0x00000036,
|
||||
0x00030037,0x00000016,0x00000037,0x000200f8,0x00000039,0x0004003b,0x00000023,0x00000090,
|
||||
0x00000007,0x0004003b,0x00000007,0x000000af,0x00000007,0x0004003b,0x00000007,0x000000be,
|
||||
0x00000007,0x0004003b,0x00000007,0x000000c4,0x00000007,0x0004003b,0x00000007,0x000000d4,
|
||||
0x00000007,0x00050041,0x00000007,0x00000092,0x00000032,0x00000091,0x0004003d,0x00000006,
|
||||
0x00000093,0x00000092,0x00050041,0x00000007,0x00000094,0x00000033,0x00000091,0x0004003d,
|
||||
0x00000006,0x00000095,0x00000094,0x00050085,0x00000006,0x00000096,0x00000093,0x00000095,
|
||||
0x00050041,0x00000007,0x00000098,0x00000032,0x00000097,0x0004003d,0x00000006,0x00000099,
|
||||
0x00000098,0x00050041,0x00000007,0x0000009a,0x00000033,0x00000097,0x0004003d,0x00000006,
|
||||
0x0000009b,0x0000009a,0x00050085,0x00000006,0x0000009c,0x00000099,0x0000009b,0x00050081,
|
||||
0x00000006,0x0000009d,0x00000096,0x0000009c,0x00050041,0x00000007,0x0000009e,0x00000090,
|
||||
0x00000091,0x0003003e,0x0000009e,0x0000009d,0x00050041,0x00000007,0x0000009f,0x00000032,
|
||||
0x00000091,0x0004003d,0x00000006,0x000000a0,0x0000009f,0x00050041,0x00000007,0x000000a1,
|
||||
0x00000033,0x00000097,0x0004003d,0x00000006,0x000000a2,0x000000a1,0x0004007f,0x00000006,
|
||||
0x000000a3,0x000000a2,0x00050085,0x00000006,0x000000a4,0x000000a0,0x000000a3,0x00050041,
|
||||
0x00000007,0x000000a5,0x00000032,0x00000097,0x0004003d,0x00000006,0x000000a6,0x000000a5,
|
||||
0x00050041,0x00000007,0x000000a7,0x00000033,0x00000091,0x0004003d,0x00000006,0x000000a8,
|
||||
0x000000a7,0x00050085,0x00000006,0x000000a9,0x000000a6,0x000000a8,0x00050081,0x00000006,
|
||||
0x000000aa,0x000000a4,0x000000a9,0x00050041,0x00000007,0x000000ab,0x00000090,0x00000097,
|
||||
0x0003003e,0x000000ab,0x000000aa,0x0004003d,0x00000022,0x000000ac,0x00000034,0x0004003d,
|
||||
0x00000022,0x000000ad,0x00000090,0x00050085,0x00000022,0x000000ae,0x000000ad,0x000000ac,
|
||||
0x0003003e,0x00000090,0x000000ae,0x00050041,0x00000007,0x000000b0,0x00000090,0x00000091,
|
||||
0x0004003d,0x00000006,0x000000b1,0x000000b0,0x00050041,0x00000007,0x000000b2,0x00000090,
|
||||
0x00000091,0x0004003d,0x00000006,0x000000b3,0x000000b2,0x00050085,0x00000006,0x000000b4,
|
||||
0x000000b1,0x000000b3,0x00050041,0x00000007,0x000000b5,0x00000090,0x00000097,0x0004003d,
|
||||
0x00000006,0x000000b6,0x000000b5,0x00050041,0x00000007,0x000000b7,0x00000090,0x00000097,
|
||||
0x0004003d,0x00000006,0x000000b8,0x000000b7,0x00050085,0x00000006,0x000000b9,0x000000b6,
|
||||
0x000000b8,0x00050081,0x00000006,0x000000ba,0x000000b4,0x000000b9,0x0003003e,0x000000af,
|
||||
0x000000ba,0x0004003d,0x00000006,0x000000bb,0x000000af,0x0004003d,0x00000006,0x000000bc,
|
||||
0x00000036,0x0007000c,0x00000006,0x000000bd,0x00000001,0x00000025,0x000000bb,0x000000bc,
|
||||
0x0003003e,0x000000af,0x000000bd,0x0004003d,0x00000006,0x000000c0,0x000000af,0x00050085,
|
||||
0x00000006,0x000000c1,0x000000bf,0x000000c0,0x00050081,0x00000006,0x000000c3,0x000000c1,
|
||||
0x000000c2,0x0003003e,0x000000be,0x000000c3,0x0004003d,0x00000006,0x000000c5,0x00000035,
|
||||
0x0004003d,0x00000006,0x000000c6,0x000000af,0x00050085,0x00000006,0x000000c7,0x000000c5,
|
||||
0x000000c6,0x00050081,0x00000006,0x000000c8,0x000000c7,0x000000c2,0x0003003e,0x000000c4,
|
||||
0x000000c8,0x0004003d,0x00000006,0x000000c9,0x000000be,0x0004003d,0x00000006,0x000000ca,
|
||||
0x000000be,0x00050085,0x00000006,0x000000cb,0x000000ca,0x000000c9,0x0003003e,0x000000be,
|
||||
0x000000cb,0x0004003d,0x00000006,0x000000cc,0x000000c4,0x0004003d,0x00000006,0x000000cd,
|
||||
0x000000c4,0x00050085,0x00000006,0x000000ce,0x000000cd,0x000000cc,0x0003003e,0x000000c4,
|
||||
0x000000ce,0x0004003d,0x00000006,0x000000d0,0x000000be,0x00050085,0x00000006,0x000000d1,
|
||||
0x000000cf,0x000000d0,0x00050081,0x00000006,0x000000d3,0x000000d1,0x000000d2,0x0003003e,
|
||||
0x000000be,0x000000d3,0x0004003d,0x00000006,0x000000d5,0x000000be,0x0004003d,0x00000006,
|
||||
0x000000d6,0x000000c4,0x00050085,0x00000006,0x000000d7,0x000000d5,0x000000d6,0x0003003e,
|
||||
0x000000d4,0x000000d7,0x0004003d,0x00000015,0x000000d8,0x00000037,0x0004003d,0x00000006,
|
||||
0x000000d9,0x000000d4,0x0005008e,0x00000015,0x000000da,0x000000d8,0x000000d9,0x0004003d,
|
||||
0x00000015,0x000000db,0x00000030,0x00050081,0x00000015,0x000000dc,0x000000db,0x000000da,
|
||||
0x0003003e,0x00000030,0x000000dc,0x0004003d,0x00000006,0x000000dd,0x000000d4,0x0004003d,
|
||||
0x00000006,0x000000de,0x00000031,0x00050081,0x00000006,0x000000df,0x000000de,0x000000dd,
|
||||
0x0003003e,0x00000031,0x000000df,0x000100fd,0x00010038,0x00050036,0x00000002,0x00000049,
|
||||
0x00000000,0x0000003c,0x00030037,0x00000023,0x0000003d,0x00030037,0x00000007,0x0000003e,
|
||||
0x00030037,0x00000023,0x0000003f,0x00030037,0x0000003b,0x00000040,0x00030037,0x0000003b,
|
||||
0x00000041,0x00030037,0x0000003b,0x00000042,0x00030037,0x0000003b,0x00000043,0x00030037,
|
||||
0x00000007,0x00000044,0x00030037,0x00000007,0x00000045,0x00030037,0x00000007,0x00000046,
|
||||
0x00030037,0x00000007,0x00000047,0x00030037,0x00000007,0x00000048,0x000200f8,0x0000004a,
|
||||
0x0004003b,0x00000007,0x000000e0,0x00000007,0x0004003b,0x00000007,0x00000105,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000109,0x00000007,0x0004003b,0x00000007,0x0000010d,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000113,0x00000007,0x0004003b,0x00000007,0x00000116,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000125,0x00000007,0x0004003b,0x00000007,0x0000012f,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000133,0x00000007,0x0004003b,0x00000007,0x00000137,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000013d,0x00000007,0x0004003b,0x00000007,0x00000140,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000014f,0x00000007,0x0003003e,0x000000e0,0x00000067,0x0004003d,
|
||||
0x0000003a,0x000000e1,0x00000040,0x000300f7,0x000000e3,0x00000000,0x000400fa,0x000000e1,
|
||||
0x000000e2,0x000000e3,0x000200f8,0x000000e2,0x00050041,0x00000007,0x000000e4,0x0000003f,
|
||||
0x00000091,0x0004003d,0x00000006,0x000000e5,0x000000e4,0x00050083,0x00000006,0x000000e6,
|
||||
0x00000059,0x000000e5,0x00050041,0x00000007,0x000000e7,0x0000003f,0x00000097,0x0004003d,
|
||||
0x00000006,0x000000e8,0x000000e7,0x00050083,0x00000006,0x000000e9,0x00000059,0x000000e8,
|
||||
0x00050085,0x00000006,0x000000ea,0x000000e6,0x000000e9,0x0003003e,0x000000e0,0x000000ea,
|
||||
0x000200f9,0x000000e3,0x000200f8,0x000000e3,0x0004003d,0x0000003a,0x000000eb,0x00000041,
|
||||
0x000300f7,0x000000ed,0x00000000,0x000400fa,0x000000eb,0x000000ec,0x000000ed,0x000200f8,
|
||||
0x000000ec,0x00050041,0x00000007,0x000000ee,0x0000003f,0x00000091,0x0004003d,0x00000006,
|
||||
0x000000ef,0x000000ee,0x00050041,0x00000007,0x000000f0,0x0000003f,0x00000097,0x0004003d,
|
||||
0x00000006,0x000000f1,0x000000f0,0x00050083,0x00000006,0x000000f2,0x00000059,0x000000f1,
|
||||
0x00050085,0x00000006,0x000000f3,0x000000ef,0x000000f2,0x0003003e,0x000000e0,0x000000f3,
|
||||
0x000200f9,0x000000ed,0x000200f8,0x000000ed,0x0004003d,0x0000003a,0x000000f4,0x00000042,
|
||||
0x000300f7,0x000000f6,0x00000000,0x000400fa,0x000000f4,0x000000f5,0x000000f6,0x000200f8,
|
||||
0x000000f5,0x00050041,0x00000007,0x000000f7,0x0000003f,0x00000091,0x0004003d,0x00000006,
|
||||
0x000000f8,0x000000f7,0x00050083,0x00000006,0x000000f9,0x00000059,0x000000f8,0x00050041,
|
||||
0x00000007,0x000000fa,0x0000003f,0x00000097,0x0004003d,0x00000006,0x000000fb,0x000000fa,
|
||||
0x00050085,0x00000006,0x000000fc,0x000000f9,0x000000fb,0x0003003e,0x000000e0,0x000000fc,
|
||||
0x000200f9,0x000000f6,0x000200f8,0x000000f6,0x0004003d,0x0000003a,0x000000fd,0x00000043,
|
||||
0x000300f7,0x000000ff,0x00000000,0x000400fa,0x000000fd,0x000000fe,0x000000ff,0x000200f8,
|
||||
0x000000fe,0x00050041,0x00000007,0x00000100,0x0000003f,0x00000091,0x0004003d,0x00000006,
|
||||
0x00000101,0x00000100,0x00050041,0x00000007,0x00000102,0x0000003f,0x00000097,0x0004003d,
|
||||
0x00000006,0x00000103,0x00000102,0x00050085,0x00000006,0x00000104,0x00000101,0x00000103,
|
||||
0x0003003e,0x000000e0,0x00000104,0x000200f9,0x000000ff,0x000200f8,0x000000ff,0x0004003d,
|
||||
0x00000006,0x00000106,0x00000047,0x0004003d,0x00000006,0x00000107,0x00000046,0x00050083,
|
||||
0x00000006,0x00000108,0x00000106,0x00000107,0x0003003e,0x00000105,0x00000108,0x0004003d,
|
||||
0x00000006,0x0000010a,0x00000046,0x0004003d,0x00000006,0x0000010b,0x00000045,0x00050083,
|
||||
0x00000006,0x0000010c,0x0000010a,0x0000010b,0x0003003e,0x00000109,0x0000010c,0x0004003d,
|
||||
0x00000006,0x0000010e,0x00000105,0x0006000c,0x00000006,0x0000010f,0x00000001,0x00000004,
|
||||
0x0000010e,0x0004003d,0x00000006,0x00000110,0x00000109,0x0006000c,0x00000006,0x00000111,
|
||||
0x00000001,0x00000004,0x00000110,0x0007000c,0x00000006,0x00000112,0x00000001,0x00000028,
|
||||
0x0000010f,0x00000111,0x0003003e,0x0000010d,0x00000112,0x0004003d,0x00000006,0x00000114,
|
||||
0x0000010d,0x0003003e,0x00000113,0x00000114,0x00050039,0x00000006,0x00000115,0x0000000d,
|
||||
0x00000113,0x0003003e,0x0000010d,0x00000115,0x0004003d,0x00000006,0x00000117,0x00000047,
|
||||
0x0004003d,0x00000006,0x00000118,0x00000045,0x00050083,0x00000006,0x00000119,0x00000117,
|
||||
0x00000118,0x0003003e,0x00000116,0x00000119,0x0004003d,0x00000006,0x0000011a,0x00000116,
|
||||
0x0004003d,0x00000006,0x0000011b,0x000000e0,0x00050085,0x00000006,0x0000011c,0x0000011a,
|
||||
0x0000011b,0x00050041,0x00000007,0x0000011d,0x0000003d,0x00000091,0x0004003d,0x00000006,
|
||||
0x0000011e,0x0000011d,0x00050081,0x00000006,0x0000011f,0x0000011e,0x0000011c,0x00050041,
|
||||
0x00000007,0x00000120,0x0000003d,0x00000091,0x0003003e,0x00000120,0x0000011f,0x0004003d,
|
||||
0x00000006,0x00000121,0x00000116,0x0006000c,0x00000006,0x00000122,0x00000001,0x00000004,
|
||||
0x00000121,0x0004003d,0x00000006,0x00000123,0x0000010d,0x00050085,0x00000006,0x00000124,
|
||||
0x00000122,0x00000123,0x0003003e,0x00000125,0x00000124,0x00050039,0x00000006,0x00000126,
|
||||
0x00000013,0x00000125,0x0003003e,0x0000010d,0x00000126,0x0004003d,0x00000006,0x00000127,
|
||||
0x0000010d,0x0004003d,0x00000006,0x00000128,0x0000010d,0x00050085,0x00000006,0x00000129,
|
||||
0x00000128,0x00000127,0x0003003e,0x0000010d,0x00000129,0x0004003d,0x00000006,0x0000012a,
|
||||
0x0000010d,0x0004003d,0x00000006,0x0000012b,0x000000e0,0x00050085,0x00000006,0x0000012c,
|
||||
0x0000012a,0x0000012b,0x0004003d,0x00000006,0x0000012d,0x0000003e,0x00050081,0x00000006,
|
||||
0x0000012e,0x0000012d,0x0000012c,0x0003003e,0x0000003e,0x0000012e,0x0004003d,0x00000006,
|
||||
0x00000130,0x00000048,0x0004003d,0x00000006,0x00000131,0x00000046,0x00050083,0x00000006,
|
||||
0x00000132,0x00000130,0x00000131,0x0003003e,0x0000012f,0x00000132,0x0004003d,0x00000006,
|
||||
0x00000134,0x00000046,0x0004003d,0x00000006,0x00000135,0x00000044,0x00050083,0x00000006,
|
||||
0x00000136,0x00000134,0x00000135,0x0003003e,0x00000133,0x00000136,0x0004003d,0x00000006,
|
||||
0x00000138,0x0000012f,0x0006000c,0x00000006,0x00000139,0x00000001,0x00000004,0x00000138,
|
||||
0x0004003d,0x00000006,0x0000013a,0x00000133,0x0006000c,0x00000006,0x0000013b,0x00000001,
|
||||
0x00000004,0x0000013a,0x0007000c,0x00000006,0x0000013c,0x00000001,0x00000028,0x00000139,
|
||||
0x0000013b,0x0003003e,0x00000137,0x0000013c,0x0004003d,0x00000006,0x0000013e,0x00000137,
|
||||
0x0003003e,0x0000013d,0x0000013e,0x00050039,0x00000006,0x0000013f,0x0000000d,0x0000013d,
|
||||
0x0003003e,0x00000137,0x0000013f,0x0004003d,0x00000006,0x00000141,0x00000048,0x0004003d,
|
||||
0x00000006,0x00000142,0x00000044,0x00050083,0x00000006,0x00000143,0x00000141,0x00000142,
|
||||
0x0003003e,0x00000140,0x00000143,0x0004003d,0x00000006,0x00000144,0x00000140,0x0004003d,
|
||||
0x00000006,0x00000145,0x000000e0,0x00050085,0x00000006,0x00000146,0x00000144,0x00000145,
|
||||
0x00050041,0x00000007,0x00000147,0x0000003d,0x00000097,0x0004003d,0x00000006,0x00000148,
|
||||
0x00000147,0x00050081,0x00000006,0x00000149,0x00000148,0x00000146,0x00050041,0x00000007,
|
||||
0x0000014a,0x0000003d,0x00000097,0x0003003e,0x0000014a,0x00000149,0x0004003d,0x00000006,
|
||||
0x0000014b,0x00000140,0x0006000c,0x00000006,0x0000014c,0x00000001,0x00000004,0x0000014b,
|
||||
0x0004003d,0x00000006,0x0000014d,0x00000137,0x00050085,0x00000006,0x0000014e,0x0000014c,
|
||||
0x0000014d,0x0003003e,0x0000014f,0x0000014e,0x00050039,0x00000006,0x00000150,0x00000013,
|
||||
0x0000014f,0x0003003e,0x00000137,0x00000150,0x0004003d,0x00000006,0x00000151,0x00000137,
|
||||
0x0004003d,0x00000006,0x00000152,0x00000137,0x00050085,0x00000006,0x00000153,0x00000152,
|
||||
0x00000151,0x0003003e,0x00000137,0x00000153,0x0004003d,0x00000006,0x00000154,0x00000137,
|
||||
0x0004003d,0x00000006,0x00000155,0x000000e0,0x00050085,0x00000006,0x00000156,0x00000154,
|
||||
0x00000155,0x0004003d,0x00000006,0x00000157,0x0000003e,0x00050081,0x00000006,0x00000158,
|
||||
0x00000157,0x00000156,0x0003003e,0x0000003e,0x00000158,0x000100fd,0x00010038,0x00050036,
|
||||
0x00000002,0x00000057,0x00000000,0x00000050,0x00030037,0x00000016,0x00000051,0x00030037,
|
||||
0x0000004d,0x00000052,0x00030037,0x0000004f,0x00000053,0x00030037,0x0000004f,0x00000054,
|
||||
0x00030037,0x0000004f,0x00000055,0x00030037,0x0000004f,0x00000056,0x000200f8,0x00000058,
|
||||
0x0004003b,0x00000023,0x00000159,0x00000007,0x0004003b,0x00000023,0x00000164,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000016a,0x00000007,0x0004003b,0x00000023,0x00000174,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000017a,0x00000007,0x0004003b,0x00000023,0x00000180,0x00000007,
|
||||
0x0004003b,0x00000186,0x00000187,0x00000007,0x0004003b,0x00000023,0x00000188,0x00000007,
|
||||
0x0004003b,0x00000186,0x0000018b,0x00000007,0x0004003b,0x00000023,0x0000018c,0x00000007,
|
||||
0x0004003b,0x00000186,0x0000018f,0x00000007,0x0004003b,0x00000023,0x00000190,0x00000007,
|
||||
0x0004003b,0x00000186,0x00000193,0x00000007,0x0004003b,0x00000023,0x00000194,0x00000007,
|
||||
0x0004003b,0x00000186,0x00000197,0x00000007,0x0004003b,0x00000023,0x00000198,0x00000007,
|
||||
0x0004003b,0x00000186,0x0000019b,0x00000007,0x0004003b,0x00000023,0x0000019c,0x00000007,
|
||||
0x0004003b,0x00000186,0x0000019f,0x00000007,0x0004003b,0x00000023,0x000001a0,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001a3,0x00000007,0x0004003b,0x00000023,0x000001a4,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001a7,0x00000007,0x0004003b,0x00000023,0x000001a8,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001ab,0x00000007,0x0004003b,0x00000023,0x000001ac,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001af,0x00000007,0x0004003b,0x00000023,0x000001b0,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001b3,0x00000007,0x0004003b,0x00000023,0x000001b4,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001b7,0x00000007,0x0004003b,0x00000186,0x000001c1,0x00000007,
|
||||
0x0004003b,0x00000186,0x000001c9,0x00000007,0x0004003b,0x00000186,0x000001d1,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001d9,0x00000007,0x0004003b,0x00000007,0x000001dc,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001df,0x00000007,0x0004003b,0x00000007,0x000001e2,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001e5,0x00000007,0x0004003b,0x00000007,0x000001e9,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001ed,0x00000007,0x0004003b,0x00000007,0x000001f0,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001f3,0x00000007,0x0004003b,0x00000007,0x000001f6,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001f9,0x00000007,0x0004003b,0x00000007,0x000001fc,0x00000007,
|
||||
0x0004003b,0x00000023,0x000001ff,0x00000007,0x0004003b,0x00000007,0x00000201,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000204,0x00000007,0x0004003b,0x00000007,0x00000206,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000208,0x00000007,0x0004003b,0x0000003b,0x0000020a,0x00000007,
|
||||
0x0004003b,0x0000003b,0x0000020b,0x00000007,0x0004003b,0x0000003b,0x0000020c,0x00000007,
|
||||
0x0004003b,0x0000003b,0x0000020d,0x00000007,0x0004003b,0x00000007,0x0000020e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000210,0x00000007,0x0004003b,0x00000007,0x00000212,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000214,0x00000007,0x0004003b,0x00000007,0x00000216,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000021b,0x00000007,0x0004003b,0x00000007,0x0000021d,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000021f,0x00000007,0x0004003b,0x0000003b,0x00000221,0x00000007,
|
||||
0x0004003b,0x0000003b,0x00000222,0x00000007,0x0004003b,0x0000003b,0x00000223,0x00000007,
|
||||
0x0004003b,0x0000003b,0x00000224,0x00000007,0x0004003b,0x00000007,0x00000225,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000227,0x00000007,0x0004003b,0x00000007,0x00000229,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000022b,0x00000007,0x0004003b,0x00000007,0x0000022d,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000232,0x00000007,0x0004003b,0x00000007,0x00000234,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000236,0x00000007,0x0004003b,0x0000003b,0x00000238,0x00000007,
|
||||
0x0004003b,0x0000003b,0x00000239,0x00000007,0x0004003b,0x0000003b,0x0000023a,0x00000007,
|
||||
0x0004003b,0x0000003b,0x0000023b,0x00000007,0x0004003b,0x00000007,0x0000023c,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000023e,0x00000007,0x0004003b,0x00000007,0x00000240,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000242,0x00000007,0x0004003b,0x00000007,0x00000244,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000249,0x00000007,0x0004003b,0x00000007,0x0000024b,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000024d,0x00000007,0x0004003b,0x0000003b,0x0000024f,0x00000007,
|
||||
0x0004003b,0x0000003b,0x00000250,0x00000007,0x0004003b,0x0000003b,0x00000251,0x00000007,
|
||||
0x0004003b,0x0000003b,0x00000252,0x00000007,0x0004003b,0x00000007,0x00000253,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000255,0x00000007,0x0004003b,0x00000007,0x00000257,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000259,0x00000007,0x0004003b,0x00000007,0x0000025b,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000260,0x00000007,0x0004003b,0x00000007,0x00000264,0x00000007,
|
||||
0x0004003b,0x0000003b,0x0000026a,0x00000007,0x0004003b,0x00000007,0x0000026e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000275,0x00000007,0x0004003b,0x00000007,0x00000286,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000299,0x00000007,0x0004003b,0x00000023,0x0000029c,0x00000007,
|
||||
0x0004003b,0x00000007,0x000002a7,0x00000007,0x0004003b,0x00000007,0x000002ac,0x00000007,
|
||||
0x0004003b,0x00000007,0x000002ad,0x00000007,0x0004003b,0x00000016,0x000002b0,0x00000007,
|
||||
0x0004003b,0x00000016,0x000002c6,0x00000007,0x0004003b,0x00000016,0x000002c7,0x00000007,
|
||||
0x0004003b,0x00000016,0x000002c8,0x00000007,0x0004003b,0x00000016,0x000002d2,0x00000007,
|
||||
0x0004003b,0x00000016,0x000002e8,0x00000007,0x0004003b,0x00000016,0x000002e9,0x00000007,
|
||||
0x0004003b,0x00000016,0x000002ea,0x00000007,0x0004003b,0x00000016,0x000002f4,0x00000007,
|
||||
0x0004003b,0x00000007,0x000002f6,0x00000007,0x0004003b,0x00000016,0x00000301,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000303,0x00000007,0x0004003b,0x00000023,0x00000305,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000306,0x00000007,0x0004003b,0x00000023,0x00000308,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000030a,0x00000007,0x0004003b,0x00000007,0x0000030c,0x00000007,
|
||||
0x0004003b,0x00000016,0x0000030e,0x00000007,0x0004003b,0x00000016,0x0000031c,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000031e,0x00000007,0x0004003b,0x00000023,0x00000320,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000321,0x00000007,0x0004003b,0x00000023,0x00000323,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000325,0x00000007,0x0004003b,0x00000007,0x00000327,0x00000007,
|
||||
0x0004003b,0x00000016,0x00000329,0x00000007,0x0004003b,0x00000016,0x00000337,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000339,0x00000007,0x0004003b,0x00000023,0x0000033b,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000033c,0x00000007,0x0004003b,0x00000023,0x0000033e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000340,0x00000007,0x0004003b,0x00000007,0x00000342,0x00000007,
|
||||
0x0004003b,0x00000016,0x00000344,0x00000007,0x0004003b,0x00000016,0x00000352,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000354,0x00000007,0x0004003b,0x00000023,0x00000356,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000357,0x00000007,0x0004003b,0x00000023,0x00000359,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000035b,0x00000007,0x0004003b,0x00000007,0x0000035d,0x00000007,
|
||||
0x0004003b,0x00000016,0x0000035f,0x00000007,0x0004003b,0x00000016,0x0000036c,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000036e,0x00000007,0x0004003b,0x00000023,0x00000370,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000371,0x00000007,0x0004003b,0x00000023,0x00000373,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000375,0x00000007,0x0004003b,0x00000007,0x00000377,0x00000007,
|
||||
0x0004003b,0x00000016,0x00000379,0x00000007,0x0004003b,0x00000016,0x00000387,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000389,0x00000007,0x0004003b,0x00000023,0x0000038b,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000038c,0x00000007,0x0004003b,0x00000023,0x0000038e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000390,0x00000007,0x0004003b,0x00000007,0x00000392,0x00000007,
|
||||
0x0004003b,0x00000016,0x00000394,0x00000007,0x0004003b,0x00000016,0x000003a2,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003a4,0x00000007,0x0004003b,0x00000023,0x000003a6,0x00000007,
|
||||
0x0004003b,0x00000023,0x000003a7,0x00000007,0x0004003b,0x00000023,0x000003a9,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003ab,0x00000007,0x0004003b,0x00000007,0x000003ad,0x00000007,
|
||||
0x0004003b,0x00000016,0x000003af,0x00000007,0x0004003b,0x00000016,0x000003be,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003c0,0x00000007,0x0004003b,0x00000023,0x000003c2,0x00000007,
|
||||
0x0004003b,0x00000023,0x000003c3,0x00000007,0x0004003b,0x00000023,0x000003c5,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003c7,0x00000007,0x0004003b,0x00000007,0x000003c9,0x00000007,
|
||||
0x0004003b,0x00000016,0x000003cb,0x00000007,0x0004003b,0x00000016,0x000003d9,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003db,0x00000007,0x0004003b,0x00000023,0x000003dd,0x00000007,
|
||||
0x0004003b,0x00000023,0x000003de,0x00000007,0x0004003b,0x00000023,0x000003e0,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003e2,0x00000007,0x0004003b,0x00000007,0x000003e4,0x00000007,
|
||||
0x0004003b,0x00000016,0x000003e6,0x00000007,0x0004003b,0x00000016,0x000003f4,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003f6,0x00000007,0x0004003b,0x00000023,0x000003f8,0x00000007,
|
||||
0x0004003b,0x00000023,0x000003f9,0x00000007,0x0004003b,0x00000023,0x000003fb,0x00000007,
|
||||
0x0004003b,0x00000007,0x000003fd,0x00000007,0x0004003b,0x00000007,0x000003ff,0x00000007,
|
||||
0x0004003b,0x00000016,0x00000401,0x00000007,0x0004003b,0x00000016,0x0000040f,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000411,0x00000007,0x0004003b,0x00000023,0x00000413,0x00000007,
|
||||
0x0004003b,0x00000023,0x00000414,0x00000007,0x0004003b,0x00000023,0x00000416,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000418,0x00000007,0x0004003b,0x00000007,0x0000041a,0x00000007,
|
||||
0x0004003b,0x00000016,0x0000041c,0x00000007,0x0004003b,0x00000016,0x0000042a,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000042c,0x00000007,0x0004003b,0x00000023,0x0000042e,0x00000007,
|
||||
0x0004003b,0x00000023,0x0000042f,0x00000007,0x0004003b,0x00000023,0x00000431,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000433,0x00000007,0x0004003b,0x00000007,0x00000435,0x00000007,
|
||||
0x0004003b,0x00000016,0x00000437,0x00000007,0x0004003b,0x00000007,0x0000043e,0x00000007,
|
||||
0x0004003d,0x0000004c,0x0000015a,0x00000052,0x00040070,0x00000022,0x0000015b,0x0000015a,
|
||||
0x0004003d,0x0000004e,0x0000015c,0x00000053,0x0007004f,0x0000004c,0x0000015d,0x0000015c,
|
||||
0x0000015c,0x00000000,0x00000001,0x0004007c,0x00000022,0x0000015e,0x0000015d,0x00050085,
|
||||
0x00000022,0x0000015f,0x0000015b,0x0000015e,0x0004003d,0x0000004e,0x00000160,0x00000053,
|
||||
0x0007004f,0x0000004c,0x00000161,0x00000160,0x00000160,0x00000002,0x00000003,0x0004007c,
|
||||
0x00000022,0x00000162,0x00000161,0x00050081,0x00000022,0x00000163,0x0000015f,0x00000162,
|
||||
0x0003003e,0x00000159,0x00000163,0x0004003d,0x00000022,0x00000165,0x00000159,0x0006000c,
|
||||
0x00000022,0x00000166,0x00000001,0x00000008,0x00000165,0x0003003e,0x00000164,0x00000166,
|
||||
0x0004003d,0x00000022,0x00000167,0x00000164,0x0004003d,0x00000022,0x00000168,0x00000159,
|
||||
0x00050083,0x00000022,0x00000169,0x00000168,0x00000167,0x0003003e,0x00000159,0x00000169,
|
||||
0x0004003d,0x00000022,0x0000016b,0x00000164,0x0004003d,0x0000004e,0x0000016c,0x00000054,
|
||||
0x0007004f,0x0000004c,0x0000016d,0x0000016c,0x0000016c,0x00000000,0x00000001,0x0004007c,
|
||||
0x00000022,0x0000016e,0x0000016d,0x00050085,0x00000022,0x0000016f,0x0000016b,0x0000016e,
|
||||
0x0004003d,0x0000004e,0x00000170,0x00000054,0x0007004f,0x0000004c,0x00000171,0x00000170,
|
||||
0x00000170,0x00000002,0x00000003,0x0004007c,0x00000022,0x00000172,0x00000171,0x00050081,
|
||||
0x00000022,0x00000173,0x0000016f,0x00000172,0x0003003e,0x0000016a,0x00000173,0x0004003d,
|
||||
0x00000022,0x00000175,0x0000016a,0x0004003d,0x0000004e,0x00000176,0x00000055,0x0007004f,
|
||||
0x0000004c,0x00000177,0x00000176,0x00000176,0x00000000,0x00000001,0x0004007c,0x00000022,
|
||||
0x00000178,0x00000177,0x00050081,0x00000022,0x00000179,0x00000175,0x00000178,0x0003003e,
|
||||
0x00000174,0x00000179,0x0004003d,0x00000022,0x0000017b,0x0000016a,0x0004003d,0x0000004e,
|
||||
0x0000017c,0x00000055,0x0007004f,0x0000004c,0x0000017d,0x0000017c,0x0000017c,0x00000002,
|
||||
0x00000003,0x0004007c,0x00000022,0x0000017e,0x0000017d,0x00050081,0x00000022,0x0000017f,
|
||||
0x0000017b,0x0000017e,0x0003003e,0x0000017a,0x0000017f,0x0004003d,0x00000022,0x00000181,
|
||||
0x0000016a,0x0004003d,0x0000004e,0x00000182,0x00000056,0x0007004f,0x0000004c,0x00000183,
|
||||
0x00000182,0x00000182,0x00000000,0x00000001,0x0004007c,0x00000022,0x00000184,0x00000183,
|
||||
0x00050081,0x00000022,0x00000185,0x00000181,0x00000184,0x0003003e,0x00000180,0x00000185,
|
||||
0x0004003d,0x00000022,0x00000189,0x0000016a,0x0003003e,0x00000188,0x00000189,0x00050039,
|
||||
0x00000024,0x0000018a,0x00000027,0x00000188,0x0003003e,0x00000187,0x0000018a,0x0004003d,
|
||||
0x00000022,0x0000018d,0x0000016a,0x0003003e,0x0000018c,0x0000018d,0x00050039,0x00000024,
|
||||
0x0000018e,0x0000002a,0x0000018c,0x0003003e,0x0000018b,0x0000018e,0x0004003d,0x00000022,
|
||||
0x00000191,0x0000016a,0x0003003e,0x00000190,0x00000191,0x00050039,0x00000024,0x00000192,
|
||||
0x0000002d,0x00000190,0x0003003e,0x0000018f,0x00000192,0x0004003d,0x00000022,0x00000195,
|
||||
0x00000174,0x0003003e,0x00000194,0x00000195,0x00050039,0x00000024,0x00000196,0x00000027,
|
||||
0x00000194,0x0003003e,0x00000193,0x00000196,0x0004003d,0x00000022,0x00000199,0x00000174,
|
||||
0x0003003e,0x00000198,0x00000199,0x00050039,0x00000024,0x0000019a,0x0000002a,0x00000198,
|
||||
0x0003003e,0x00000197,0x0000019a,0x0004003d,0x00000022,0x0000019d,0x00000174,0x0003003e,
|
||||
0x0000019c,0x0000019d,0x00050039,0x00000024,0x0000019e,0x0000002d,0x0000019c,0x0003003e,
|
||||
0x0000019b,0x0000019e,0x0004003d,0x00000022,0x000001a1,0x0000017a,0x0003003e,0x000001a0,
|
||||
0x000001a1,0x00050039,0x00000024,0x000001a2,0x00000027,0x000001a0,0x0003003e,0x0000019f,
|
||||
0x000001a2,0x0004003d,0x00000022,0x000001a5,0x0000017a,0x0003003e,0x000001a4,0x000001a5,
|
||||
0x00050039,0x00000024,0x000001a6,0x0000002a,0x000001a4,0x0003003e,0x000001a3,0x000001a6,
|
||||
0x0004003d,0x00000022,0x000001a9,0x0000017a,0x0003003e,0x000001a8,0x000001a9,0x00050039,
|
||||
0x00000024,0x000001aa,0x0000002d,0x000001a8,0x0003003e,0x000001a7,0x000001aa,0x0004003d,
|
||||
0x00000022,0x000001ad,0x00000180,0x0003003e,0x000001ac,0x000001ad,0x00050039,0x00000024,
|
||||
0x000001ae,0x00000027,0x000001ac,0x0003003e,0x000001ab,0x000001ae,0x0004003d,0x00000022,
|
||||
0x000001b1,0x00000180,0x0003003e,0x000001b0,0x000001b1,0x00050039,0x00000024,0x000001b2,
|
||||
0x0000002a,0x000001b0,0x0003003e,0x000001af,0x000001b2,0x0004003d,0x00000022,0x000001b5,
|
||||
0x00000180,0x0003003e,0x000001b4,0x000001b5,0x00050039,0x00000024,0x000001b6,0x0000002d,
|
||||
0x000001b4,0x0003003e,0x000001b3,0x000001b6,0x0004003d,0x00000024,0x000001b8,0x0000018f,
|
||||
0x00050085,0x00000024,0x000001bb,0x000001b8,0x000001ba,0x0004003d,0x00000024,0x000001bc,
|
||||
0x00000187,0x00050085,0x00000024,0x000001bd,0x000001bc,0x000001ba,0x0004003d,0x00000024,
|
||||
0x000001be,0x0000018b,0x00050081,0x00000024,0x000001bf,0x000001bd,0x000001be,0x00050081,
|
||||
0x00000024,0x000001c0,0x000001bb,0x000001bf,0x0003003e,0x000001b7,0x000001c0,0x0004003d,
|
||||
0x00000024,0x000001c2,0x0000019b,0x00050085,0x00000024,0x000001c3,0x000001c2,0x000001ba,
|
||||
0x0004003d,0x00000024,0x000001c4,0x00000193,0x00050085,0x00000024,0x000001c5,0x000001c4,
|
||||
0x000001ba,0x0004003d,0x00000024,0x000001c6,0x00000197,0x00050081,0x00000024,0x000001c7,
|
||||
0x000001c5,0x000001c6,0x00050081,0x00000024,0x000001c8,0x000001c3,0x000001c7,0x0003003e,
|
||||
0x000001c1,0x000001c8,0x0004003d,0x00000024,0x000001ca,0x000001a7,0x00050085,0x00000024,
|
||||
0x000001cb,0x000001ca,0x000001ba,0x0004003d,0x00000024,0x000001cc,0x0000019f,0x00050085,
|
||||
0x00000024,0x000001cd,0x000001cc,0x000001ba,0x0004003d,0x00000024,0x000001ce,0x000001a3,
|
||||
0x00050081,0x00000024,0x000001cf,0x000001cd,0x000001ce,0x00050081,0x00000024,0x000001d0,
|
||||
0x000001cb,0x000001cf,0x0003003e,0x000001c9,0x000001d0,0x0004003d,0x00000024,0x000001d2,
|
||||
0x000001b3,0x00050085,0x00000024,0x000001d3,0x000001d2,0x000001ba,0x0004003d,0x00000024,
|
||||
0x000001d4,0x000001ab,0x00050085,0x00000024,0x000001d5,0x000001d4,0x000001ba,0x0004003d,
|
||||
0x00000024,0x000001d6,0x000001af,0x00050081,0x00000024,0x000001d7,0x000001d5,0x000001d6,
|
||||
0x00050081,0x00000024,0x000001d8,0x000001d3,0x000001d7,0x0003003e,0x000001d1,0x000001d8,
|
||||
0x00050041,0x00000007,0x000001da,0x000001b7,0x00000091,0x0004003d,0x00000006,0x000001db,
|
||||
0x000001da,0x0003003e,0x000001d9,0x000001db,0x00050041,0x00000007,0x000001dd,0x000001b7,
|
||||
0x00000097,0x0004003d,0x00000006,0x000001de,0x000001dd,0x0003003e,0x000001dc,0x000001de,
|
||||
0x00050041,0x00000007,0x000001e0,0x000001c1,0x00000091,0x0004003d,0x00000006,0x000001e1,
|
||||
0x000001e0,0x0003003e,0x000001df,0x000001e1,0x00050041,0x00000007,0x000001e3,0x000001c1,
|
||||
0x00000097,0x0004003d,0x00000006,0x000001e4,0x000001e3,0x0003003e,0x000001e2,0x000001e4,
|
||||
0x00050041,0x00000007,0x000001e7,0x000001c1,0x000001e6,0x0004003d,0x00000006,0x000001e8,
|
||||
0x000001e7,0x0003003e,0x000001e5,0x000001e8,0x00050041,0x00000007,0x000001eb,0x000001c1,
|
||||
0x000001ea,0x0004003d,0x00000006,0x000001ec,0x000001eb,0x0003003e,0x000001e9,0x000001ec,
|
||||
0x00050041,0x00000007,0x000001ee,0x000001c9,0x00000091,0x0004003d,0x00000006,0x000001ef,
|
||||
0x000001ee,0x0003003e,0x000001ed,0x000001ef,0x00050041,0x00000007,0x000001f1,0x000001c9,
|
||||
0x00000097,0x0004003d,0x00000006,0x000001f2,0x000001f1,0x0003003e,0x000001f0,0x000001f2,
|
||||
0x00050041,0x00000007,0x000001f4,0x000001c9,0x000001e6,0x0004003d,0x00000006,0x000001f5,
|
||||
0x000001f4,0x0003003e,0x000001f3,0x000001f5,0x00050041,0x00000007,0x000001f7,0x000001c9,
|
||||
0x000001ea,0x0004003d,0x00000006,0x000001f8,0x000001f7,0x0003003e,0x000001f6,0x000001f8,
|
||||
0x00050041,0x00000007,0x000001fa,0x000001d1,0x000001e6,0x0004003d,0x00000006,0x000001fb,
|
||||
0x000001fa,0x0003003e,0x000001f9,0x000001fb,0x00050041,0x00000007,0x000001fd,0x000001d1,
|
||||
0x000001ea,0x0004003d,0x00000006,0x000001fe,0x000001fd,0x0003003e,0x000001fc,0x000001fe,
|
||||
0x0003003e,0x000001ff,0x00000200,0x0003003e,0x00000201,0x00000067,0x0004003d,0x00000022,
|
||||
0x00000205,0x000001ff,0x0003003e,0x00000204,0x00000205,0x0004003d,0x00000006,0x00000207,
|
||||
0x00000201,0x0003003e,0x00000206,0x00000207,0x0004003d,0x00000022,0x00000209,0x00000159,
|
||||
0x0003003e,0x00000208,0x00000209,0x0003003e,0x0000020a,0x00000202,0x0003003e,0x0000020b,
|
||||
0x00000203,0x0003003e,0x0000020c,0x00000203,0x0003003e,0x0000020d,0x00000203,0x0004003d,
|
||||
0x00000006,0x0000020f,0x000001d9,0x0003003e,0x0000020e,0x0000020f,0x0004003d,0x00000006,
|
||||
0x00000211,0x000001e9,0x0003003e,0x00000210,0x00000211,0x0004003d,0x00000006,0x00000213,
|
||||
0x000001e5,0x0003003e,0x00000212,0x00000213,0x0004003d,0x00000006,0x00000215,0x000001f6,
|
||||
0x0003003e,0x00000214,0x00000215,0x0004003d,0x00000006,0x00000217,0x000001e2,0x0003003e,
|
||||
0x00000216,0x00000217,0x00100039,0x00000002,0x00000218,0x00000049,0x00000204,0x00000206,
|
||||
0x00000208,0x0000020a,0x0000020b,0x0000020c,0x0000020d,0x0000020e,0x00000210,0x00000212,
|
||||
0x00000214,0x00000216,0x0004003d,0x00000022,0x00000219,0x00000204,0x0003003e,0x000001ff,
|
||||
0x00000219,0x0004003d,0x00000006,0x0000021a,0x00000206,0x0003003e,0x00000201,0x0000021a,
|
||||
0x0004003d,0x00000022,0x0000021c,0x000001ff,0x0003003e,0x0000021b,0x0000021c,0x0004003d,
|
||||
0x00000006,0x0000021e,0x00000201,0x0003003e,0x0000021d,0x0000021e,0x0004003d,0x00000022,
|
||||
0x00000220,0x00000159,0x0003003e,0x0000021f,0x00000220,0x0003003e,0x00000221,0x00000203,
|
||||
0x0003003e,0x00000222,0x00000202,0x0003003e,0x00000223,0x00000203,0x0003003e,0x00000224,
|
||||
0x00000203,0x0004003d,0x00000006,0x00000226,0x000001dc,0x0003003e,0x00000225,0x00000226,
|
||||
0x0004003d,0x00000006,0x00000228,0x000001e5,0x0003003e,0x00000227,0x00000228,0x0004003d,
|
||||
0x00000006,0x0000022a,0x000001f6,0x0003003e,0x00000229,0x0000022a,0x0004003d,0x00000006,
|
||||
0x0000022c,0x000001f3,0x0003003e,0x0000022b,0x0000022c,0x0004003d,0x00000006,0x0000022e,
|
||||
0x000001ed,0x0003003e,0x0000022d,0x0000022e,0x00100039,0x00000002,0x0000022f,0x00000049,
|
||||
0x0000021b,0x0000021d,0x0000021f,0x00000221,0x00000222,0x00000223,0x00000224,0x00000225,
|
||||
0x00000227,0x00000229,0x0000022b,0x0000022d,0x0004003d,0x00000022,0x00000230,0x0000021b,
|
||||
0x0003003e,0x000001ff,0x00000230,0x0004003d,0x00000006,0x00000231,0x0000021d,0x0003003e,
|
||||
0x00000201,0x00000231,0x0004003d,0x00000022,0x00000233,0x000001ff,0x0003003e,0x00000232,
|
||||
0x00000233,0x0004003d,0x00000006,0x00000235,0x00000201,0x0003003e,0x00000234,0x00000235,
|
||||
0x0004003d,0x00000022,0x00000237,0x00000159,0x0003003e,0x00000236,0x00000237,0x0003003e,
|
||||
0x00000238,0x00000203,0x0003003e,0x00000239,0x00000203,0x0003003e,0x0000023a,0x00000202,
|
||||
0x0003003e,0x0000023b,0x00000203,0x0004003d,0x00000006,0x0000023d,0x000001e5,0x0003003e,
|
||||
0x0000023c,0x0000023d,0x0004003d,0x00000006,0x0000023f,0x000001df,0x0003003e,0x0000023e,
|
||||
0x0000023f,0x0004003d,0x00000006,0x00000241,0x000001e2,0x0003003e,0x00000240,0x00000241,
|
||||
0x0004003d,0x00000006,0x00000243,0x000001ed,0x0003003e,0x00000242,0x00000243,0x0004003d,
|
||||
0x00000006,0x00000245,0x000001fc,0x0003003e,0x00000244,0x00000245,0x00100039,0x00000002,
|
||||
0x00000246,0x00000049,0x00000232,0x00000234,0x00000236,0x00000238,0x00000239,0x0000023a,
|
||||
0x0000023b,0x0000023c,0x0000023e,0x00000240,0x00000242,0x00000244,0x0004003d,0x00000022,
|
||||
0x00000247,0x00000232,0x0003003e,0x000001ff,0x00000247,0x0004003d,0x00000006,0x00000248,
|
||||
0x00000234,0x0003003e,0x00000201,0x00000248,0x0004003d,0x00000022,0x0000024a,0x000001ff,
|
||||
0x0003003e,0x00000249,0x0000024a,0x0004003d,0x00000006,0x0000024c,0x00000201,0x0003003e,
|
||||
0x0000024b,0x0000024c,0x0004003d,0x00000022,0x0000024e,0x00000159,0x0003003e,0x0000024d,
|
||||
0x0000024e,0x0003003e,0x0000024f,0x00000203,0x0003003e,0x00000250,0x00000203,0x0003003e,
|
||||
0x00000251,0x00000203,0x0003003e,0x00000252,0x00000202,0x0004003d,0x00000006,0x00000254,
|
||||
0x000001f6,0x0003003e,0x00000253,0x00000254,0x0004003d,0x00000006,0x00000256,0x000001e2,
|
||||
0x0003003e,0x00000255,0x00000256,0x0004003d,0x00000006,0x00000258,0x000001ed,0x0003003e,
|
||||
0x00000257,0x00000258,0x0004003d,0x00000006,0x0000025a,0x000001f0,0x0003003e,0x00000259,
|
||||
0x0000025a,0x0004003d,0x00000006,0x0000025c,0x000001f9,0x0003003e,0x0000025b,0x0000025c,
|
||||
0x00100039,0x00000002,0x0000025d,0x00000049,0x00000249,0x0000024b,0x0000024d,0x0000024f,
|
||||
0x00000250,0x00000251,0x00000252,0x00000253,0x00000255,0x00000257,0x00000259,0x0000025b,
|
||||
0x0004003d,0x00000022,0x0000025e,0x00000249,0x0003003e,0x000001ff,0x0000025e,0x0004003d,
|
||||
0x00000006,0x0000025f,0x0000024b,0x0003003e,0x00000201,0x0000025f,0x0004003d,0x00000022,
|
||||
0x00000261,0x000001ff,0x0004003d,0x00000022,0x00000262,0x000001ff,0x00050085,0x00000022,
|
||||
0x00000263,0x00000261,0x00000262,0x0003003e,0x00000260,0x00000263,0x00050041,0x00000007,
|
||||
0x00000265,0x00000260,0x00000091,0x0004003d,0x00000006,0x00000266,0x00000265,0x00050041,
|
||||
0x00000007,0x00000267,0x00000260,0x00000097,0x0004003d,0x00000006,0x00000268,0x00000267,
|
||||
0x00050081,0x00000006,0x00000269,0x00000266,0x00000268,0x0003003e,0x00000264,0x00000269,
|
||||
0x0004003d,0x00000006,0x0000026b,0x00000264,0x000500b8,0x0000003a,0x0000026d,0x0000026b,
|
||||
0x0000026c,0x0003003e,0x0000026a,0x0000026d,0x0004003d,0x00000006,0x0000026f,0x00000264,
|
||||
0x0003003e,0x0000026e,0x0000026f,0x00050039,0x00000006,0x00000270,0x00000010,0x0000026e,
|
||||
0x0003003e,0x00000264,0x00000270,0x0004003d,0x0000003a,0x00000271,0x0000026a,0x0004003d,
|
||||
0x00000006,0x00000272,0x00000264,0x000600a9,0x00000006,0x00000273,0x00000271,0x00000059,
|
||||
0x00000272,0x0003003e,0x00000264,0x00000273,0x0004003d,0x0000003a,0x00000274,0x0000026a,
|
||||
0x000300f7,0x00000277,0x00000000,0x000400fa,0x00000274,0x00000276,0x00000278,0x000200f8,
|
||||
0x00000276,0x0003003e,0x00000275,0x00000059,0x000200f9,0x00000277,0x000200f8,0x00000278,
|
||||
0x00050041,0x00000007,0x00000279,0x000001ff,0x00000091,0x0004003d,0x00000006,0x0000027a,
|
||||
0x00000279,0x0003003e,0x00000275,0x0000027a,0x000200f9,0x00000277,0x000200f8,0x00000277,
|
||||
0x0004003d,0x00000006,0x0000027b,0x00000275,0x00050041,0x00000007,0x0000027c,0x000001ff,
|
||||
0x00000091,0x0003003e,0x0000027c,0x0000027b,0x0004003d,0x00000006,0x0000027d,0x00000264,
|
||||
0x00050050,0x00000022,0x0000027e,0x0000027d,0x0000027d,0x0004003d,0x00000022,0x0000027f,
|
||||
0x000001ff,0x00050085,0x00000022,0x00000280,0x0000027f,0x0000027e,0x0003003e,0x000001ff,
|
||||
0x00000280,0x0004003d,0x00000006,0x00000281,0x00000201,0x00050085,0x00000006,0x00000282,
|
||||
0x00000281,0x000001b9,0x0003003e,0x00000201,0x00000282,0x0004003d,0x00000006,0x00000283,
|
||||
0x00000201,0x0004003d,0x00000006,0x00000284,0x00000201,0x00050085,0x00000006,0x00000285,
|
||||
0x00000284,0x00000283,0x0003003e,0x00000201,0x00000285,0x00050041,0x00000007,0x00000287,
|
||||
0x000001ff,0x00000091,0x0004003d,0x00000006,0x00000288,0x00000287,0x00050041,0x00000007,
|
||||
0x00000289,0x000001ff,0x00000091,0x0004003d,0x00000006,0x0000028a,0x00000289,0x00050085,
|
||||
0x00000006,0x0000028b,0x00000288,0x0000028a,0x00050041,0x00000007,0x0000028c,0x000001ff,
|
||||
0x00000097,0x0004003d,0x00000006,0x0000028d,0x0000028c,0x00050041,0x00000007,0x0000028e,
|
||||
0x000001ff,0x00000097,0x0004003d,0x00000006,0x0000028f,0x0000028e,0x00050085,0x00000006,
|
||||
0x00000290,0x0000028d,0x0000028f,0x00050081,0x00000006,0x00000291,0x0000028b,0x00000290,
|
||||
0x00050041,0x00000007,0x00000292,0x000001ff,0x00000091,0x0004003d,0x00000006,0x00000293,
|
||||
0x00000292,0x0006000c,0x00000006,0x00000294,0x00000001,0x00000004,0x00000293,0x00050041,
|
||||
0x00000007,0x00000295,0x000001ff,0x00000097,0x0004003d,0x00000006,0x00000296,0x00000295,
|
||||
0x0006000c,0x00000006,0x00000297,0x00000001,0x00000004,0x00000296,0x0007000c,0x00000006,
|
||||
0x00000298,0x00000001,0x00000028,0x00000294,0x00000297,0x0003003e,0x00000299,0x00000298,
|
||||
0x00050039,0x00000006,0x0000029a,0x0000000d,0x00000299,0x00050085,0x00000006,0x0000029b,
|
||||
0x00000291,0x0000029a,0x0003003e,0x00000286,0x0000029b,0x0004003d,0x00000006,0x0000029d,
|
||||
0x00000286,0x00050083,0x00000006,0x0000029e,0x0000029d,0x00000059,0x0004003d,0x00000006,
|
||||
0x0000029f,0x00000201,0x00050085,0x00000006,0x000002a0,0x0000029e,0x0000029f,0x00050081,
|
||||
0x00000006,0x000002a1,0x00000059,0x000002a0,0x0004003d,0x00000006,0x000002a3,0x00000201,
|
||||
0x00050085,0x00000006,0x000002a4,0x000002a2,0x000002a3,0x00050081,0x00000006,0x000002a5,
|
||||
0x00000059,0x000002a4,0x00050050,0x00000022,0x000002a6,0x000002a1,0x000002a5,0x0003003e,
|
||||
0x0000029c,0x000002a6,0x0004003d,0x00000006,0x000002a9,0x00000201,0x00050085,0x00000006,
|
||||
0x000002aa,0x000002a8,0x000002a9,0x00050081,0x00000006,0x000002ab,0x000001b9,0x000002aa,
|
||||
0x0003003e,0x000002a7,0x000002ab,0x0004003d,0x00000006,0x000002ae,0x000002a7,0x0003003e,
|
||||
0x000002ad,0x000002ae,0x00050039,0x00000006,0x000002af,0x0000000d,0x000002ad,0x0003003e,
|
||||
0x000002ac,0x000002af,0x00050041,0x00000007,0x000002b1,0x00000193,0x000001e6,0x0004003d,
|
||||
0x00000006,0x000002b2,0x000002b1,0x00050041,0x00000007,0x000002b3,0x00000197,0x000001e6,
|
||||
0x0004003d,0x00000006,0x000002b4,0x000002b3,0x00050041,0x00000007,0x000002b5,0x0000019b,
|
||||
0x000001e6,0x0004003d,0x00000006,0x000002b6,0x000002b5,0x00060050,0x00000015,0x000002b7,
|
||||
0x000002b2,0x000002b4,0x000002b6,0x00050041,0x00000007,0x000002b8,0x0000019f,0x000001ea,
|
||||
0x0004003d,0x00000006,0x000002b9,0x000002b8,0x00050041,0x00000007,0x000002ba,0x000001a3,
|
||||
0x000001ea,0x0004003d,0x00000006,0x000002bb,0x000002ba,0x00050041,0x00000007,0x000002bc,
|
||||
0x000001a7,0x000001ea,0x0004003d,0x00000006,0x000002bd,0x000002bc,0x00060050,0x00000015,
|
||||
0x000002be,0x000002b9,0x000002bb,0x000002bd,0x00050041,0x00000007,0x000002bf,0x00000193,
|
||||
0x00000097,0x0004003d,0x00000006,0x000002c0,0x000002bf,0x00050041,0x00000007,0x000002c1,
|
||||
0x00000197,0x00000097,0x0004003d,0x00000006,0x000002c2,0x000002c1,0x00050041,0x00000007,
|
||||
0x000002c3,0x0000019b,0x00000097,0x0004003d,0x00000006,0x000002c4,0x000002c3,0x00060050,
|
||||
0x00000015,0x000002c5,0x000002c0,0x000002c2,0x000002c4,0x0003003e,0x000002c6,0x000002b7,
|
||||
0x0003003e,0x000002c7,0x000002be,0x0003003e,0x000002c8,0x000002c5,0x00070039,0x00000015,
|
||||
0x000002c9,0x0000001b,0x000002c6,0x000002c7,0x000002c8,0x00050041,0x00000007,0x000002ca,
|
||||
0x0000019f,0x00000091,0x0004003d,0x00000006,0x000002cb,0x000002ca,0x00050041,0x00000007,
|
||||
0x000002cc,0x000001a3,0x00000091,0x0004003d,0x00000006,0x000002cd,0x000002cc,0x00050041,
|
||||
0x00000007,0x000002ce,0x000001a7,0x00000091,0x0004003d,0x00000006,0x000002cf,0x000002ce,
|
||||
0x00060050,0x00000015,0x000002d0,0x000002cb,0x000002cd,0x000002cf,0x0007000c,0x00000015,
|
||||
0x000002d1,0x00000001,0x00000025,0x000002c9,0x000002d0,0x0003003e,0x000002b0,0x000002d1,
|
||||
0x00050041,0x00000007,0x000002d3,0x00000193,0x000001e6,0x0004003d,0x00000006,0x000002d4,
|
||||
0x000002d3,0x00050041,0x00000007,0x000002d5,0x00000197,0x000001e6,0x0004003d,0x00000006,
|
||||
0x000002d6,0x000002d5,0x00050041,0x00000007,0x000002d7,0x0000019b,0x000001e6,0x0004003d,
|
||||
0x00000006,0x000002d8,0x000002d7,0x00060050,0x00000015,0x000002d9,0x000002d4,0x000002d6,
|
||||
0x000002d8,0x00050041,0x00000007,0x000002da,0x0000019f,0x000001ea,0x0004003d,0x00000006,
|
||||
0x000002db,0x000002da,0x00050041,0x00000007,0x000002dc,0x000001a3,0x000001ea,0x0004003d,
|
||||
0x00000006,0x000002dd,0x000002dc,0x00050041,0x00000007,0x000002de,0x000001a7,0x000001ea,
|
||||
0x0004003d,0x00000006,0x000002df,0x000002de,0x00060050,0x00000015,0x000002e0,0x000002db,
|
||||
0x000002dd,0x000002df,0x00050041,0x00000007,0x000002e1,0x00000193,0x00000097,0x0004003d,
|
||||
0x00000006,0x000002e2,0x000002e1,0x00050041,0x00000007,0x000002e3,0x00000197,0x00000097,
|
||||
0x0004003d,0x00000006,0x000002e4,0x000002e3,0x00050041,0x00000007,0x000002e5,0x0000019b,
|
||||
0x00000097,0x0004003d,0x00000006,0x000002e6,0x000002e5,0x00060050,0x00000015,0x000002e7,
|
||||
0x000002e2,0x000002e4,0x000002e6,0x0003003e,0x000002e8,0x000002d9,0x0003003e,0x000002e9,
|
||||
0x000002e0,0x0003003e,0x000002ea,0x000002e7,0x00070039,0x00000015,0x000002eb,0x00000020,
|
||||
0x000002e8,0x000002e9,0x000002ea,0x00050041,0x00000007,0x000002ec,0x0000019f,0x00000091,
|
||||
0x0004003d,0x00000006,0x000002ed,0x000002ec,0x00050041,0x00000007,0x000002ee,0x000001a3,
|
||||
0x00000091,0x0004003d,0x00000006,0x000002ef,0x000002ee,0x00050041,0x00000007,0x000002f0,
|
||||
0x000001a7,0x00000091,0x0004003d,0x00000006,0x000002f1,0x000002f0,0x00060050,0x00000015,
|
||||
0x000002f2,0x000002ed,0x000002ef,0x000002f1,0x0007000c,0x00000015,0x000002f3,0x00000001,
|
||||
0x00000028,0x000002eb,0x000002f2,0x0003003e,0x000002d2,0x000002f3,0x0003003e,0x000002f4,
|
||||
0x000002f5,0x0003003e,0x000002f6,0x00000067,0x0004003d,0x00000022,0x000002f8,0x00000159,
|
||||
0x00050083,0x00000022,0x000002f9,0x000002f7,0x000002f8,0x00050041,0x00000007,0x000002fa,
|
||||
0x00000187,0x00000091,0x0004003d,0x00000006,0x000002fb,0x000002fa,0x00050041,0x00000007,
|
||||
0x000002fc,0x0000018b,0x00000091,0x0004003d,0x00000006,0x000002fd,0x000002fc,0x00050041,
|
||||
0x00000007,0x000002fe,0x0000018f,0x00000091,0x0004003d,0x00000006,0x000002ff,0x000002fe,
|
||||
0x00060050,0x00000015,0x00000300,0x000002fb,0x000002fd,0x000002ff,0x0004003d,0x00000015,
|
||||
0x00000302,0x000002f4,0x0003003e,0x00000301,0x00000302,0x0004003d,0x00000006,0x00000304,
|
||||
0x000002f6,0x0003003e,0x00000303,0x00000304,0x0003003e,0x00000305,0x000002f9,0x0004003d,
|
||||
0x00000022,0x00000307,0x000001ff,0x0003003e,0x00000306,0x00000307,0x0004003d,0x00000022,
|
||||
0x00000309,0x0000029c,0x0003003e,0x00000308,0x00000309,0x0004003d,0x00000006,0x0000030b,
|
||||
0x000002a7,0x0003003e,0x0000030a,0x0000030b,0x0004003d,0x00000006,0x0000030d,0x000002ac,
|
||||
0x0003003e,0x0000030c,0x0000030d,0x0003003e,0x0000030e,0x00000300,0x000c0039,0x00000002,
|
||||
0x0000030f,0x00000038,0x00000301,0x00000303,0x00000305,0x00000306,0x00000308,0x0000030a,
|
||||
0x0000030c,0x0000030e,0x0004003d,0x00000015,0x00000310,0x00000301,0x0003003e,0x000002f4,
|
||||
0x00000310,0x0004003d,0x00000006,0x00000311,0x00000303,0x0003003e,0x000002f6,0x00000311,
|
||||
0x0004003d,0x00000022,0x00000313,0x00000159,0x00050083,0x00000022,0x00000314,0x00000312,
|
||||
0x00000313,0x00050041,0x00000007,0x00000315,0x00000187,0x00000097,0x0004003d,0x00000006,
|
||||
0x00000316,0x00000315,0x00050041,0x00000007,0x00000317,0x0000018b,0x00000097,0x0004003d,
|
||||
0x00000006,0x00000318,0x00000317,0x00050041,0x00000007,0x00000319,0x0000018f,0x00000097,
|
||||
0x0004003d,0x00000006,0x0000031a,0x00000319,0x00060050,0x00000015,0x0000031b,0x00000316,
|
||||
0x00000318,0x0000031a,0x0004003d,0x00000015,0x0000031d,0x000002f4,0x0003003e,0x0000031c,
|
||||
0x0000031d,0x0004003d,0x00000006,0x0000031f,0x000002f6,0x0003003e,0x0000031e,0x0000031f,
|
||||
0x0003003e,0x00000320,0x00000314,0x0004003d,0x00000022,0x00000322,0x000001ff,0x0003003e,
|
||||
0x00000321,0x00000322,0x0004003d,0x00000022,0x00000324,0x0000029c,0x0003003e,0x00000323,
|
||||
0x00000324,0x0004003d,0x00000006,0x00000326,0x000002a7,0x0003003e,0x00000325,0x00000326,
|
||||
0x0004003d,0x00000006,0x00000328,0x000002ac,0x0003003e,0x00000327,0x00000328,0x0003003e,
|
||||
0x00000329,0x0000031b,0x000c0039,0x00000002,0x0000032a,0x00000038,0x0000031c,0x0000031e,
|
||||
0x00000320,0x00000321,0x00000323,0x00000325,0x00000327,0x00000329,0x0004003d,0x00000015,
|
||||
0x0000032b,0x0000031c,0x0003003e,0x000002f4,0x0000032b,0x0004003d,0x00000006,0x0000032c,
|
||||
0x0000031e,0x0003003e,0x000002f6,0x0000032c,0x0004003d,0x00000022,0x0000032e,0x00000159,
|
||||
0x00050083,0x00000022,0x0000032f,0x0000032d,0x0000032e,0x00050041,0x00000007,0x00000330,
|
||||
0x00000193,0x00000091,0x0004003d,0x00000006,0x00000331,0x00000330,0x00050041,0x00000007,
|
||||
0x00000332,0x00000197,0x00000091,0x0004003d,0x00000006,0x00000333,0x00000332,0x00050041,
|
||||
0x00000007,0x00000334,0x0000019b,0x00000091,0x0004003d,0x00000006,0x00000335,0x00000334,
|
||||
0x00060050,0x00000015,0x00000336,0x00000331,0x00000333,0x00000335,0x0004003d,0x00000015,
|
||||
0x00000338,0x000002f4,0x0003003e,0x00000337,0x00000338,0x0004003d,0x00000006,0x0000033a,
|
||||
0x000002f6,0x0003003e,0x00000339,0x0000033a,0x0003003e,0x0000033b,0x0000032f,0x0004003d,
|
||||
0x00000022,0x0000033d,0x000001ff,0x0003003e,0x0000033c,0x0000033d,0x0004003d,0x00000022,
|
||||
0x0000033f,0x0000029c,0x0003003e,0x0000033e,0x0000033f,0x0004003d,0x00000006,0x00000341,
|
||||
0x000002a7,0x0003003e,0x00000340,0x00000341,0x0004003d,0x00000006,0x00000343,0x000002ac,
|
||||
0x0003003e,0x00000342,0x00000343,0x0003003e,0x00000344,0x00000336,0x000c0039,0x00000002,
|
||||
0x00000345,0x00000038,0x00000337,0x00000339,0x0000033b,0x0000033c,0x0000033e,0x00000340,
|
||||
0x00000342,0x00000344,0x0004003d,0x00000015,0x00000346,0x00000337,0x0003003e,0x000002f4,
|
||||
0x00000346,0x0004003d,0x00000006,0x00000347,0x00000339,0x0003003e,0x000002f6,0x00000347,
|
||||
0x0004003d,0x00000022,0x00000349,0x00000159,0x00050083,0x00000022,0x0000034a,0x00000348,
|
||||
0x00000349,0x00050041,0x00000007,0x0000034b,0x00000193,0x00000097,0x0004003d,0x00000006,
|
||||
0x0000034c,0x0000034b,0x00050041,0x00000007,0x0000034d,0x00000197,0x00000097,0x0004003d,
|
||||
0x00000006,0x0000034e,0x0000034d,0x00050041,0x00000007,0x0000034f,0x0000019b,0x00000097,
|
||||
0x0004003d,0x00000006,0x00000350,0x0000034f,0x00060050,0x00000015,0x00000351,0x0000034c,
|
||||
0x0000034e,0x00000350,0x0004003d,0x00000015,0x00000353,0x000002f4,0x0003003e,0x00000352,
|
||||
0x00000353,0x0004003d,0x00000006,0x00000355,0x000002f6,0x0003003e,0x00000354,0x00000355,
|
||||
0x0003003e,0x00000356,0x0000034a,0x0004003d,0x00000022,0x00000358,0x000001ff,0x0003003e,
|
||||
0x00000357,0x00000358,0x0004003d,0x00000022,0x0000035a,0x0000029c,0x0003003e,0x00000359,
|
||||
0x0000035a,0x0004003d,0x00000006,0x0000035c,0x000002a7,0x0003003e,0x0000035b,0x0000035c,
|
||||
0x0004003d,0x00000006,0x0000035e,0x000002ac,0x0003003e,0x0000035d,0x0000035e,0x0003003e,
|
||||
0x0000035f,0x00000351,0x000c0039,0x00000002,0x00000360,0x00000038,0x00000352,0x00000354,
|
||||
0x00000356,0x00000357,0x00000359,0x0000035b,0x0000035d,0x0000035f,0x0004003d,0x00000015,
|
||||
0x00000361,0x00000352,0x0003003e,0x000002f4,0x00000361,0x0004003d,0x00000006,0x00000362,
|
||||
0x00000354,0x0003003e,0x000002f6,0x00000362,0x0004003d,0x00000022,0x00000363,0x00000159,
|
||||
0x00050083,0x00000022,0x00000364,0x00000200,0x00000363,0x00050041,0x00000007,0x00000365,
|
||||
0x00000193,0x000001e6,0x0004003d,0x00000006,0x00000366,0x00000365,0x00050041,0x00000007,
|
||||
0x00000367,0x00000197,0x000001e6,0x0004003d,0x00000006,0x00000368,0x00000367,0x00050041,
|
||||
0x00000007,0x00000369,0x0000019b,0x000001e6,0x0004003d,0x00000006,0x0000036a,0x00000369,
|
||||
0x00060050,0x00000015,0x0000036b,0x00000366,0x00000368,0x0000036a,0x0004003d,0x00000015,
|
||||
0x0000036d,0x000002f4,0x0003003e,0x0000036c,0x0000036d,0x0004003d,0x00000006,0x0000036f,
|
||||
0x000002f6,0x0003003e,0x0000036e,0x0000036f,0x0003003e,0x00000370,0x00000364,0x0004003d,
|
||||
0x00000022,0x00000372,0x000001ff,0x0003003e,0x00000371,0x00000372,0x0004003d,0x00000022,
|
||||
0x00000374,0x0000029c,0x0003003e,0x00000373,0x00000374,0x0004003d,0x00000006,0x00000376,
|
||||
0x000002a7,0x0003003e,0x00000375,0x00000376,0x0004003d,0x00000006,0x00000378,0x000002ac,
|
||||
0x0003003e,0x00000377,0x00000378,0x0003003e,0x00000379,0x0000036b,0x000c0039,0x00000002,
|
||||
0x0000037a,0x00000038,0x0000036c,0x0000036e,0x00000370,0x00000371,0x00000373,0x00000375,
|
||||
0x00000377,0x00000379,0x0004003d,0x00000015,0x0000037b,0x0000036c,0x0003003e,0x000002f4,
|
||||
0x0000037b,0x0004003d,0x00000006,0x0000037c,0x0000036e,0x0003003e,0x000002f6,0x0000037c,
|
||||
0x0004003d,0x00000022,0x0000037e,0x00000159,0x00050083,0x00000022,0x0000037f,0x0000037d,
|
||||
0x0000037e,0x00050041,0x00000007,0x00000380,0x00000193,0x000001ea,0x0004003d,0x00000006,
|
||||
0x00000381,0x00000380,0x00050041,0x00000007,0x00000382,0x00000197,0x000001ea,0x0004003d,
|
||||
0x00000006,0x00000383,0x00000382,0x00050041,0x00000007,0x00000384,0x0000019b,0x000001ea,
|
||||
0x0004003d,0x00000006,0x00000385,0x00000384,0x00060050,0x00000015,0x00000386,0x00000381,
|
||||
0x00000383,0x00000385,0x0004003d,0x00000015,0x00000388,0x000002f4,0x0003003e,0x00000387,
|
||||
0x00000388,0x0004003d,0x00000006,0x0000038a,0x000002f6,0x0003003e,0x00000389,0x0000038a,
|
||||
0x0003003e,0x0000038b,0x0000037f,0x0004003d,0x00000022,0x0000038d,0x000001ff,0x0003003e,
|
||||
0x0000038c,0x0000038d,0x0004003d,0x00000022,0x0000038f,0x0000029c,0x0003003e,0x0000038e,
|
||||
0x0000038f,0x0004003d,0x00000006,0x00000391,0x000002a7,0x0003003e,0x00000390,0x00000391,
|
||||
0x0004003d,0x00000006,0x00000393,0x000002ac,0x0003003e,0x00000392,0x00000393,0x0003003e,
|
||||
0x00000394,0x00000386,0x000c0039,0x00000002,0x00000395,0x00000038,0x00000387,0x00000389,
|
||||
0x0000038b,0x0000038c,0x0000038e,0x00000390,0x00000392,0x00000394,0x0004003d,0x00000015,
|
||||
0x00000396,0x00000387,0x0003003e,0x000002f4,0x00000396,0x0004003d,0x00000006,0x00000397,
|
||||
0x00000389,0x0003003e,0x000002f6,0x00000397,0x0004003d,0x00000022,0x00000399,0x00000159,
|
||||
0x00050083,0x00000022,0x0000039a,0x00000398,0x00000399,0x00050041,0x00000007,0x0000039b,
|
||||
0x0000019f,0x00000091,0x0004003d,0x00000006,0x0000039c,0x0000039b,0x00050041,0x00000007,
|
||||
0x0000039d,0x000001a3,0x00000091,0x0004003d,0x00000006,0x0000039e,0x0000039d,0x00050041,
|
||||
0x00000007,0x0000039f,0x000001a7,0x00000091,0x0004003d,0x00000006,0x000003a0,0x0000039f,
|
||||
0x00060050,0x00000015,0x000003a1,0x0000039c,0x0000039e,0x000003a0,0x0004003d,0x00000015,
|
||||
0x000003a3,0x000002f4,0x0003003e,0x000003a2,0x000003a3,0x0004003d,0x00000006,0x000003a5,
|
||||
0x000002f6,0x0003003e,0x000003a4,0x000003a5,0x0003003e,0x000003a6,0x0000039a,0x0004003d,
|
||||
0x00000022,0x000003a8,0x000001ff,0x0003003e,0x000003a7,0x000003a8,0x0004003d,0x00000022,
|
||||
0x000003aa,0x0000029c,0x0003003e,0x000003a9,0x000003aa,0x0004003d,0x00000006,0x000003ac,
|
||||
0x000002a7,0x0003003e,0x000003ab,0x000003ac,0x0004003d,0x00000006,0x000003ae,0x000002ac,
|
||||
0x0003003e,0x000003ad,0x000003ae,0x0003003e,0x000003af,0x000003a1,0x000c0039,0x00000002,
|
||||
0x000003b0,0x00000038,0x000003a2,0x000003a4,0x000003a6,0x000003a7,0x000003a9,0x000003ab,
|
||||
0x000003ad,0x000003af,0x0004003d,0x00000015,0x000003b1,0x000003a2,0x0003003e,0x000002f4,
|
||||
0x000003b1,0x0004003d,0x00000006,0x000003b2,0x000003a4,0x0003003e,0x000002f6,0x000003b2,
|
||||
0x0004003d,0x00000022,0x000003b5,0x00000159,0x00050083,0x00000022,0x000003b6,0x000003b4,
|
||||
0x000003b5,0x00050041,0x00000007,0x000003b7,0x0000019f,0x00000097,0x0004003d,0x00000006,
|
||||
0x000003b8,0x000003b7,0x00050041,0x00000007,0x000003b9,0x000001a3,0x00000097,0x0004003d,
|
||||
0x00000006,0x000003ba,0x000003b9,0x00050041,0x00000007,0x000003bb,0x000001a7,0x00000097,
|
||||
0x0004003d,0x00000006,0x000003bc,0x000003bb,0x00060050,0x00000015,0x000003bd,0x000003b8,
|
||||
0x000003ba,0x000003bc,0x0004003d,0x00000015,0x000003bf,0x000002f4,0x0003003e,0x000003be,
|
||||
0x000003bf,0x0004003d,0x00000006,0x000003c1,0x000002f6,0x0003003e,0x000003c0,0x000003c1,
|
||||
0x0003003e,0x000003c2,0x000003b6,0x0004003d,0x00000022,0x000003c4,0x000001ff,0x0003003e,
|
||||
0x000003c3,0x000003c4,0x0004003d,0x00000022,0x000003c6,0x0000029c,0x0003003e,0x000003c5,
|
||||
0x000003c6,0x0004003d,0x00000006,0x000003c8,0x000002a7,0x0003003e,0x000003c7,0x000003c8,
|
||||
0x0004003d,0x00000006,0x000003ca,0x000002ac,0x0003003e,0x000003c9,0x000003ca,0x0003003e,
|
||||
0x000003cb,0x000003bd,0x000c0039,0x00000002,0x000003cc,0x00000038,0x000003be,0x000003c0,
|
||||
0x000003c2,0x000003c3,0x000003c5,0x000003c7,0x000003c9,0x000003cb,0x0004003d,0x00000015,
|
||||
0x000003cd,0x000003be,0x0003003e,0x000002f4,0x000003cd,0x0004003d,0x00000006,0x000003ce,
|
||||
0x000003c0,0x0003003e,0x000002f6,0x000003ce,0x0004003d,0x00000022,0x000003d0,0x00000159,
|
||||
0x00050083,0x00000022,0x000003d1,0x000003cf,0x000003d0,0x00050041,0x00000007,0x000003d2,
|
||||
0x0000019f,0x000001e6,0x0004003d,0x00000006,0x000003d3,0x000003d2,0x00050041,0x00000007,
|
||||
0x000003d4,0x000001a3,0x000001e6,0x0004003d,0x00000006,0x000003d5,0x000003d4,0x00050041,
|
||||
0x00000007,0x000003d6,0x000001a7,0x000001e6,0x0004003d,0x00000006,0x000003d7,0x000003d6,
|
||||
0x00060050,0x00000015,0x000003d8,0x000003d3,0x000003d5,0x000003d7,0x0004003d,0x00000015,
|
||||
0x000003da,0x000002f4,0x0003003e,0x000003d9,0x000003da,0x0004003d,0x00000006,0x000003dc,
|
||||
0x000002f6,0x0003003e,0x000003db,0x000003dc,0x0003003e,0x000003dd,0x000003d1,0x0004003d,
|
||||
0x00000022,0x000003df,0x000001ff,0x0003003e,0x000003de,0x000003df,0x0004003d,0x00000022,
|
||||
0x000003e1,0x0000029c,0x0003003e,0x000003e0,0x000003e1,0x0004003d,0x00000006,0x000003e3,
|
||||
0x000002a7,0x0003003e,0x000003e2,0x000003e3,0x0004003d,0x00000006,0x000003e5,0x000002ac,
|
||||
0x0003003e,0x000003e4,0x000003e5,0x0003003e,0x000003e6,0x000003d8,0x000c0039,0x00000002,
|
||||
0x000003e7,0x00000038,0x000003d9,0x000003db,0x000003dd,0x000003de,0x000003e0,0x000003e2,
|
||||
0x000003e4,0x000003e6,0x0004003d,0x00000015,0x000003e8,0x000003d9,0x0003003e,0x000002f4,
|
||||
0x000003e8,0x0004003d,0x00000006,0x000003e9,0x000003db,0x0003003e,0x000002f6,0x000003e9,
|
||||
0x0004003d,0x00000022,0x000003eb,0x00000159,0x00050083,0x00000022,0x000003ec,0x000003ea,
|
||||
0x000003eb,0x00050041,0x00000007,0x000003ed,0x0000019f,0x000001ea,0x0004003d,0x00000006,
|
||||
0x000003ee,0x000003ed,0x00050041,0x00000007,0x000003ef,0x000001a3,0x000001ea,0x0004003d,
|
||||
0x00000006,0x000003f0,0x000003ef,0x00050041,0x00000007,0x000003f1,0x000001a7,0x000001ea,
|
||||
0x0004003d,0x00000006,0x000003f2,0x000003f1,0x00060050,0x00000015,0x000003f3,0x000003ee,
|
||||
0x000003f0,0x000003f2,0x0004003d,0x00000015,0x000003f5,0x000002f4,0x0003003e,0x000003f4,
|
||||
0x000003f5,0x0004003d,0x00000006,0x000003f7,0x000002f6,0x0003003e,0x000003f6,0x000003f7,
|
||||
0x0003003e,0x000003f8,0x000003ec,0x0004003d,0x00000022,0x000003fa,0x000001ff,0x0003003e,
|
||||
0x000003f9,0x000003fa,0x0004003d,0x00000022,0x000003fc,0x0000029c,0x0003003e,0x000003fb,
|
||||
0x000003fc,0x0004003d,0x00000006,0x000003fe,0x000002a7,0x0003003e,0x000003fd,0x000003fe,
|
||||
0x0004003d,0x00000006,0x00000400,0x000002ac,0x0003003e,0x000003ff,0x00000400,0x0003003e,
|
||||
0x00000401,0x000003f3,0x000c0039,0x00000002,0x00000402,0x00000038,0x000003f4,0x000003f6,
|
||||
0x000003f8,0x000003f9,0x000003fb,0x000003fd,0x000003ff,0x00000401,0x0004003d,0x00000015,
|
||||
0x00000403,0x000003f4,0x0003003e,0x000002f4,0x00000403,0x0004003d,0x00000006,0x00000404,
|
||||
0x000003f6,0x0003003e,0x000002f6,0x00000404,0x0004003d,0x00000022,0x00000406,0x00000159,
|
||||
0x00050083,0x00000022,0x00000407,0x00000405,0x00000406,0x00050041,0x00000007,0x00000408,
|
||||
0x000001ab,0x000001e6,0x0004003d,0x00000006,0x00000409,0x00000408,0x00050041,0x00000007,
|
||||
0x0000040a,0x000001af,0x000001e6,0x0004003d,0x00000006,0x0000040b,0x0000040a,0x00050041,
|
||||
0x00000007,0x0000040c,0x000001b3,0x000001e6,0x0004003d,0x00000006,0x0000040d,0x0000040c,
|
||||
0x00060050,0x00000015,0x0000040e,0x00000409,0x0000040b,0x0000040d,0x0004003d,0x00000015,
|
||||
0x00000410,0x000002f4,0x0003003e,0x0000040f,0x00000410,0x0004003d,0x00000006,0x00000412,
|
||||
0x000002f6,0x0003003e,0x00000411,0x00000412,0x0003003e,0x00000413,0x00000407,0x0004003d,
|
||||
0x00000022,0x00000415,0x000001ff,0x0003003e,0x00000414,0x00000415,0x0004003d,0x00000022,
|
||||
0x00000417,0x0000029c,0x0003003e,0x00000416,0x00000417,0x0004003d,0x00000006,0x00000419,
|
||||
0x000002a7,0x0003003e,0x00000418,0x00000419,0x0004003d,0x00000006,0x0000041b,0x000002ac,
|
||||
0x0003003e,0x0000041a,0x0000041b,0x0003003e,0x0000041c,0x0000040e,0x000c0039,0x00000002,
|
||||
0x0000041d,0x00000038,0x0000040f,0x00000411,0x00000413,0x00000414,0x00000416,0x00000418,
|
||||
0x0000041a,0x0000041c,0x0004003d,0x00000015,0x0000041e,0x0000040f,0x0003003e,0x000002f4,
|
||||
0x0000041e,0x0004003d,0x00000006,0x0000041f,0x00000411,0x0003003e,0x000002f6,0x0000041f,
|
||||
0x0004003d,0x00000022,0x00000421,0x00000159,0x00050083,0x00000022,0x00000422,0x00000420,
|
||||
0x00000421,0x00050041,0x00000007,0x00000423,0x000001ab,0x000001ea,0x0004003d,0x00000006,
|
||||
0x00000424,0x00000423,0x00050041,0x00000007,0x00000425,0x000001af,0x000001ea,0x0004003d,
|
||||
0x00000006,0x00000426,0x00000425,0x00050041,0x00000007,0x00000427,0x000001b3,0x000001ea,
|
||||
0x0004003d,0x00000006,0x00000428,0x00000427,0x00060050,0x00000015,0x00000429,0x00000424,
|
||||
0x00000426,0x00000428,0x0004003d,0x00000015,0x0000042b,0x000002f4,0x0003003e,0x0000042a,
|
||||
0x0000042b,0x0004003d,0x00000006,0x0000042d,0x000002f6,0x0003003e,0x0000042c,0x0000042d,
|
||||
0x0003003e,0x0000042e,0x00000422,0x0004003d,0x00000022,0x00000430,0x000001ff,0x0003003e,
|
||||
0x0000042f,0x00000430,0x0004003d,0x00000022,0x00000432,0x0000029c,0x0003003e,0x00000431,
|
||||
0x00000432,0x0004003d,0x00000006,0x00000434,0x000002a7,0x0003003e,0x00000433,0x00000434,
|
||||
0x0004003d,0x00000006,0x00000436,0x000002ac,0x0003003e,0x00000435,0x00000436,0x0003003e,
|
||||
0x00000437,0x00000429,0x000c0039,0x00000002,0x00000438,0x00000038,0x0000042a,0x0000042c,
|
||||
0x0000042e,0x0000042f,0x00000431,0x00000433,0x00000435,0x00000437,0x0004003d,0x00000015,
|
||||
0x00000439,0x0000042a,0x0003003e,0x000002f4,0x00000439,0x0004003d,0x00000006,0x0000043a,
|
||||
0x0000042c,0x0003003e,0x000002f6,0x0000043a,0x0004003d,0x00000015,0x0000043b,0x000002d2,
|
||||
0x0004003d,0x00000015,0x0000043c,0x000002b0,0x0004003d,0x00000015,0x0000043d,0x000002f4,
|
||||
0x0004003d,0x00000006,0x0000043f,0x000002f6,0x0003003e,0x0000043e,0x0000043f,0x00050039,
|
||||
0x00000006,0x00000440,0x0000000a,0x0000043e,0x00060050,0x00000015,0x00000441,0x00000440,
|
||||
0x00000440,0x00000440,0x00050085,0x00000015,0x00000442,0x0000043d,0x00000441,0x0007000c,
|
||||
0x00000015,0x00000443,0x00000001,0x00000028,0x0000043c,0x00000442,0x0007000c,0x00000015,
|
||||
0x00000444,0x00000001,0x00000025,0x0000043b,0x00000443,0x0003003e,0x00000051,0x00000444,
|
||||
0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,469 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t fsr_rcas_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000025e,0x00000000,0x00020011,0x00000001,0x00020011,
|
||||
0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
|
||||
0x00000000,0x00000001,0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000023b,
|
||||
0x00000258,0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,
|
||||
0x00000004,0x6e69616d,0x00000000,0x00050005,0x0000000a,0x70635241,0x66283146,0x00003b31,
|
||||
0x00030005,0x00000009,0x00000078,0x00070005,0x0000000d,0x78725041,0x5264654d,0x31467063,
|
||||
0x3b316628,0x00000000,0x00030005,0x0000000c,0x00000078,0x00050005,0x00000010,0x74615341,
|
||||
0x66283146,0x00003b31,0x00030005,0x0000000f,0x00000078,0x00070005,0x00000016,0x6e694d41,
|
||||
0x28314633,0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000013,0x00000061,0x00030005,
|
||||
0x00000014,0x00000062,0x00030005,0x00000015,0x00000063,0x00070005,0x0000001b,0x78614d41,
|
||||
0x28314633,0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000018,0x00000061,0x00030005,
|
||||
0x00000019,0x00000062,0x00030005,0x0000001a,0x00000063,0x00070005,0x00000023,0x52727346,
|
||||
0x4c736163,0x4664616f,0x32697628,0x0000003b,0x00030005,0x00000022,0x00000070,0x00080005,
|
||||
0x00000029,0x52727346,0x49736163,0x7475706e,0x31662846,0x3b31663b,0x003b3166,0x00030005,
|
||||
0x00000026,0x00000072,0x00030005,0x00000027,0x00000067,0x00030005,0x00000028,0x00000062,
|
||||
0x00090005,0x00000036,0x52727346,0x46736163,0x3b316628,0x663b3166,0x75763b31,0x75763b32,
|
||||
0x00003b34,0x00040005,0x00000031,0x52786970,0x00000000,0x00040005,0x00000032,0x47786970,
|
||||
0x00000000,0x00040005,0x00000033,0x42786970,0x00000000,0x00030005,0x00000034,0x00007069,
|
||||
0x00030005,0x00000035,0x006e6f63,0x00030005,0x00000054,0x00007a73,0x00060005,0x00000058,
|
||||
0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x00000069,0x00007073,0x00030005,
|
||||
0x0000006e,0x00000062,0x00040005,0x00000073,0x61726170,0x0000006d,0x00030005,0x00000076,
|
||||
0x00000064,0x00040005,0x0000007a,0x61726170,0x0000006d,0x00030005,0x0000007d,0x00000065,
|
||||
0x00040005,0x0000007e,0x61726170,0x0000006d,0x00030005,0x00000082,0x00000066,0x00040005,
|
||||
0x00000086,0x61726170,0x0000006d,0x00030005,0x00000089,0x00000068,0x00040005,0x0000008d,
|
||||
0x61726170,0x0000006d,0x00030005,0x00000090,0x00005262,0x00030005,0x00000094,0x00004762,
|
||||
0x00030005,0x00000098,0x00004262,0x00030005,0x0000009c,0x00005264,0x00030005,0x0000009f,
|
||||
0x00004764,0x00030005,0x000000a2,0x00004264,0x00030005,0x000000a5,0x00005265,0x00030005,
|
||||
0x000000a8,0x00004765,0x00030005,0x000000ab,0x00004265,0x00030005,0x000000ae,0x00005266,
|
||||
0x00030005,0x000000b1,0x00004766,0x00030005,0x000000b4,0x00004266,0x00030005,0x000000b7,
|
||||
0x00005268,0x00030005,0x000000ba,0x00004768,0x00030005,0x000000bd,0x00004268,0x00040005,
|
||||
0x000000c0,0x61726170,0x0000006d,0x00040005,0x000000c2,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000c4,0x61726170,0x0000006d,0x00040005,0x000000ca,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000cc,0x61726170,0x0000006d,0x00040005,0x000000ce,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000d4,0x61726170,0x0000006d,0x00040005,0x000000d6,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000d8,0x61726170,0x0000006d,0x00040005,0x000000de,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000e0,0x61726170,0x0000006d,0x00040005,0x000000e2,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000e8,0x61726170,0x0000006d,0x00040005,0x000000ea,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000ec,0x61726170,0x0000006d,0x00030005,0x000000f2,0x00004c62,0x00030005,0x000000fb,
|
||||
0x00004c64,0x00030005,0x00000103,0x00004c65,0x00030005,0x0000010b,0x00004c66,0x00030005,
|
||||
0x00000113,0x00004c68,0x00030005,0x0000011b,0x00007a6e,0x00040005,0x0000012c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000012e,0x61726170,0x0000006d,0x00040005,0x00000130,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000133,0x61726170,0x0000006d,0x00040005,0x00000134,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000136,0x61726170,0x0000006d,0x00040005,0x00000139,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000013b,0x61726170,0x0000006d,0x00040005,0x0000013d,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000140,0x61726170,0x0000006d,0x00040005,0x00000141,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000143,0x61726170,0x0000006d,0x00040005,0x00000147,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000014a,0x61726170,0x0000006d,0x00040005,0x00000150,0x52346e6d,
|
||||
0x00000000,0x00040005,0x00000151,0x61726170,0x0000006d,0x00040005,0x00000153,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000155,0x61726170,0x0000006d,0x00040005,0x0000015a,0x47346e6d,
|
||||
0x00000000,0x00040005,0x0000015b,0x61726170,0x0000006d,0x00040005,0x0000015d,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000015f,0x61726170,0x0000006d,0x00040005,0x00000164,0x42346e6d,
|
||||
0x00000000,0x00040005,0x00000165,0x61726170,0x0000006d,0x00040005,0x00000167,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000169,0x61726170,0x0000006d,0x00040005,0x0000016e,0x5234786d,
|
||||
0x00000000,0x00040005,0x0000016f,0x61726170,0x0000006d,0x00040005,0x00000171,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000173,0x61726170,0x0000006d,0x00040005,0x00000178,0x4734786d,
|
||||
0x00000000,0x00040005,0x00000179,0x61726170,0x0000006d,0x00040005,0x0000017b,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000017d,0x61726170,0x0000006d,0x00040005,0x00000182,0x4234786d,
|
||||
0x00000000,0x00040005,0x00000183,0x61726170,0x0000006d,0x00040005,0x00000185,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000187,0x61726170,0x0000006d,0x00040005,0x0000018e,0x6b616570,
|
||||
0x00000043,0x00040005,0x00000191,0x4d746968,0x00526e69,0x00040005,0x00000198,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000019b,0x4d746968,0x00476e69,0x00040005,0x000001a1,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001a4,0x4d746968,0x00426e69,0x00040005,0x000001aa,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001ad,0x4d746968,0x00527861,0x00040005,0x000001b9,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001bc,0x4d746968,0x00477861,0x00040005,0x000001c8,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001cb,0x4d746968,0x00427861,0x00040005,0x000001d7,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001da,0x65626f6c,0x00000052,0x00040005,0x000001df,0x65626f6c,
|
||||
0x00000047,0x00040005,0x000001e4,0x65626f6c,0x00000042,0x00040005,0x000001e9,0x65626f6c,
|
||||
0x00000000,0x00040005,0x000001eb,0x61726170,0x0000006d,0x00040005,0x000001ed,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001ef,0x61726170,0x0000006d,0x00040005,0x000001f9,0x4c706372,
|
||||
0x00000000,0x00040005,0x000001fd,0x61726170,0x0000006d,0x00030005,0x00000239,0x00007069,
|
||||
0x00060005,0x0000023b,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00030005,0x0000023d,
|
||||
0x00004350,0x00040006,0x0000023d,0x00000000,0x0063646e,0x00040006,0x0000023d,0x00000001,
|
||||
0x006e6f63,0x00060006,0x0000023d,0x00000002,0x7074756f,0x69537475,0x0000657a,0x00030005,
|
||||
0x0000023f,0x00006370,0x00030005,0x00000246,0x00000063,0x00040005,0x00000247,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000248,0x61726170,0x0000006d,0x00040005,0x00000249,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000024a,0x61726170,0x0000006d,0x00040005,0x0000024c,0x61726170,
|
||||
0x0000006d,0x00050005,0x00000258,0x4374756f,0x726f6c6f,0x00000000,0x00040047,0x00000058,
|
||||
0x00000021,0x00000000,0x00040047,0x00000058,0x00000022,0x00000000,0x00040047,0x0000023b,
|
||||
0x0000001e,0x00000000,0x00030047,0x0000023d,0x00000002,0x00050048,0x0000023d,0x00000000,
|
||||
0x00000023,0x00000000,0x00050048,0x0000023d,0x00000001,0x00000023,0x00000010,0x00050048,
|
||||
0x0000023d,0x00000002,0x00000023,0x00000020,0x00040047,0x00000258,0x0000001e,0x00000000,
|
||||
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,
|
||||
0x00040020,0x00000007,0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,
|
||||
0x00060021,0x00000012,0x00000006,0x00000007,0x00000007,0x00000007,0x00040015,0x0000001d,
|
||||
0x00000020,0x00000001,0x00040017,0x0000001e,0x0000001d,0x00000002,0x00040020,0x0000001f,
|
||||
0x00000007,0x0000001e,0x00040017,0x00000020,0x00000006,0x00000004,0x00040021,0x00000021,
|
||||
0x00000020,0x0000001f,0x00060021,0x00000025,0x00000002,0x00000007,0x00000007,0x00000007,
|
||||
0x00040015,0x0000002b,0x00000020,0x00000000,0x00040017,0x0000002c,0x0000002b,0x00000002,
|
||||
0x00040020,0x0000002d,0x00000007,0x0000002c,0x00040017,0x0000002e,0x0000002b,0x00000004,
|
||||
0x00040020,0x0000002f,0x00000007,0x0000002e,0x00080021,0x00000030,0x00000002,0x00000007,
|
||||
0x00000007,0x00000007,0x0000002d,0x0000002f,0x0004002b,0x00000006,0x00000038,0x3f800000,
|
||||
0x0004002b,0x00000006,0x00000042,0x00000000,0x00090019,0x00000055,0x00000006,0x00000001,
|
||||
0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000056,0x00000055,
|
||||
0x00040020,0x00000057,0x00000000,0x00000056,0x0004003b,0x00000057,0x00000058,0x00000000,
|
||||
0x0004002b,0x0000001d,0x0000005a,0x00000000,0x0005002c,0x0000001e,0x0000005f,0x0000005a,
|
||||
0x0000005a,0x0004002b,0x0000001d,0x00000061,0x00000001,0x0005002c,0x0000001e,0x00000062,
|
||||
0x00000061,0x00000061,0x00040017,0x0000006c,0x00000006,0x00000003,0x00040020,0x0000006d,
|
||||
0x00000007,0x0000006c,0x0004002b,0x0000001d,0x00000070,0xffffffff,0x0005002c,0x0000001e,
|
||||
0x00000071,0x0000005a,0x00000070,0x0005002c,0x0000001e,0x00000078,0x00000070,0x0000005a,
|
||||
0x0005002c,0x0000001e,0x00000084,0x00000061,0x0000005a,0x0005002c,0x0000001e,0x0000008b,
|
||||
0x0000005a,0x00000061,0x0004002b,0x0000002b,0x00000091,0x00000000,0x0004002b,0x0000002b,
|
||||
0x00000095,0x00000001,0x0004002b,0x0000002b,0x00000099,0x00000002,0x0004002b,0x00000006,
|
||||
0x000000f4,0x3f000000,0x0004002b,0x00000006,0x0000011c,0x3e800000,0x0004002b,0x00000006,
|
||||
0x0000014c,0xbf000000,0x00040017,0x0000018c,0x00000006,0x00000002,0x00040020,0x0000018d,
|
||||
0x00000007,0x0000018c,0x0004002b,0x00000006,0x0000018f,0xc0800000,0x0005002c,0x0000018c,
|
||||
0x00000190,0x00000038,0x0000018f,0x0004002b,0x00000006,0x00000195,0x40800000,0x0004002b,
|
||||
0x00000006,0x000001ea,0xbe400000,0x00040020,0x000001f4,0x00000007,0x0000002b,0x00040020,
|
||||
0x0000023a,0x00000001,0x0000018c,0x0004003b,0x0000023a,0x0000023b,0x00000001,0x0005001e,
|
||||
0x0000023d,0x00000020,0x0000002e,0x0000018c,0x00040020,0x0000023e,0x00000009,0x0000023d,
|
||||
0x0004003b,0x0000023e,0x0000023f,0x00000009,0x0004002b,0x0000001d,0x00000240,0x00000002,
|
||||
0x00040020,0x00000241,0x00000009,0x0000018c,0x00040020,0x0000024d,0x00000009,0x0000002e,
|
||||
0x00040020,0x00000257,0x00000003,0x00000020,0x0004003b,0x00000257,0x00000258,0x00000003,
|
||||
0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
|
||||
0x0000002d,0x00000239,0x00000007,0x0004003b,0x0000006d,0x00000246,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000247,0x00000007,0x0004003b,0x00000007,0x00000248,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000249,0x00000007,0x0004003b,0x0000002d,0x0000024a,0x00000007,0x0004003b,
|
||||
0x0000002f,0x0000024c,0x00000007,0x0004003d,0x0000018c,0x0000023c,0x0000023b,0x00050041,
|
||||
0x00000241,0x00000242,0x0000023f,0x00000240,0x0004003d,0x0000018c,0x00000243,0x00000242,
|
||||
0x00050085,0x0000018c,0x00000244,0x0000023c,0x00000243,0x0004006d,0x0000002c,0x00000245,
|
||||
0x00000244,0x0003003e,0x00000239,0x00000245,0x0004003d,0x0000002c,0x0000024b,0x00000239,
|
||||
0x0003003e,0x0000024a,0x0000024b,0x00050041,0x0000024d,0x0000024e,0x0000023f,0x00000061,
|
||||
0x0004003d,0x0000002e,0x0000024f,0x0000024e,0x0003003e,0x0000024c,0x0000024f,0x00090039,
|
||||
0x00000002,0x00000250,0x00000036,0x00000247,0x00000248,0x00000249,0x0000024a,0x0000024c,
|
||||
0x0004003d,0x00000006,0x00000251,0x00000247,0x00050041,0x00000007,0x00000252,0x00000246,
|
||||
0x00000091,0x0003003e,0x00000252,0x00000251,0x0004003d,0x00000006,0x00000253,0x00000248,
|
||||
0x00050041,0x00000007,0x00000254,0x00000246,0x00000095,0x0003003e,0x00000254,0x00000253,
|
||||
0x0004003d,0x00000006,0x00000255,0x00000249,0x00050041,0x00000007,0x00000256,0x00000246,
|
||||
0x00000099,0x0003003e,0x00000256,0x00000255,0x0004003d,0x0000006c,0x00000259,0x00000246,
|
||||
0x00050051,0x00000006,0x0000025a,0x00000259,0x00000000,0x00050051,0x00000006,0x0000025b,
|
||||
0x00000259,0x00000001,0x00050051,0x00000006,0x0000025c,0x00000259,0x00000002,0x00070050,
|
||||
0x00000020,0x0000025d,0x0000025a,0x0000025b,0x0000025c,0x00000038,0x0003003e,0x00000258,
|
||||
0x0000025d,0x000100fd,0x00010038,0x00050036,0x00000006,0x0000000a,0x00000000,0x00000008,
|
||||
0x00030037,0x00000007,0x00000009,0x000200f8,0x0000000b,0x0004003d,0x00000006,0x00000039,
|
||||
0x00000009,0x00050088,0x00000006,0x0000003a,0x00000038,0x00000039,0x000200fe,0x0000003a,
|
||||
0x00010038,0x00050036,0x00000006,0x0000000d,0x00000000,0x00000008,0x00030037,0x00000007,
|
||||
0x0000000c,0x000200f8,0x0000000e,0x0004003d,0x00000006,0x0000003d,0x0000000c,0x00050088,
|
||||
0x00000006,0x0000003e,0x00000038,0x0000003d,0x000200fe,0x0000003e,0x00010038,0x00050036,
|
||||
0x00000006,0x00000010,0x00000000,0x00000008,0x00030037,0x00000007,0x0000000f,0x000200f8,
|
||||
0x00000011,0x0004003d,0x00000006,0x00000041,0x0000000f,0x0008000c,0x00000006,0x00000043,
|
||||
0x00000001,0x0000002b,0x00000041,0x00000042,0x00000038,0x000200fe,0x00000043,0x00010038,
|
||||
0x00050036,0x00000006,0x00000016,0x00000000,0x00000012,0x00030037,0x00000007,0x00000013,
|
||||
0x00030037,0x00000007,0x00000014,0x00030037,0x00000007,0x00000015,0x000200f8,0x00000017,
|
||||
0x0004003d,0x00000006,0x00000046,0x00000013,0x0004003d,0x00000006,0x00000047,0x00000014,
|
||||
0x0004003d,0x00000006,0x00000048,0x00000015,0x0007000c,0x00000006,0x00000049,0x00000001,
|
||||
0x00000025,0x00000047,0x00000048,0x0007000c,0x00000006,0x0000004a,0x00000001,0x00000025,
|
||||
0x00000046,0x00000049,0x000200fe,0x0000004a,0x00010038,0x00050036,0x00000006,0x0000001b,
|
||||
0x00000000,0x00000012,0x00030037,0x00000007,0x00000018,0x00030037,0x00000007,0x00000019,
|
||||
0x00030037,0x00000007,0x0000001a,0x000200f8,0x0000001c,0x0004003d,0x00000006,0x0000004d,
|
||||
0x00000018,0x0004003d,0x00000006,0x0000004e,0x00000019,0x0004003d,0x00000006,0x0000004f,
|
||||
0x0000001a,0x0007000c,0x00000006,0x00000050,0x00000001,0x00000028,0x0000004e,0x0000004f,
|
||||
0x0007000c,0x00000006,0x00000051,0x00000001,0x00000028,0x0000004d,0x00000050,0x000200fe,
|
||||
0x00000051,0x00010038,0x00050036,0x00000020,0x00000023,0x00000000,0x00000021,0x00030037,
|
||||
0x0000001f,0x00000022,0x000200f8,0x00000024,0x0004003b,0x0000001f,0x00000054,0x00000007,
|
||||
0x0004003d,0x00000056,0x00000059,0x00000058,0x00040064,0x00000055,0x0000005b,0x00000059,
|
||||
0x00050067,0x0000001e,0x0000005c,0x0000005b,0x0000005a,0x0003003e,0x00000054,0x0000005c,
|
||||
0x0004003d,0x00000056,0x0000005d,0x00000058,0x0004003d,0x0000001e,0x0000005e,0x00000022,
|
||||
0x0004003d,0x0000001e,0x00000060,0x00000054,0x00050082,0x0000001e,0x00000063,0x00000060,
|
||||
0x00000062,0x0008000c,0x0000001e,0x00000064,0x00000001,0x0000002d,0x0000005e,0x0000005f,
|
||||
0x00000063,0x00040064,0x00000055,0x00000065,0x0000005d,0x0007005f,0x00000020,0x00000066,
|
||||
0x00000065,0x00000064,0x00000002,0x0000005a,0x000200fe,0x00000066,0x00010038,0x00050036,
|
||||
0x00000002,0x00000029,0x00000000,0x00000025,0x00030037,0x00000007,0x00000026,0x00030037,
|
||||
0x00000007,0x00000027,0x00030037,0x00000007,0x00000028,0x000200f8,0x0000002a,0x000100fd,
|
||||
0x00010038,0x00050036,0x00000002,0x00000036,0x00000000,0x00000030,0x00030037,0x00000007,
|
||||
0x00000031,0x00030037,0x00000007,0x00000032,0x00030037,0x00000007,0x00000033,0x00030037,
|
||||
0x0000002d,0x00000034,0x00030037,0x0000002f,0x00000035,0x000200f8,0x00000037,0x0004003b,
|
||||
0x0000001f,0x00000069,0x00000007,0x0004003b,0x0000006d,0x0000006e,0x00000007,0x0004003b,
|
||||
0x0000001f,0x00000073,0x00000007,0x0004003b,0x0000006d,0x00000076,0x00000007,0x0004003b,
|
||||
0x0000001f,0x0000007a,0x00000007,0x0004003b,0x0000006d,0x0000007d,0x00000007,0x0004003b,
|
||||
0x0000001f,0x0000007e,0x00000007,0x0004003b,0x0000006d,0x00000082,0x00000007,0x0004003b,
|
||||
0x0000001f,0x00000086,0x00000007,0x0004003b,0x0000006d,0x00000089,0x00000007,0x0004003b,
|
||||
0x0000001f,0x0000008d,0x00000007,0x0004003b,0x00000007,0x00000090,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000094,0x00000007,0x0004003b,0x00000007,0x00000098,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000009c,0x00000007,0x0004003b,0x00000007,0x0000009f,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000a2,0x00000007,0x0004003b,0x00000007,0x000000a5,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000a8,0x00000007,0x0004003b,0x00000007,0x000000ab,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000ae,0x00000007,0x0004003b,0x00000007,0x000000b1,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000b4,0x00000007,0x0004003b,0x00000007,0x000000b7,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000ba,0x00000007,0x0004003b,0x00000007,0x000000bd,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000c0,0x00000007,0x0004003b,0x00000007,0x000000c2,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000c4,0x00000007,0x0004003b,0x00000007,0x000000ca,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000cc,0x00000007,0x0004003b,0x00000007,0x000000ce,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000d4,0x00000007,0x0004003b,0x00000007,0x000000d6,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000d8,0x00000007,0x0004003b,0x00000007,0x000000de,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000e0,0x00000007,0x0004003b,0x00000007,0x000000e2,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000e8,0x00000007,0x0004003b,0x00000007,0x000000ea,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000ec,0x00000007,0x0004003b,0x00000007,0x000000f2,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000fb,0x00000007,0x0004003b,0x00000007,0x00000103,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000010b,0x00000007,0x0004003b,0x00000007,0x00000113,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000011b,0x00000007,0x0004003b,0x00000007,0x0000012c,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000012e,0x00000007,0x0004003b,0x00000007,0x00000130,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000133,0x00000007,0x0004003b,0x00000007,0x00000134,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000136,0x00000007,0x0004003b,0x00000007,0x00000139,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000013b,0x00000007,0x0004003b,0x00000007,0x0000013d,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000140,0x00000007,0x0004003b,0x00000007,0x00000141,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000143,0x00000007,0x0004003b,0x00000007,0x00000147,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000014a,0x00000007,0x0004003b,0x00000007,0x00000150,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000151,0x00000007,0x0004003b,0x00000007,0x00000153,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000155,0x00000007,0x0004003b,0x00000007,0x0000015a,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000015b,0x00000007,0x0004003b,0x00000007,0x0000015d,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000015f,0x00000007,0x0004003b,0x00000007,0x00000164,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000165,0x00000007,0x0004003b,0x00000007,0x00000167,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000169,0x00000007,0x0004003b,0x00000007,0x0000016e,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000016f,0x00000007,0x0004003b,0x00000007,0x00000171,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000173,0x00000007,0x0004003b,0x00000007,0x00000178,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000179,0x00000007,0x0004003b,0x00000007,0x0000017b,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000017d,0x00000007,0x0004003b,0x00000007,0x00000182,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000183,0x00000007,0x0004003b,0x00000007,0x00000185,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000187,0x00000007,0x0004003b,0x0000018d,0x0000018e,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000191,0x00000007,0x0004003b,0x00000007,0x00000198,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000019b,0x00000007,0x0004003b,0x00000007,0x000001a1,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001a4,0x00000007,0x0004003b,0x00000007,0x000001aa,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001ad,0x00000007,0x0004003b,0x00000007,0x000001b9,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001bc,0x00000007,0x0004003b,0x00000007,0x000001c8,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001cb,0x00000007,0x0004003b,0x00000007,0x000001d7,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001da,0x00000007,0x0004003b,0x00000007,0x000001df,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001e4,0x00000007,0x0004003b,0x00000007,0x000001e9,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001eb,0x00000007,0x0004003b,0x00000007,0x000001ed,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001ef,0x00000007,0x0004003b,0x00000007,0x000001f9,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001fd,0x00000007,0x0004003d,0x0000002c,0x0000006a,0x00000034,0x0004007c,
|
||||
0x0000001e,0x0000006b,0x0000006a,0x0003003e,0x00000069,0x0000006b,0x0004003d,0x0000001e,
|
||||
0x0000006f,0x00000069,0x00050080,0x0000001e,0x00000072,0x0000006f,0x00000071,0x0003003e,
|
||||
0x00000073,0x00000072,0x00050039,0x00000020,0x00000074,0x00000023,0x00000073,0x0008004f,
|
||||
0x0000006c,0x00000075,0x00000074,0x00000074,0x00000000,0x00000001,0x00000002,0x0003003e,
|
||||
0x0000006e,0x00000075,0x0004003d,0x0000001e,0x00000077,0x00000069,0x00050080,0x0000001e,
|
||||
0x00000079,0x00000077,0x00000078,0x0003003e,0x0000007a,0x00000079,0x00050039,0x00000020,
|
||||
0x0000007b,0x00000023,0x0000007a,0x0008004f,0x0000006c,0x0000007c,0x0000007b,0x0000007b,
|
||||
0x00000000,0x00000001,0x00000002,0x0003003e,0x00000076,0x0000007c,0x0004003d,0x0000001e,
|
||||
0x0000007f,0x00000069,0x0003003e,0x0000007e,0x0000007f,0x00050039,0x00000020,0x00000080,
|
||||
0x00000023,0x0000007e,0x0008004f,0x0000006c,0x00000081,0x00000080,0x00000080,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x0000007d,0x00000081,0x0004003d,0x0000001e,0x00000083,
|
||||
0x00000069,0x00050080,0x0000001e,0x00000085,0x00000083,0x00000084,0x0003003e,0x00000086,
|
||||
0x00000085,0x00050039,0x00000020,0x00000087,0x00000023,0x00000086,0x0008004f,0x0000006c,
|
||||
0x00000088,0x00000087,0x00000087,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000082,
|
||||
0x00000088,0x0004003d,0x0000001e,0x0000008a,0x00000069,0x00050080,0x0000001e,0x0000008c,
|
||||
0x0000008a,0x0000008b,0x0003003e,0x0000008d,0x0000008c,0x00050039,0x00000020,0x0000008e,
|
||||
0x00000023,0x0000008d,0x0008004f,0x0000006c,0x0000008f,0x0000008e,0x0000008e,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x00000089,0x0000008f,0x00050041,0x00000007,0x00000092,
|
||||
0x0000006e,0x00000091,0x0004003d,0x00000006,0x00000093,0x00000092,0x0003003e,0x00000090,
|
||||
0x00000093,0x00050041,0x00000007,0x00000096,0x0000006e,0x00000095,0x0004003d,0x00000006,
|
||||
0x00000097,0x00000096,0x0003003e,0x00000094,0x00000097,0x00050041,0x00000007,0x0000009a,
|
||||
0x0000006e,0x00000099,0x0004003d,0x00000006,0x0000009b,0x0000009a,0x0003003e,0x00000098,
|
||||
0x0000009b,0x00050041,0x00000007,0x0000009d,0x00000076,0x00000091,0x0004003d,0x00000006,
|
||||
0x0000009e,0x0000009d,0x0003003e,0x0000009c,0x0000009e,0x00050041,0x00000007,0x000000a0,
|
||||
0x00000076,0x00000095,0x0004003d,0x00000006,0x000000a1,0x000000a0,0x0003003e,0x0000009f,
|
||||
0x000000a1,0x00050041,0x00000007,0x000000a3,0x00000076,0x00000099,0x0004003d,0x00000006,
|
||||
0x000000a4,0x000000a3,0x0003003e,0x000000a2,0x000000a4,0x00050041,0x00000007,0x000000a6,
|
||||
0x0000007d,0x00000091,0x0004003d,0x00000006,0x000000a7,0x000000a6,0x0003003e,0x000000a5,
|
||||
0x000000a7,0x00050041,0x00000007,0x000000a9,0x0000007d,0x00000095,0x0004003d,0x00000006,
|
||||
0x000000aa,0x000000a9,0x0003003e,0x000000a8,0x000000aa,0x00050041,0x00000007,0x000000ac,
|
||||
0x0000007d,0x00000099,0x0004003d,0x00000006,0x000000ad,0x000000ac,0x0003003e,0x000000ab,
|
||||
0x000000ad,0x00050041,0x00000007,0x000000af,0x00000082,0x00000091,0x0004003d,0x00000006,
|
||||
0x000000b0,0x000000af,0x0003003e,0x000000ae,0x000000b0,0x00050041,0x00000007,0x000000b2,
|
||||
0x00000082,0x00000095,0x0004003d,0x00000006,0x000000b3,0x000000b2,0x0003003e,0x000000b1,
|
||||
0x000000b3,0x00050041,0x00000007,0x000000b5,0x00000082,0x00000099,0x0004003d,0x00000006,
|
||||
0x000000b6,0x000000b5,0x0003003e,0x000000b4,0x000000b6,0x00050041,0x00000007,0x000000b8,
|
||||
0x00000089,0x00000091,0x0004003d,0x00000006,0x000000b9,0x000000b8,0x0003003e,0x000000b7,
|
||||
0x000000b9,0x00050041,0x00000007,0x000000bb,0x00000089,0x00000095,0x0004003d,0x00000006,
|
||||
0x000000bc,0x000000bb,0x0003003e,0x000000ba,0x000000bc,0x00050041,0x00000007,0x000000be,
|
||||
0x00000089,0x00000099,0x0004003d,0x00000006,0x000000bf,0x000000be,0x0003003e,0x000000bd,
|
||||
0x000000bf,0x0004003d,0x00000006,0x000000c1,0x00000090,0x0003003e,0x000000c0,0x000000c1,
|
||||
0x0004003d,0x00000006,0x000000c3,0x00000094,0x0003003e,0x000000c2,0x000000c3,0x0004003d,
|
||||
0x00000006,0x000000c5,0x00000098,0x0003003e,0x000000c4,0x000000c5,0x00070039,0x00000002,
|
||||
0x000000c6,0x00000029,0x000000c0,0x000000c2,0x000000c4,0x0004003d,0x00000006,0x000000c7,
|
||||
0x000000c0,0x0003003e,0x00000090,0x000000c7,0x0004003d,0x00000006,0x000000c8,0x000000c2,
|
||||
0x0003003e,0x00000094,0x000000c8,0x0004003d,0x00000006,0x000000c9,0x000000c4,0x0003003e,
|
||||
0x00000098,0x000000c9,0x0004003d,0x00000006,0x000000cb,0x0000009c,0x0003003e,0x000000ca,
|
||||
0x000000cb,0x0004003d,0x00000006,0x000000cd,0x0000009f,0x0003003e,0x000000cc,0x000000cd,
|
||||
0x0004003d,0x00000006,0x000000cf,0x000000a2,0x0003003e,0x000000ce,0x000000cf,0x00070039,
|
||||
0x00000002,0x000000d0,0x00000029,0x000000ca,0x000000cc,0x000000ce,0x0004003d,0x00000006,
|
||||
0x000000d1,0x000000ca,0x0003003e,0x0000009c,0x000000d1,0x0004003d,0x00000006,0x000000d2,
|
||||
0x000000cc,0x0003003e,0x0000009f,0x000000d2,0x0004003d,0x00000006,0x000000d3,0x000000ce,
|
||||
0x0003003e,0x000000a2,0x000000d3,0x0004003d,0x00000006,0x000000d5,0x000000a5,0x0003003e,
|
||||
0x000000d4,0x000000d5,0x0004003d,0x00000006,0x000000d7,0x000000a8,0x0003003e,0x000000d6,
|
||||
0x000000d7,0x0004003d,0x00000006,0x000000d9,0x000000ab,0x0003003e,0x000000d8,0x000000d9,
|
||||
0x00070039,0x00000002,0x000000da,0x00000029,0x000000d4,0x000000d6,0x000000d8,0x0004003d,
|
||||
0x00000006,0x000000db,0x000000d4,0x0003003e,0x000000a5,0x000000db,0x0004003d,0x00000006,
|
||||
0x000000dc,0x000000d6,0x0003003e,0x000000a8,0x000000dc,0x0004003d,0x00000006,0x000000dd,
|
||||
0x000000d8,0x0003003e,0x000000ab,0x000000dd,0x0004003d,0x00000006,0x000000df,0x000000ae,
|
||||
0x0003003e,0x000000de,0x000000df,0x0004003d,0x00000006,0x000000e1,0x000000b1,0x0003003e,
|
||||
0x000000e0,0x000000e1,0x0004003d,0x00000006,0x000000e3,0x000000b4,0x0003003e,0x000000e2,
|
||||
0x000000e3,0x00070039,0x00000002,0x000000e4,0x00000029,0x000000de,0x000000e0,0x000000e2,
|
||||
0x0004003d,0x00000006,0x000000e5,0x000000de,0x0003003e,0x000000ae,0x000000e5,0x0004003d,
|
||||
0x00000006,0x000000e6,0x000000e0,0x0003003e,0x000000b1,0x000000e6,0x0004003d,0x00000006,
|
||||
0x000000e7,0x000000e2,0x0003003e,0x000000b4,0x000000e7,0x0004003d,0x00000006,0x000000e9,
|
||||
0x000000b7,0x0003003e,0x000000e8,0x000000e9,0x0004003d,0x00000006,0x000000eb,0x000000ba,
|
||||
0x0003003e,0x000000ea,0x000000eb,0x0004003d,0x00000006,0x000000ed,0x000000bd,0x0003003e,
|
||||
0x000000ec,0x000000ed,0x00070039,0x00000002,0x000000ee,0x00000029,0x000000e8,0x000000ea,
|
||||
0x000000ec,0x0004003d,0x00000006,0x000000ef,0x000000e8,0x0003003e,0x000000b7,0x000000ef,
|
||||
0x0004003d,0x00000006,0x000000f0,0x000000ea,0x0003003e,0x000000ba,0x000000f0,0x0004003d,
|
||||
0x00000006,0x000000f1,0x000000ec,0x0003003e,0x000000bd,0x000000f1,0x0004003d,0x00000006,
|
||||
0x000000f3,0x00000098,0x00050085,0x00000006,0x000000f5,0x000000f3,0x000000f4,0x0004003d,
|
||||
0x00000006,0x000000f6,0x00000090,0x00050085,0x00000006,0x000000f7,0x000000f6,0x000000f4,
|
||||
0x0004003d,0x00000006,0x000000f8,0x00000094,0x00050081,0x00000006,0x000000f9,0x000000f7,
|
||||
0x000000f8,0x00050081,0x00000006,0x000000fa,0x000000f5,0x000000f9,0x0003003e,0x000000f2,
|
||||
0x000000fa,0x0004003d,0x00000006,0x000000fc,0x000000a2,0x00050085,0x00000006,0x000000fd,
|
||||
0x000000fc,0x000000f4,0x0004003d,0x00000006,0x000000fe,0x0000009c,0x00050085,0x00000006,
|
||||
0x000000ff,0x000000fe,0x000000f4,0x0004003d,0x00000006,0x00000100,0x0000009f,0x00050081,
|
||||
0x00000006,0x00000101,0x000000ff,0x00000100,0x00050081,0x00000006,0x00000102,0x000000fd,
|
||||
0x00000101,0x0003003e,0x000000fb,0x00000102,0x0004003d,0x00000006,0x00000104,0x000000ab,
|
||||
0x00050085,0x00000006,0x00000105,0x00000104,0x000000f4,0x0004003d,0x00000006,0x00000106,
|
||||
0x000000a5,0x00050085,0x00000006,0x00000107,0x00000106,0x000000f4,0x0004003d,0x00000006,
|
||||
0x00000108,0x000000a8,0x00050081,0x00000006,0x00000109,0x00000107,0x00000108,0x00050081,
|
||||
0x00000006,0x0000010a,0x00000105,0x00000109,0x0003003e,0x00000103,0x0000010a,0x0004003d,
|
||||
0x00000006,0x0000010c,0x000000b4,0x00050085,0x00000006,0x0000010d,0x0000010c,0x000000f4,
|
||||
0x0004003d,0x00000006,0x0000010e,0x000000ae,0x00050085,0x00000006,0x0000010f,0x0000010e,
|
||||
0x000000f4,0x0004003d,0x00000006,0x00000110,0x000000b1,0x00050081,0x00000006,0x00000111,
|
||||
0x0000010f,0x00000110,0x00050081,0x00000006,0x00000112,0x0000010d,0x00000111,0x0003003e,
|
||||
0x0000010b,0x00000112,0x0004003d,0x00000006,0x00000114,0x000000bd,0x00050085,0x00000006,
|
||||
0x00000115,0x00000114,0x000000f4,0x0004003d,0x00000006,0x00000116,0x000000b7,0x00050085,
|
||||
0x00000006,0x00000117,0x00000116,0x000000f4,0x0004003d,0x00000006,0x00000118,0x000000ba,
|
||||
0x00050081,0x00000006,0x00000119,0x00000117,0x00000118,0x00050081,0x00000006,0x0000011a,
|
||||
0x00000115,0x00000119,0x0003003e,0x00000113,0x0000011a,0x0004003d,0x00000006,0x0000011d,
|
||||
0x000000f2,0x00050085,0x00000006,0x0000011e,0x0000011c,0x0000011d,0x0004003d,0x00000006,
|
||||
0x0000011f,0x000000fb,0x00050085,0x00000006,0x00000120,0x0000011c,0x0000011f,0x00050081,
|
||||
0x00000006,0x00000121,0x0000011e,0x00000120,0x0004003d,0x00000006,0x00000122,0x0000010b,
|
||||
0x00050085,0x00000006,0x00000123,0x0000011c,0x00000122,0x00050081,0x00000006,0x00000124,
|
||||
0x00000121,0x00000123,0x0004003d,0x00000006,0x00000125,0x00000113,0x00050085,0x00000006,
|
||||
0x00000126,0x0000011c,0x00000125,0x00050081,0x00000006,0x00000127,0x00000124,0x00000126,
|
||||
0x0004003d,0x00000006,0x00000128,0x00000103,0x00050083,0x00000006,0x00000129,0x00000127,
|
||||
0x00000128,0x0003003e,0x0000011b,0x00000129,0x0004003d,0x00000006,0x0000012a,0x0000011b,
|
||||
0x0006000c,0x00000006,0x0000012b,0x00000001,0x00000004,0x0000012a,0x0004003d,0x00000006,
|
||||
0x0000012d,0x000000f2,0x0003003e,0x0000012c,0x0000012d,0x0004003d,0x00000006,0x0000012f,
|
||||
0x000000fb,0x0003003e,0x0000012e,0x0000012f,0x0004003d,0x00000006,0x00000131,0x00000103,
|
||||
0x0003003e,0x00000130,0x00000131,0x00070039,0x00000006,0x00000132,0x0000001b,0x0000012c,
|
||||
0x0000012e,0x00000130,0x0003003e,0x00000133,0x00000132,0x0004003d,0x00000006,0x00000135,
|
||||
0x0000010b,0x0003003e,0x00000134,0x00000135,0x0004003d,0x00000006,0x00000137,0x00000113,
|
||||
0x0003003e,0x00000136,0x00000137,0x00070039,0x00000006,0x00000138,0x0000001b,0x00000133,
|
||||
0x00000134,0x00000136,0x0004003d,0x00000006,0x0000013a,0x000000f2,0x0003003e,0x00000139,
|
||||
0x0000013a,0x0004003d,0x00000006,0x0000013c,0x000000fb,0x0003003e,0x0000013b,0x0000013c,
|
||||
0x0004003d,0x00000006,0x0000013e,0x00000103,0x0003003e,0x0000013d,0x0000013e,0x00070039,
|
||||
0x00000006,0x0000013f,0x00000016,0x00000139,0x0000013b,0x0000013d,0x0003003e,0x00000140,
|
||||
0x0000013f,0x0004003d,0x00000006,0x00000142,0x0000010b,0x0003003e,0x00000141,0x00000142,
|
||||
0x0004003d,0x00000006,0x00000144,0x00000113,0x0003003e,0x00000143,0x00000144,0x00070039,
|
||||
0x00000006,0x00000145,0x00000016,0x00000140,0x00000141,0x00000143,0x00050083,0x00000006,
|
||||
0x00000146,0x00000138,0x00000145,0x0003003e,0x00000147,0x00000146,0x00050039,0x00000006,
|
||||
0x00000148,0x0000000d,0x00000147,0x00050085,0x00000006,0x00000149,0x0000012b,0x00000148,
|
||||
0x0003003e,0x0000014a,0x00000149,0x00050039,0x00000006,0x0000014b,0x00000010,0x0000014a,
|
||||
0x0003003e,0x0000011b,0x0000014b,0x0004003d,0x00000006,0x0000014d,0x0000011b,0x00050085,
|
||||
0x00000006,0x0000014e,0x0000014c,0x0000014d,0x00050081,0x00000006,0x0000014f,0x0000014e,
|
||||
0x00000038,0x0003003e,0x0000011b,0x0000014f,0x0004003d,0x00000006,0x00000152,0x00000090,
|
||||
0x0003003e,0x00000151,0x00000152,0x0004003d,0x00000006,0x00000154,0x0000009c,0x0003003e,
|
||||
0x00000153,0x00000154,0x0004003d,0x00000006,0x00000156,0x000000ae,0x0003003e,0x00000155,
|
||||
0x00000156,0x00070039,0x00000006,0x00000157,0x00000016,0x00000151,0x00000153,0x00000155,
|
||||
0x0004003d,0x00000006,0x00000158,0x000000b7,0x0007000c,0x00000006,0x00000159,0x00000001,
|
||||
0x00000025,0x00000157,0x00000158,0x0003003e,0x00000150,0x00000159,0x0004003d,0x00000006,
|
||||
0x0000015c,0x00000094,0x0003003e,0x0000015b,0x0000015c,0x0004003d,0x00000006,0x0000015e,
|
||||
0x0000009f,0x0003003e,0x0000015d,0x0000015e,0x0004003d,0x00000006,0x00000160,0x000000b1,
|
||||
0x0003003e,0x0000015f,0x00000160,0x00070039,0x00000006,0x00000161,0x00000016,0x0000015b,
|
||||
0x0000015d,0x0000015f,0x0004003d,0x00000006,0x00000162,0x000000ba,0x0007000c,0x00000006,
|
||||
0x00000163,0x00000001,0x00000025,0x00000161,0x00000162,0x0003003e,0x0000015a,0x00000163,
|
||||
0x0004003d,0x00000006,0x00000166,0x00000098,0x0003003e,0x00000165,0x00000166,0x0004003d,
|
||||
0x00000006,0x00000168,0x000000a2,0x0003003e,0x00000167,0x00000168,0x0004003d,0x00000006,
|
||||
0x0000016a,0x000000b4,0x0003003e,0x00000169,0x0000016a,0x00070039,0x00000006,0x0000016b,
|
||||
0x00000016,0x00000165,0x00000167,0x00000169,0x0004003d,0x00000006,0x0000016c,0x000000bd,
|
||||
0x0007000c,0x00000006,0x0000016d,0x00000001,0x00000025,0x0000016b,0x0000016c,0x0003003e,
|
||||
0x00000164,0x0000016d,0x0004003d,0x00000006,0x00000170,0x00000090,0x0003003e,0x0000016f,
|
||||
0x00000170,0x0004003d,0x00000006,0x00000172,0x0000009c,0x0003003e,0x00000171,0x00000172,
|
||||
0x0004003d,0x00000006,0x00000174,0x000000ae,0x0003003e,0x00000173,0x00000174,0x00070039,
|
||||
0x00000006,0x00000175,0x0000001b,0x0000016f,0x00000171,0x00000173,0x0004003d,0x00000006,
|
||||
0x00000176,0x000000b7,0x0007000c,0x00000006,0x00000177,0x00000001,0x00000028,0x00000175,
|
||||
0x00000176,0x0003003e,0x0000016e,0x00000177,0x0004003d,0x00000006,0x0000017a,0x00000094,
|
||||
0x0003003e,0x00000179,0x0000017a,0x0004003d,0x00000006,0x0000017c,0x0000009f,0x0003003e,
|
||||
0x0000017b,0x0000017c,0x0004003d,0x00000006,0x0000017e,0x000000b1,0x0003003e,0x0000017d,
|
||||
0x0000017e,0x00070039,0x00000006,0x0000017f,0x0000001b,0x00000179,0x0000017b,0x0000017d,
|
||||
0x0004003d,0x00000006,0x00000180,0x000000ba,0x0007000c,0x00000006,0x00000181,0x00000001,
|
||||
0x00000028,0x0000017f,0x00000180,0x0003003e,0x00000178,0x00000181,0x0004003d,0x00000006,
|
||||
0x00000184,0x00000098,0x0003003e,0x00000183,0x00000184,0x0004003d,0x00000006,0x00000186,
|
||||
0x000000a2,0x0003003e,0x00000185,0x00000186,0x0004003d,0x00000006,0x00000188,0x000000b4,
|
||||
0x0003003e,0x00000187,0x00000188,0x00070039,0x00000006,0x00000189,0x0000001b,0x00000183,
|
||||
0x00000185,0x00000187,0x0004003d,0x00000006,0x0000018a,0x000000bd,0x0007000c,0x00000006,
|
||||
0x0000018b,0x00000001,0x00000028,0x00000189,0x0000018a,0x0003003e,0x00000182,0x0000018b,
|
||||
0x0003003e,0x0000018e,0x00000190,0x0004003d,0x00000006,0x00000192,0x00000150,0x0004003d,
|
||||
0x00000006,0x00000193,0x000000a5,0x0007000c,0x00000006,0x00000194,0x00000001,0x00000025,
|
||||
0x00000192,0x00000193,0x0004003d,0x00000006,0x00000196,0x0000016e,0x00050085,0x00000006,
|
||||
0x00000197,0x00000195,0x00000196,0x0003003e,0x00000198,0x00000197,0x00050039,0x00000006,
|
||||
0x00000199,0x0000000a,0x00000198,0x00050085,0x00000006,0x0000019a,0x00000194,0x00000199,
|
||||
0x0003003e,0x00000191,0x0000019a,0x0004003d,0x00000006,0x0000019c,0x0000015a,0x0004003d,
|
||||
0x00000006,0x0000019d,0x000000a8,0x0007000c,0x00000006,0x0000019e,0x00000001,0x00000025,
|
||||
0x0000019c,0x0000019d,0x0004003d,0x00000006,0x0000019f,0x00000178,0x00050085,0x00000006,
|
||||
0x000001a0,0x00000195,0x0000019f,0x0003003e,0x000001a1,0x000001a0,0x00050039,0x00000006,
|
||||
0x000001a2,0x0000000a,0x000001a1,0x00050085,0x00000006,0x000001a3,0x0000019e,0x000001a2,
|
||||
0x0003003e,0x0000019b,0x000001a3,0x0004003d,0x00000006,0x000001a5,0x00000164,0x0004003d,
|
||||
0x00000006,0x000001a6,0x000000ab,0x0007000c,0x00000006,0x000001a7,0x00000001,0x00000025,
|
||||
0x000001a5,0x000001a6,0x0004003d,0x00000006,0x000001a8,0x00000182,0x00050085,0x00000006,
|
||||
0x000001a9,0x00000195,0x000001a8,0x0003003e,0x000001aa,0x000001a9,0x00050039,0x00000006,
|
||||
0x000001ab,0x0000000a,0x000001aa,0x00050085,0x00000006,0x000001ac,0x000001a7,0x000001ab,
|
||||
0x0003003e,0x000001a4,0x000001ac,0x00050041,0x00000007,0x000001ae,0x0000018e,0x00000091,
|
||||
0x0004003d,0x00000006,0x000001af,0x000001ae,0x0004003d,0x00000006,0x000001b0,0x0000016e,
|
||||
0x0004003d,0x00000006,0x000001b1,0x000000a5,0x0007000c,0x00000006,0x000001b2,0x00000001,
|
||||
0x00000028,0x000001b0,0x000001b1,0x00050083,0x00000006,0x000001b3,0x000001af,0x000001b2,
|
||||
0x0004003d,0x00000006,0x000001b4,0x00000150,0x00050085,0x00000006,0x000001b5,0x00000195,
|
||||
0x000001b4,0x00050041,0x00000007,0x000001b6,0x0000018e,0x00000095,0x0004003d,0x00000006,
|
||||
0x000001b7,0x000001b6,0x00050081,0x00000006,0x000001b8,0x000001b5,0x000001b7,0x0003003e,
|
||||
0x000001b9,0x000001b8,0x00050039,0x00000006,0x000001ba,0x0000000a,0x000001b9,0x00050085,
|
||||
0x00000006,0x000001bb,0x000001b3,0x000001ba,0x0003003e,0x000001ad,0x000001bb,0x00050041,
|
||||
0x00000007,0x000001bd,0x0000018e,0x00000091,0x0004003d,0x00000006,0x000001be,0x000001bd,
|
||||
0x0004003d,0x00000006,0x000001bf,0x00000178,0x0004003d,0x00000006,0x000001c0,0x000000a8,
|
||||
0x0007000c,0x00000006,0x000001c1,0x00000001,0x00000028,0x000001bf,0x000001c0,0x00050083,
|
||||
0x00000006,0x000001c2,0x000001be,0x000001c1,0x0004003d,0x00000006,0x000001c3,0x0000015a,
|
||||
0x00050085,0x00000006,0x000001c4,0x00000195,0x000001c3,0x00050041,0x00000007,0x000001c5,
|
||||
0x0000018e,0x00000095,0x0004003d,0x00000006,0x000001c6,0x000001c5,0x00050081,0x00000006,
|
||||
0x000001c7,0x000001c4,0x000001c6,0x0003003e,0x000001c8,0x000001c7,0x00050039,0x00000006,
|
||||
0x000001c9,0x0000000a,0x000001c8,0x00050085,0x00000006,0x000001ca,0x000001c2,0x000001c9,
|
||||
0x0003003e,0x000001bc,0x000001ca,0x00050041,0x00000007,0x000001cc,0x0000018e,0x00000091,
|
||||
0x0004003d,0x00000006,0x000001cd,0x000001cc,0x0004003d,0x00000006,0x000001ce,0x00000182,
|
||||
0x0004003d,0x00000006,0x000001cf,0x000000ab,0x0007000c,0x00000006,0x000001d0,0x00000001,
|
||||
0x00000028,0x000001ce,0x000001cf,0x00050083,0x00000006,0x000001d1,0x000001cd,0x000001d0,
|
||||
0x0004003d,0x00000006,0x000001d2,0x00000164,0x00050085,0x00000006,0x000001d3,0x00000195,
|
||||
0x000001d2,0x00050041,0x00000007,0x000001d4,0x0000018e,0x00000095,0x0004003d,0x00000006,
|
||||
0x000001d5,0x000001d4,0x00050081,0x00000006,0x000001d6,0x000001d3,0x000001d5,0x0003003e,
|
||||
0x000001d7,0x000001d6,0x00050039,0x00000006,0x000001d8,0x0000000a,0x000001d7,0x00050085,
|
||||
0x00000006,0x000001d9,0x000001d1,0x000001d8,0x0003003e,0x000001cb,0x000001d9,0x0004003d,
|
||||
0x00000006,0x000001db,0x00000191,0x0004007f,0x00000006,0x000001dc,0x000001db,0x0004003d,
|
||||
0x00000006,0x000001dd,0x000001ad,0x0007000c,0x00000006,0x000001de,0x00000001,0x00000028,
|
||||
0x000001dc,0x000001dd,0x0003003e,0x000001da,0x000001de,0x0004003d,0x00000006,0x000001e0,
|
||||
0x0000019b,0x0004007f,0x00000006,0x000001e1,0x000001e0,0x0004003d,0x00000006,0x000001e2,
|
||||
0x000001bc,0x0007000c,0x00000006,0x000001e3,0x00000001,0x00000028,0x000001e1,0x000001e2,
|
||||
0x0003003e,0x000001df,0x000001e3,0x0004003d,0x00000006,0x000001e5,0x000001a4,0x0004007f,
|
||||
0x00000006,0x000001e6,0x000001e5,0x0004003d,0x00000006,0x000001e7,0x000001cb,0x0007000c,
|
||||
0x00000006,0x000001e8,0x00000001,0x00000028,0x000001e6,0x000001e7,0x0003003e,0x000001e4,
|
||||
0x000001e8,0x0004003d,0x00000006,0x000001ec,0x000001da,0x0003003e,0x000001eb,0x000001ec,
|
||||
0x0004003d,0x00000006,0x000001ee,0x000001df,0x0003003e,0x000001ed,0x000001ee,0x0004003d,
|
||||
0x00000006,0x000001f0,0x000001e4,0x0003003e,0x000001ef,0x000001f0,0x00070039,0x00000006,
|
||||
0x000001f1,0x0000001b,0x000001eb,0x000001ed,0x000001ef,0x0007000c,0x00000006,0x000001f2,
|
||||
0x00000001,0x00000025,0x000001f1,0x00000042,0x0007000c,0x00000006,0x000001f3,0x00000001,
|
||||
0x00000028,0x000001ea,0x000001f2,0x00050041,0x000001f4,0x000001f5,0x00000035,0x00000091,
|
||||
0x0004003d,0x0000002b,0x000001f6,0x000001f5,0x0004007c,0x00000006,0x000001f7,0x000001f6,
|
||||
0x00050085,0x00000006,0x000001f8,0x000001f3,0x000001f7,0x0003003e,0x000001e9,0x000001f8,
|
||||
0x0004003d,0x00000006,0x000001fa,0x000001e9,0x00050085,0x00000006,0x000001fb,0x00000195,
|
||||
0x000001fa,0x00050081,0x00000006,0x000001fc,0x000001fb,0x00000038,0x0003003e,0x000001fd,
|
||||
0x000001fc,0x00050039,0x00000006,0x000001fe,0x0000000d,0x000001fd,0x0003003e,0x000001f9,
|
||||
0x000001fe,0x0004003d,0x00000006,0x000001ff,0x000001e9,0x0004003d,0x00000006,0x00000200,
|
||||
0x00000090,0x00050085,0x00000006,0x00000201,0x000001ff,0x00000200,0x0004003d,0x00000006,
|
||||
0x00000202,0x000001e9,0x0004003d,0x00000006,0x00000203,0x0000009c,0x00050085,0x00000006,
|
||||
0x00000204,0x00000202,0x00000203,0x00050081,0x00000006,0x00000205,0x00000201,0x00000204,
|
||||
0x0004003d,0x00000006,0x00000206,0x000001e9,0x0004003d,0x00000006,0x00000207,0x000000b7,
|
||||
0x00050085,0x00000006,0x00000208,0x00000206,0x00000207,0x00050081,0x00000006,0x00000209,
|
||||
0x00000205,0x00000208,0x0004003d,0x00000006,0x0000020a,0x000001e9,0x0004003d,0x00000006,
|
||||
0x0000020b,0x000000ae,0x00050085,0x00000006,0x0000020c,0x0000020a,0x0000020b,0x00050081,
|
||||
0x00000006,0x0000020d,0x00000209,0x0000020c,0x0004003d,0x00000006,0x0000020e,0x000000a5,
|
||||
0x00050081,0x00000006,0x0000020f,0x0000020d,0x0000020e,0x0004003d,0x00000006,0x00000210,
|
||||
0x000001f9,0x00050085,0x00000006,0x00000211,0x0000020f,0x00000210,0x0003003e,0x00000031,
|
||||
0x00000211,0x0004003d,0x00000006,0x00000212,0x000001e9,0x0004003d,0x00000006,0x00000213,
|
||||
0x00000094,0x00050085,0x00000006,0x00000214,0x00000212,0x00000213,0x0004003d,0x00000006,
|
||||
0x00000215,0x000001e9,0x0004003d,0x00000006,0x00000216,0x0000009f,0x00050085,0x00000006,
|
||||
0x00000217,0x00000215,0x00000216,0x00050081,0x00000006,0x00000218,0x00000214,0x00000217,
|
||||
0x0004003d,0x00000006,0x00000219,0x000001e9,0x0004003d,0x00000006,0x0000021a,0x000000ba,
|
||||
0x00050085,0x00000006,0x0000021b,0x00000219,0x0000021a,0x00050081,0x00000006,0x0000021c,
|
||||
0x00000218,0x0000021b,0x0004003d,0x00000006,0x0000021d,0x000001e9,0x0004003d,0x00000006,
|
||||
0x0000021e,0x000000b1,0x00050085,0x00000006,0x0000021f,0x0000021d,0x0000021e,0x00050081,
|
||||
0x00000006,0x00000220,0x0000021c,0x0000021f,0x0004003d,0x00000006,0x00000221,0x000000a8,
|
||||
0x00050081,0x00000006,0x00000222,0x00000220,0x00000221,0x0004003d,0x00000006,0x00000223,
|
||||
0x000001f9,0x00050085,0x00000006,0x00000224,0x00000222,0x00000223,0x0003003e,0x00000032,
|
||||
0x00000224,0x0004003d,0x00000006,0x00000225,0x000001e9,0x0004003d,0x00000006,0x00000226,
|
||||
0x00000098,0x00050085,0x00000006,0x00000227,0x00000225,0x00000226,0x0004003d,0x00000006,
|
||||
0x00000228,0x000001e9,0x0004003d,0x00000006,0x00000229,0x000000a2,0x00050085,0x00000006,
|
||||
0x0000022a,0x00000228,0x00000229,0x00050081,0x00000006,0x0000022b,0x00000227,0x0000022a,
|
||||
0x0004003d,0x00000006,0x0000022c,0x000001e9,0x0004003d,0x00000006,0x0000022d,0x000000bd,
|
||||
0x00050085,0x00000006,0x0000022e,0x0000022c,0x0000022d,0x00050081,0x00000006,0x0000022f,
|
||||
0x0000022b,0x0000022e,0x0004003d,0x00000006,0x00000230,0x000001e9,0x0004003d,0x00000006,
|
||||
0x00000231,0x000000b4,0x00050085,0x00000006,0x00000232,0x00000230,0x00000231,0x00050081,
|
||||
0x00000006,0x00000233,0x0000022f,0x00000232,0x0004003d,0x00000006,0x00000234,0x000000ab,
|
||||
0x00050081,0x00000006,0x00000235,0x00000233,0x00000234,0x0004003d,0x00000006,0x00000236,
|
||||
0x000001f9,0x00050085,0x00000006,0x00000237,0x00000235,0x00000236,0x0003003e,0x00000033,
|
||||
0x00000237,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,165 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t fxaa_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000e4,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000018,0x000000d6,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00060005,0x00000009,0x52766e69,0x6c6f7365,0x6f697475,0x0000006e,0x00030005,
|
||||
0x0000000c,0x00004350,0x00040006,0x0000000c,0x00000000,0x0063646e,0x00060006,0x0000000c,
|
||||
0x00000001,0x6f736572,0x6974756c,0x00006e6f,0x00030005,0x0000000e,0x00006370,0x00030005,
|
||||
0x00000016,0x00007675,0x00060005,0x00000018,0x67617266,0x43786554,0x64726f6f,0x00000000,
|
||||
0x00040005,0x0000001c,0x4e626772,0x00000057,0x00060005,0x00000020,0x75706e49,0x78655474,
|
||||
0x65727574,0x00000000,0x00040005,0x0000002a,0x4e626772,0x00000045,0x00040005,0x00000033,
|
||||
0x53626772,0x00000057,0x00040005,0x0000003c,0x53626772,0x00000045,0x00040005,0x00000045,
|
||||
0x4d626772,0x00000000,0x00040005,0x0000004b,0x616d756c,0x0000574e,0x00040005,0x00000052,
|
||||
0x616d756c,0x0000454e,0x00040005,0x00000055,0x616d756c,0x00005753,0x00040005,0x00000058,
|
||||
0x616d756c,0x00004553,0x00040005,0x0000005b,0x616d756c,0x0000004d,0x00040005,0x0000005e,
|
||||
0x616d756c,0x006e694d,0x00040005,0x00000068,0x616d756c,0x0078614d,0x00030005,0x00000072,
|
||||
0x00726964,0x00050005,0x00000087,0x52726964,0x63756465,0x00000065,0x00060005,0x00000095,
|
||||
0x446e696d,0x61467269,0x726f7463,0x00000000,0x00040005,0x000000ab,0x41626772,0x00000000,
|
||||
0x00040005,0x000000bd,0x42626772,0x00000000,0x00040005,0x000000d0,0x616d756c,0x00000042,
|
||||
0x00050005,0x000000d6,0x4374756f,0x726f6c6f,0x00000000,0x00030047,0x0000000c,0x00000002,
|
||||
0x00050048,0x0000000c,0x00000000,0x00000023,0x00000000,0x00050048,0x0000000c,0x00000001,
|
||||
0x00000023,0x00000010,0x00040047,0x00000018,0x0000001e,0x00000000,0x00040047,0x00000020,
|
||||
0x00000021,0x00000000,0x00040047,0x00000020,0x00000022,0x00000000,0x00040047,0x000000d6,
|
||||
0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,
|
||||
0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,
|
||||
0x00000007,0x00000007,0x0004002b,0x00000006,0x0000000a,0x3f800000,0x00040017,0x0000000b,
|
||||
0x00000006,0x00000004,0x0004001e,0x0000000c,0x0000000b,0x00000007,0x00040020,0x0000000d,
|
||||
0x00000009,0x0000000c,0x0004003b,0x0000000d,0x0000000e,0x00000009,0x00040015,0x0000000f,
|
||||
0x00000020,0x00000001,0x0004002b,0x0000000f,0x00000010,0x00000001,0x00040020,0x00000011,
|
||||
0x00000009,0x00000007,0x00040020,0x00000017,0x00000001,0x00000007,0x0004003b,0x00000017,
|
||||
0x00000018,0x00000001,0x00040017,0x0000001a,0x00000006,0x00000003,0x00040020,0x0000001b,
|
||||
0x00000007,0x0000001a,0x00090019,0x0000001d,0x00000006,0x00000001,0x00000000,0x00000000,
|
||||
0x00000000,0x00000001,0x00000000,0x0003001b,0x0000001e,0x0000001d,0x00040020,0x0000001f,
|
||||
0x00000000,0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000000,0x0004002b,0x00000006,
|
||||
0x00000023,0xbf800000,0x0005002c,0x00000007,0x00000024,0x00000023,0x00000023,0x0005002c,
|
||||
0x00000007,0x0000002d,0x0000000a,0x00000023,0x0005002c,0x00000007,0x00000036,0x00000023,
|
||||
0x0000000a,0x0005002c,0x00000007,0x0000003f,0x0000000a,0x0000000a,0x00040020,0x0000004a,
|
||||
0x00000007,0x00000006,0x0004002b,0x00000006,0x0000004d,0x3e991687,0x0004002b,0x00000006,
|
||||
0x0000004e,0x3f1645a2,0x0004002b,0x00000006,0x0000004f,0x3de978d5,0x0006002c,0x0000001a,
|
||||
0x00000050,0x0000004d,0x0000004e,0x0000004f,0x00040015,0x0000007b,0x00000020,0x00000000,
|
||||
0x0004002b,0x0000007b,0x0000007c,0x00000000,0x0004002b,0x0000007b,0x00000085,0x00000001,
|
||||
0x0004002b,0x00000006,0x0000008f,0x3e800000,0x0004002b,0x00000006,0x00000091,0x3e000000,
|
||||
0x0004002b,0x00000006,0x00000093,0x3c000000,0x0004002b,0x00000006,0x000000a3,0xc1000000,
|
||||
0x0005002c,0x00000007,0x000000a4,0x000000a3,0x000000a3,0x0004002b,0x00000006,0x000000a5,
|
||||
0x41000000,0x0005002c,0x00000007,0x000000a6,0x000000a5,0x000000a5,0x00040020,0x000000aa,
|
||||
0x00000007,0x0000000b,0x0004002b,0x00000006,0x000000ac,0x3f000000,0x0004002b,0x00000006,
|
||||
0x000000b0,0xbe2aaaab,0x0004002b,0x00000006,0x000000b7,0x3e2aaaab,0x0004002b,0x00000006,
|
||||
0x000000c3,0xbf000000,0x0004002b,0x00000006,0x000000d2,0x00000000,0x0007002c,0x0000000b,
|
||||
0x000000d3,0x0000004d,0x0000004e,0x0000004f,0x000000d2,0x00040020,0x000000d5,0x00000003,
|
||||
0x0000000b,0x0004003b,0x000000d5,0x000000d6,0x00000003,0x00020014,0x000000d9,0x00040017,
|
||||
0x000000e1,0x000000d9,0x00000004,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,
|
||||
0x000200f8,0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x00000008,
|
||||
0x00000016,0x00000007,0x0004003b,0x0000001b,0x0000001c,0x00000007,0x0004003b,0x0000001b,
|
||||
0x0000002a,0x00000007,0x0004003b,0x0000001b,0x00000033,0x00000007,0x0004003b,0x0000001b,
|
||||
0x0000003c,0x00000007,0x0004003b,0x0000001b,0x00000045,0x00000007,0x0004003b,0x0000004a,
|
||||
0x0000004b,0x00000007,0x0004003b,0x0000004a,0x00000052,0x00000007,0x0004003b,0x0000004a,
|
||||
0x00000055,0x00000007,0x0004003b,0x0000004a,0x00000058,0x00000007,0x0004003b,0x0000004a,
|
||||
0x0000005b,0x00000007,0x0004003b,0x0000004a,0x0000005e,0x00000007,0x0004003b,0x0000004a,
|
||||
0x00000068,0x00000007,0x0004003b,0x00000008,0x00000072,0x00000007,0x0004003b,0x0000004a,
|
||||
0x00000087,0x00000007,0x0004003b,0x0000004a,0x00000095,0x00000007,0x0004003b,0x000000aa,
|
||||
0x000000ab,0x00000007,0x0004003b,0x000000aa,0x000000bd,0x00000007,0x0004003b,0x0000004a,
|
||||
0x000000d0,0x00000007,0x00050041,0x00000011,0x00000012,0x0000000e,0x00000010,0x0004003d,
|
||||
0x00000007,0x00000013,0x00000012,0x00050050,0x00000007,0x00000014,0x0000000a,0x0000000a,
|
||||
0x00050088,0x00000007,0x00000015,0x00000014,0x00000013,0x0003003e,0x00000009,0x00000015,
|
||||
0x0004003d,0x00000007,0x00000019,0x00000018,0x0003003e,0x00000016,0x00000019,0x0004003d,
|
||||
0x0000001e,0x00000021,0x00000020,0x0004003d,0x00000007,0x00000022,0x00000016,0x0004003d,
|
||||
0x00000007,0x00000025,0x00000009,0x00050085,0x00000007,0x00000026,0x00000024,0x00000025,
|
||||
0x00050081,0x00000007,0x00000027,0x00000022,0x00000026,0x00050057,0x0000000b,0x00000028,
|
||||
0x00000021,0x00000027,0x0008004f,0x0000001a,0x00000029,0x00000028,0x00000028,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x0000001c,0x00000029,0x0004003d,0x0000001e,0x0000002b,
|
||||
0x00000020,0x0004003d,0x00000007,0x0000002c,0x00000016,0x0004003d,0x00000007,0x0000002e,
|
||||
0x00000009,0x00050085,0x00000007,0x0000002f,0x0000002d,0x0000002e,0x00050081,0x00000007,
|
||||
0x00000030,0x0000002c,0x0000002f,0x00050057,0x0000000b,0x00000031,0x0000002b,0x00000030,
|
||||
0x0008004f,0x0000001a,0x00000032,0x00000031,0x00000031,0x00000000,0x00000001,0x00000002,
|
||||
0x0003003e,0x0000002a,0x00000032,0x0004003d,0x0000001e,0x00000034,0x00000020,0x0004003d,
|
||||
0x00000007,0x00000035,0x00000016,0x0004003d,0x00000007,0x00000037,0x00000009,0x00050085,
|
||||
0x00000007,0x00000038,0x00000036,0x00000037,0x00050081,0x00000007,0x00000039,0x00000035,
|
||||
0x00000038,0x00050057,0x0000000b,0x0000003a,0x00000034,0x00000039,0x0008004f,0x0000001a,
|
||||
0x0000003b,0x0000003a,0x0000003a,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000033,
|
||||
0x0000003b,0x0004003d,0x0000001e,0x0000003d,0x00000020,0x0004003d,0x00000007,0x0000003e,
|
||||
0x00000016,0x0004003d,0x00000007,0x00000040,0x00000009,0x00050085,0x00000007,0x00000041,
|
||||
0x0000003f,0x00000040,0x00050081,0x00000007,0x00000042,0x0000003e,0x00000041,0x00050057,
|
||||
0x0000000b,0x00000043,0x0000003d,0x00000042,0x0008004f,0x0000001a,0x00000044,0x00000043,
|
||||
0x00000043,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000003c,0x00000044,0x0004003d,
|
||||
0x0000001e,0x00000046,0x00000020,0x0004003d,0x00000007,0x00000047,0x00000016,0x00050057,
|
||||
0x0000000b,0x00000048,0x00000046,0x00000047,0x0008004f,0x0000001a,0x00000049,0x00000048,
|
||||
0x00000048,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000045,0x00000049,0x0004003d,
|
||||
0x0000001a,0x0000004c,0x0000001c,0x00050094,0x00000006,0x00000051,0x0000004c,0x00000050,
|
||||
0x0003003e,0x0000004b,0x00000051,0x0004003d,0x0000001a,0x00000053,0x0000002a,0x00050094,
|
||||
0x00000006,0x00000054,0x00000053,0x00000050,0x0003003e,0x00000052,0x00000054,0x0004003d,
|
||||
0x0000001a,0x00000056,0x00000033,0x00050094,0x00000006,0x00000057,0x00000056,0x00000050,
|
||||
0x0003003e,0x00000055,0x00000057,0x0004003d,0x0000001a,0x00000059,0x0000003c,0x00050094,
|
||||
0x00000006,0x0000005a,0x00000059,0x00000050,0x0003003e,0x00000058,0x0000005a,0x0004003d,
|
||||
0x0000001a,0x0000005c,0x00000045,0x00050094,0x00000006,0x0000005d,0x0000005c,0x00000050,
|
||||
0x0003003e,0x0000005b,0x0000005d,0x0004003d,0x00000006,0x0000005f,0x0000005b,0x0004003d,
|
||||
0x00000006,0x00000060,0x0000004b,0x0004003d,0x00000006,0x00000061,0x00000052,0x0007000c,
|
||||
0x00000006,0x00000062,0x00000001,0x00000025,0x00000060,0x00000061,0x0004003d,0x00000006,
|
||||
0x00000063,0x00000055,0x0004003d,0x00000006,0x00000064,0x00000058,0x0007000c,0x00000006,
|
||||
0x00000065,0x00000001,0x00000025,0x00000063,0x00000064,0x0007000c,0x00000006,0x00000066,
|
||||
0x00000001,0x00000025,0x00000062,0x00000065,0x0007000c,0x00000006,0x00000067,0x00000001,
|
||||
0x00000025,0x0000005f,0x00000066,0x0003003e,0x0000005e,0x00000067,0x0004003d,0x00000006,
|
||||
0x00000069,0x0000005b,0x0004003d,0x00000006,0x0000006a,0x0000004b,0x0004003d,0x00000006,
|
||||
0x0000006b,0x00000052,0x0007000c,0x00000006,0x0000006c,0x00000001,0x00000028,0x0000006a,
|
||||
0x0000006b,0x0004003d,0x00000006,0x0000006d,0x00000055,0x0004003d,0x00000006,0x0000006e,
|
||||
0x00000058,0x0007000c,0x00000006,0x0000006f,0x00000001,0x00000028,0x0000006d,0x0000006e,
|
||||
0x0007000c,0x00000006,0x00000070,0x00000001,0x00000028,0x0000006c,0x0000006f,0x0007000c,
|
||||
0x00000006,0x00000071,0x00000001,0x00000028,0x00000069,0x00000070,0x0003003e,0x00000068,
|
||||
0x00000071,0x0004003d,0x00000006,0x00000073,0x0000004b,0x0004003d,0x00000006,0x00000074,
|
||||
0x00000052,0x00050081,0x00000006,0x00000075,0x00000073,0x00000074,0x0004003d,0x00000006,
|
||||
0x00000076,0x00000055,0x0004003d,0x00000006,0x00000077,0x00000058,0x00050081,0x00000006,
|
||||
0x00000078,0x00000076,0x00000077,0x00050083,0x00000006,0x00000079,0x00000075,0x00000078,
|
||||
0x0004007f,0x00000006,0x0000007a,0x00000079,0x00050041,0x0000004a,0x0000007d,0x00000072,
|
||||
0x0000007c,0x0003003e,0x0000007d,0x0000007a,0x0004003d,0x00000006,0x0000007e,0x0000004b,
|
||||
0x0004003d,0x00000006,0x0000007f,0x00000055,0x00050081,0x00000006,0x00000080,0x0000007e,
|
||||
0x0000007f,0x0004003d,0x00000006,0x00000081,0x00000052,0x0004003d,0x00000006,0x00000082,
|
||||
0x00000058,0x00050081,0x00000006,0x00000083,0x00000081,0x00000082,0x00050083,0x00000006,
|
||||
0x00000084,0x00000080,0x00000083,0x00050041,0x0000004a,0x00000086,0x00000072,0x00000085,
|
||||
0x0003003e,0x00000086,0x00000084,0x0004003d,0x00000006,0x00000088,0x0000004b,0x0004003d,
|
||||
0x00000006,0x00000089,0x00000052,0x00050081,0x00000006,0x0000008a,0x00000088,0x00000089,
|
||||
0x0004003d,0x00000006,0x0000008b,0x00000055,0x00050081,0x00000006,0x0000008c,0x0000008a,
|
||||
0x0000008b,0x0004003d,0x00000006,0x0000008d,0x00000058,0x00050081,0x00000006,0x0000008e,
|
||||
0x0000008c,0x0000008d,0x00050085,0x00000006,0x00000090,0x0000008e,0x0000008f,0x00050085,
|
||||
0x00000006,0x00000092,0x00000090,0x00000091,0x0007000c,0x00000006,0x00000094,0x00000001,
|
||||
0x00000028,0x00000092,0x00000093,0x0003003e,0x00000087,0x00000094,0x00050041,0x0000004a,
|
||||
0x00000096,0x00000072,0x0000007c,0x0004003d,0x00000006,0x00000097,0x00000096,0x0006000c,
|
||||
0x00000006,0x00000098,0x00000001,0x00000004,0x00000097,0x00050041,0x0000004a,0x00000099,
|
||||
0x00000072,0x00000085,0x0004003d,0x00000006,0x0000009a,0x00000099,0x0006000c,0x00000006,
|
||||
0x0000009b,0x00000001,0x00000004,0x0000009a,0x0007000c,0x00000006,0x0000009c,0x00000001,
|
||||
0x00000025,0x00000098,0x0000009b,0x0004003d,0x00000006,0x0000009d,0x00000087,0x00050081,
|
||||
0x00000006,0x0000009e,0x0000009c,0x0000009d,0x00050088,0x00000006,0x0000009f,0x0000000a,
|
||||
0x0000009e,0x0003003e,0x00000095,0x0000009f,0x0004003d,0x00000007,0x000000a0,0x00000072,
|
||||
0x0004003d,0x00000006,0x000000a1,0x00000095,0x0005008e,0x00000007,0x000000a2,0x000000a0,
|
||||
0x000000a1,0x0008000c,0x00000007,0x000000a7,0x00000001,0x0000002b,0x000000a2,0x000000a4,
|
||||
0x000000a6,0x0004003d,0x00000007,0x000000a8,0x00000009,0x00050085,0x00000007,0x000000a9,
|
||||
0x000000a7,0x000000a8,0x0003003e,0x00000072,0x000000a9,0x0004003d,0x0000001e,0x000000ad,
|
||||
0x00000020,0x0004003d,0x00000007,0x000000ae,0x00000016,0x0004003d,0x00000007,0x000000af,
|
||||
0x00000072,0x0005008e,0x00000007,0x000000b1,0x000000af,0x000000b0,0x00050081,0x00000007,
|
||||
0x000000b2,0x000000ae,0x000000b1,0x00050057,0x0000000b,0x000000b3,0x000000ad,0x000000b2,
|
||||
0x0004003d,0x0000001e,0x000000b4,0x00000020,0x0004003d,0x00000007,0x000000b5,0x00000016,
|
||||
0x0004003d,0x00000007,0x000000b6,0x00000072,0x0005008e,0x00000007,0x000000b8,0x000000b6,
|
||||
0x000000b7,0x00050081,0x00000007,0x000000b9,0x000000b5,0x000000b8,0x00050057,0x0000000b,
|
||||
0x000000ba,0x000000b4,0x000000b9,0x00050081,0x0000000b,0x000000bb,0x000000b3,0x000000ba,
|
||||
0x0005008e,0x0000000b,0x000000bc,0x000000bb,0x000000ac,0x0003003e,0x000000ab,0x000000bc,
|
||||
0x0004003d,0x0000000b,0x000000be,0x000000ab,0x0005008e,0x0000000b,0x000000bf,0x000000be,
|
||||
0x000000ac,0x0004003d,0x0000001e,0x000000c0,0x00000020,0x0004003d,0x00000007,0x000000c1,
|
||||
0x00000016,0x0004003d,0x00000007,0x000000c2,0x00000072,0x0005008e,0x00000007,0x000000c4,
|
||||
0x000000c2,0x000000c3,0x00050081,0x00000007,0x000000c5,0x000000c1,0x000000c4,0x00050057,
|
||||
0x0000000b,0x000000c6,0x000000c0,0x000000c5,0x0004003d,0x0000001e,0x000000c7,0x00000020,
|
||||
0x0004003d,0x00000007,0x000000c8,0x00000016,0x0004003d,0x00000007,0x000000c9,0x00000072,
|
||||
0x0005008e,0x00000007,0x000000ca,0x000000c9,0x000000ac,0x00050081,0x00000007,0x000000cb,
|
||||
0x000000c8,0x000000ca,0x00050057,0x0000000b,0x000000cc,0x000000c7,0x000000cb,0x00050081,
|
||||
0x0000000b,0x000000cd,0x000000c6,0x000000cc,0x0005008e,0x0000000b,0x000000ce,0x000000cd,
|
||||
0x0000008f,0x00050081,0x0000000b,0x000000cf,0x000000bf,0x000000ce,0x0003003e,0x000000bd,
|
||||
0x000000cf,0x0004003d,0x0000000b,0x000000d1,0x000000bd,0x00050094,0x00000006,0x000000d4,
|
||||
0x000000d1,0x000000d3,0x0003003e,0x000000d0,0x000000d4,0x0004003d,0x00000006,0x000000d7,
|
||||
0x000000d0,0x0004003d,0x00000006,0x000000d8,0x0000005e,0x000500b8,0x000000d9,0x000000da,
|
||||
0x000000d7,0x000000d8,0x0004003d,0x00000006,0x000000db,0x000000d0,0x0004003d,0x00000006,
|
||||
0x000000dc,0x00000068,0x000500ba,0x000000d9,0x000000dd,0x000000db,0x000000dc,0x000500a6,
|
||||
0x000000d9,0x000000de,0x000000da,0x000000dd,0x0004003d,0x0000000b,0x000000df,0x000000ab,
|
||||
0x0004003d,0x0000000b,0x000000e0,0x000000bd,0x00070050,0x000000e1,0x000000e2,0x000000de,
|
||||
0x000000de,0x000000de,0x000000de,0x000600a9,0x0000000b,0x000000e3,0x000000e2,0x000000df,
|
||||
0x000000e0,0x0003003e,0x000000d6,0x000000e3,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,174 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t hdr_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000f4,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x000000e9,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00050005,0x00000009,0x63786574,0x64726f6f,0x00000000,0x00060005,0x0000000b,
|
||||
0x67617266,0x43786554,0x64726f6f,0x00000000,0x00030005,0x0000000d,0x00007870,0x00030005,
|
||||
0x00000010,0x00004350,0x00040006,0x00000010,0x00000000,0x0063646e,0x00060006,0x00000010,
|
||||
0x00000001,0x6f736572,0x6974756c,0x00006e6f,0x00030005,0x00000012,0x00006370,0x00040005,
|
||||
0x0000001c,0x6f6c6f63,0x00000072,0x00060005,0x00000020,0x75706e49,0x78655474,0x65727574,
|
||||
0x00000000,0x00050005,0x00000025,0x6f6f6c62,0x75735f6d,0x0000316d,0x00050005,0x0000007c,
|
||||
0x6f6f6c62,0x75735f6d,0x0000326d,0x00040005,0x000000d3,0x74736964,0x00000000,0x00030005,
|
||||
0x000000d5,0x00524448,0x00040005,0x000000dd,0x6e656c62,0x00000064,0x00050005,0x000000e9,
|
||||
0x4374756f,0x726f6c6f,0x00000000,0x00040047,0x0000000b,0x0000001e,0x00000000,0x00030047,
|
||||
0x00000010,0x00000002,0x00050048,0x00000010,0x00000000,0x00000023,0x00000000,0x00050048,
|
||||
0x00000010,0x00000001,0x00000023,0x00000010,0x00040047,0x00000020,0x00000021,0x00000000,
|
||||
0x00040047,0x00000020,0x00000022,0x00000000,0x00040047,0x000000e9,0x0000001e,0x00000000,
|
||||
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,
|
||||
0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,
|
||||
0x00040020,0x0000000a,0x00000001,0x00000007,0x0004003b,0x0000000a,0x0000000b,0x00000001,
|
||||
0x0004002b,0x00000006,0x0000000e,0x3f800000,0x00040017,0x0000000f,0x00000006,0x00000004,
|
||||
0x0004001e,0x00000010,0x0000000f,0x00000007,0x00040020,0x00000011,0x00000009,0x00000010,
|
||||
0x0004003b,0x00000011,0x00000012,0x00000009,0x00040015,0x00000013,0x00000020,0x00000001,
|
||||
0x0004002b,0x00000013,0x00000014,0x00000001,0x00040020,0x00000015,0x00000009,0x00000007,
|
||||
0x00040017,0x0000001a,0x00000006,0x00000003,0x00040020,0x0000001b,0x00000007,0x0000001a,
|
||||
0x00090019,0x0000001d,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,
|
||||
0x00000000,0x0003001b,0x0000001e,0x0000001d,0x00040020,0x0000001f,0x00000000,0x0000001e,
|
||||
0x0004003b,0x0000001f,0x00000020,0x00000000,0x0004002b,0x00000006,0x00000028,0x3f984189,
|
||||
0x0004002b,0x00000006,0x00000029,0xbf984189,0x0005002c,0x00000007,0x0000002a,0x00000028,
|
||||
0x00000029,0x0005002c,0x00000007,0x00000032,0x00000029,0x00000029,0x0005002c,0x00000007,
|
||||
0x0000003c,0x00000028,0x00000028,0x0005002c,0x00000007,0x00000046,0x00000029,0x00000028,
|
||||
0x0004002b,0x00000006,0x00000050,0x00000000,0x0004002b,0x00000006,0x00000051,0xbffdc28f,
|
||||
0x0005002c,0x00000007,0x00000052,0x00000050,0x00000051,0x0004002b,0x00000006,0x0000005c,
|
||||
0x3ffdc28f,0x0005002c,0x00000007,0x0000005d,0x00000050,0x0000005c,0x0005002c,0x00000007,
|
||||
0x00000067,0x00000051,0x00000050,0x0005002c,0x00000007,0x00000071,0x0000005c,0x00000050,
|
||||
0x0004002b,0x00000006,0x00000079,0x3ba3d70a,0x0004002b,0x00000006,0x0000007f,0x3fa70a3d,
|
||||
0x0004002b,0x00000006,0x00000080,0xbfa70a3d,0x0005002c,0x00000007,0x00000081,0x0000007f,
|
||||
0x00000080,0x0005002c,0x00000007,0x00000089,0x00000080,0x00000080,0x0005002c,0x00000007,
|
||||
0x00000093,0x0000007f,0x0000007f,0x0005002c,0x00000007,0x0000009d,0x00000080,0x0000007f,
|
||||
0x0004002b,0x00000006,0x000000a7,0xc00b3333,0x0005002c,0x00000007,0x000000a8,0x00000050,
|
||||
0x000000a7,0x0004002b,0x00000006,0x000000b2,0x400b3333,0x0005002c,0x00000007,0x000000b3,
|
||||
0x00000050,0x000000b2,0x0005002c,0x00000007,0x000000bd,0x000000a7,0x00000050,0x0005002c,
|
||||
0x00000007,0x000000c7,0x000000b2,0x00000050,0x0004002b,0x00000006,0x000000cf,0x3c23d70a,
|
||||
0x00040020,0x000000d2,0x00000007,0x00000006,0x0004002b,0x00000006,0x000000d4,0x3d9db22d,
|
||||
0x0004002b,0x00000006,0x000000e3,0x3fa66666,0x0006002c,0x0000001a,0x000000e4,0x000000e3,
|
||||
0x000000e3,0x000000e3,0x00040020,0x000000e8,0x00000003,0x0000000f,0x0004003b,0x000000e8,
|
||||
0x000000e9,0x00000003,0x0004002b,0x00000006,0x000000f2,0x3f4b020c,0x0004002b,0x00000006,
|
||||
0x000000f3,0x3f5eb852,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
|
||||
0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x00000008,0x0000000d,
|
||||
0x00000007,0x0004003b,0x0000001b,0x0000001c,0x00000007,0x0004003b,0x0000001b,0x00000025,
|
||||
0x00000007,0x0004003b,0x0000001b,0x0000007c,0x00000007,0x0004003b,0x000000d2,0x000000d3,
|
||||
0x00000007,0x0004003b,0x0000001b,0x000000d5,0x00000007,0x0004003b,0x0000001b,0x000000dd,
|
||||
0x00000007,0x0004003d,0x00000007,0x0000000c,0x0000000b,0x0003003e,0x00000009,0x0000000c,
|
||||
0x00050041,0x00000015,0x00000016,0x00000012,0x00000014,0x0004003d,0x00000007,0x00000017,
|
||||
0x00000016,0x00050050,0x00000007,0x00000018,0x0000000e,0x0000000e,0x00050088,0x00000007,
|
||||
0x00000019,0x00000018,0x00000017,0x0003003e,0x0000000d,0x00000019,0x0004003d,0x0000001e,
|
||||
0x00000021,0x00000020,0x0004003d,0x00000007,0x00000022,0x00000009,0x00050057,0x0000000f,
|
||||
0x00000023,0x00000021,0x00000022,0x0008004f,0x0000001a,0x00000024,0x00000023,0x00000023,
|
||||
0x00000000,0x00000001,0x00000002,0x0003003e,0x0000001c,0x00000024,0x0004003d,0x0000001e,
|
||||
0x00000026,0x00000020,0x0004003d,0x00000007,0x00000027,0x00000009,0x0004003d,0x00000007,
|
||||
0x0000002b,0x0000000d,0x00050085,0x00000007,0x0000002c,0x0000002a,0x0000002b,0x00050081,
|
||||
0x00000007,0x0000002d,0x00000027,0x0000002c,0x00050057,0x0000000f,0x0000002e,0x00000026,
|
||||
0x0000002d,0x0008004f,0x0000001a,0x0000002f,0x0000002e,0x0000002e,0x00000000,0x00000001,
|
||||
0x00000002,0x0003003e,0x00000025,0x0000002f,0x0004003d,0x0000001e,0x00000030,0x00000020,
|
||||
0x0004003d,0x00000007,0x00000031,0x00000009,0x0004003d,0x00000007,0x00000033,0x0000000d,
|
||||
0x00050085,0x00000007,0x00000034,0x00000032,0x00000033,0x00050081,0x00000007,0x00000035,
|
||||
0x00000031,0x00000034,0x00050057,0x0000000f,0x00000036,0x00000030,0x00000035,0x0008004f,
|
||||
0x0000001a,0x00000037,0x00000036,0x00000036,0x00000000,0x00000001,0x00000002,0x0004003d,
|
||||
0x0000001a,0x00000038,0x00000025,0x00050081,0x0000001a,0x00000039,0x00000038,0x00000037,
|
||||
0x0003003e,0x00000025,0x00000039,0x0004003d,0x0000001e,0x0000003a,0x00000020,0x0004003d,
|
||||
0x00000007,0x0000003b,0x00000009,0x0004003d,0x00000007,0x0000003d,0x0000000d,0x00050085,
|
||||
0x00000007,0x0000003e,0x0000003c,0x0000003d,0x00050081,0x00000007,0x0000003f,0x0000003b,
|
||||
0x0000003e,0x00050057,0x0000000f,0x00000040,0x0000003a,0x0000003f,0x0008004f,0x0000001a,
|
||||
0x00000041,0x00000040,0x00000040,0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,
|
||||
0x00000042,0x00000025,0x00050081,0x0000001a,0x00000043,0x00000042,0x00000041,0x0003003e,
|
||||
0x00000025,0x00000043,0x0004003d,0x0000001e,0x00000044,0x00000020,0x0004003d,0x00000007,
|
||||
0x00000045,0x00000009,0x0004003d,0x00000007,0x00000047,0x0000000d,0x00050085,0x00000007,
|
||||
0x00000048,0x00000046,0x00000047,0x00050081,0x00000007,0x00000049,0x00000045,0x00000048,
|
||||
0x00050057,0x0000000f,0x0000004a,0x00000044,0x00000049,0x0008004f,0x0000001a,0x0000004b,
|
||||
0x0000004a,0x0000004a,0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,0x0000004c,
|
||||
0x00000025,0x00050081,0x0000001a,0x0000004d,0x0000004c,0x0000004b,0x0003003e,0x00000025,
|
||||
0x0000004d,0x0004003d,0x0000001e,0x0000004e,0x00000020,0x0004003d,0x00000007,0x0000004f,
|
||||
0x00000009,0x0004003d,0x00000007,0x00000053,0x0000000d,0x00050085,0x00000007,0x00000054,
|
||||
0x00000052,0x00000053,0x00050081,0x00000007,0x00000055,0x0000004f,0x00000054,0x00050057,
|
||||
0x0000000f,0x00000056,0x0000004e,0x00000055,0x0008004f,0x0000001a,0x00000057,0x00000056,
|
||||
0x00000056,0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,0x00000058,0x00000025,
|
||||
0x00050081,0x0000001a,0x00000059,0x00000058,0x00000057,0x0003003e,0x00000025,0x00000059,
|
||||
0x0004003d,0x0000001e,0x0000005a,0x00000020,0x0004003d,0x00000007,0x0000005b,0x00000009,
|
||||
0x0004003d,0x00000007,0x0000005e,0x0000000d,0x00050085,0x00000007,0x0000005f,0x0000005d,
|
||||
0x0000005e,0x00050081,0x00000007,0x00000060,0x0000005b,0x0000005f,0x00050057,0x0000000f,
|
||||
0x00000061,0x0000005a,0x00000060,0x0008004f,0x0000001a,0x00000062,0x00000061,0x00000061,
|
||||
0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,0x00000063,0x00000025,0x00050081,
|
||||
0x0000001a,0x00000064,0x00000063,0x00000062,0x0003003e,0x00000025,0x00000064,0x0004003d,
|
||||
0x0000001e,0x00000065,0x00000020,0x0004003d,0x00000007,0x00000066,0x00000009,0x0004003d,
|
||||
0x00000007,0x00000068,0x0000000d,0x00050085,0x00000007,0x00000069,0x00000067,0x00000068,
|
||||
0x00050081,0x00000007,0x0000006a,0x00000066,0x00000069,0x00050057,0x0000000f,0x0000006b,
|
||||
0x00000065,0x0000006a,0x0008004f,0x0000001a,0x0000006c,0x0000006b,0x0000006b,0x00000000,
|
||||
0x00000001,0x00000002,0x0004003d,0x0000001a,0x0000006d,0x00000025,0x00050081,0x0000001a,
|
||||
0x0000006e,0x0000006d,0x0000006c,0x0003003e,0x00000025,0x0000006e,0x0004003d,0x0000001e,
|
||||
0x0000006f,0x00000020,0x0004003d,0x00000007,0x00000070,0x00000009,0x0004003d,0x00000007,
|
||||
0x00000072,0x0000000d,0x00050085,0x00000007,0x00000073,0x00000071,0x00000072,0x00050081,
|
||||
0x00000007,0x00000074,0x00000070,0x00000073,0x00050057,0x0000000f,0x00000075,0x0000006f,
|
||||
0x00000074,0x0008004f,0x0000001a,0x00000076,0x00000075,0x00000075,0x00000000,0x00000001,
|
||||
0x00000002,0x0004003d,0x0000001a,0x00000077,0x00000025,0x00050081,0x0000001a,0x00000078,
|
||||
0x00000077,0x00000076,0x0003003e,0x00000025,0x00000078,0x0004003d,0x0000001a,0x0000007a,
|
||||
0x00000025,0x0005008e,0x0000001a,0x0000007b,0x0000007a,0x00000079,0x0003003e,0x00000025,
|
||||
0x0000007b,0x0004003d,0x0000001e,0x0000007d,0x00000020,0x0004003d,0x00000007,0x0000007e,
|
||||
0x00000009,0x0004003d,0x00000007,0x00000082,0x0000000d,0x00050085,0x00000007,0x00000083,
|
||||
0x00000081,0x00000082,0x00050081,0x00000007,0x00000084,0x0000007e,0x00000083,0x00050057,
|
||||
0x0000000f,0x00000085,0x0000007d,0x00000084,0x0008004f,0x0000001a,0x00000086,0x00000085,
|
||||
0x00000085,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000007c,0x00000086,0x0004003d,
|
||||
0x0000001e,0x00000087,0x00000020,0x0004003d,0x00000007,0x00000088,0x00000009,0x0004003d,
|
||||
0x00000007,0x0000008a,0x0000000d,0x00050085,0x00000007,0x0000008b,0x00000089,0x0000008a,
|
||||
0x00050081,0x00000007,0x0000008c,0x00000088,0x0000008b,0x00050057,0x0000000f,0x0000008d,
|
||||
0x00000087,0x0000008c,0x0008004f,0x0000001a,0x0000008e,0x0000008d,0x0000008d,0x00000000,
|
||||
0x00000001,0x00000002,0x0004003d,0x0000001a,0x0000008f,0x0000007c,0x00050081,0x0000001a,
|
||||
0x00000090,0x0000008f,0x0000008e,0x0003003e,0x0000007c,0x00000090,0x0004003d,0x0000001e,
|
||||
0x00000091,0x00000020,0x0004003d,0x00000007,0x00000092,0x00000009,0x0004003d,0x00000007,
|
||||
0x00000094,0x0000000d,0x00050085,0x00000007,0x00000095,0x00000093,0x00000094,0x00050081,
|
||||
0x00000007,0x00000096,0x00000092,0x00000095,0x00050057,0x0000000f,0x00000097,0x00000091,
|
||||
0x00000096,0x0008004f,0x0000001a,0x00000098,0x00000097,0x00000097,0x00000000,0x00000001,
|
||||
0x00000002,0x0004003d,0x0000001a,0x00000099,0x0000007c,0x00050081,0x0000001a,0x0000009a,
|
||||
0x00000099,0x00000098,0x0003003e,0x0000007c,0x0000009a,0x0004003d,0x0000001e,0x0000009b,
|
||||
0x00000020,0x0004003d,0x00000007,0x0000009c,0x00000009,0x0004003d,0x00000007,0x0000009e,
|
||||
0x0000000d,0x00050085,0x00000007,0x0000009f,0x0000009d,0x0000009e,0x00050081,0x00000007,
|
||||
0x000000a0,0x0000009c,0x0000009f,0x00050057,0x0000000f,0x000000a1,0x0000009b,0x000000a0,
|
||||
0x0008004f,0x0000001a,0x000000a2,0x000000a1,0x000000a1,0x00000000,0x00000001,0x00000002,
|
||||
0x0004003d,0x0000001a,0x000000a3,0x0000007c,0x00050081,0x0000001a,0x000000a4,0x000000a3,
|
||||
0x000000a2,0x0003003e,0x0000007c,0x000000a4,0x0004003d,0x0000001e,0x000000a5,0x00000020,
|
||||
0x0004003d,0x00000007,0x000000a6,0x00000009,0x0004003d,0x00000007,0x000000a9,0x0000000d,
|
||||
0x00050085,0x00000007,0x000000aa,0x000000a8,0x000000a9,0x00050081,0x00000007,0x000000ab,
|
||||
0x000000a6,0x000000aa,0x00050057,0x0000000f,0x000000ac,0x000000a5,0x000000ab,0x0008004f,
|
||||
0x0000001a,0x000000ad,0x000000ac,0x000000ac,0x00000000,0x00000001,0x00000002,0x0004003d,
|
||||
0x0000001a,0x000000ae,0x0000007c,0x00050081,0x0000001a,0x000000af,0x000000ae,0x000000ad,
|
||||
0x0003003e,0x0000007c,0x000000af,0x0004003d,0x0000001e,0x000000b0,0x00000020,0x0004003d,
|
||||
0x00000007,0x000000b1,0x00000009,0x0004003d,0x00000007,0x000000b4,0x0000000d,0x00050085,
|
||||
0x00000007,0x000000b5,0x000000b3,0x000000b4,0x00050081,0x00000007,0x000000b6,0x000000b1,
|
||||
0x000000b5,0x00050057,0x0000000f,0x000000b7,0x000000b0,0x000000b6,0x0008004f,0x0000001a,
|
||||
0x000000b8,0x000000b7,0x000000b7,0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,
|
||||
0x000000b9,0x0000007c,0x00050081,0x0000001a,0x000000ba,0x000000b9,0x000000b8,0x0003003e,
|
||||
0x0000007c,0x000000ba,0x0004003d,0x0000001e,0x000000bb,0x00000020,0x0004003d,0x00000007,
|
||||
0x000000bc,0x00000009,0x0004003d,0x00000007,0x000000be,0x0000000d,0x00050085,0x00000007,
|
||||
0x000000bf,0x000000bd,0x000000be,0x00050081,0x00000007,0x000000c0,0x000000bc,0x000000bf,
|
||||
0x00050057,0x0000000f,0x000000c1,0x000000bb,0x000000c0,0x0008004f,0x0000001a,0x000000c2,
|
||||
0x000000c1,0x000000c1,0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,0x000000c3,
|
||||
0x0000007c,0x00050081,0x0000001a,0x000000c4,0x000000c3,0x000000c2,0x0003003e,0x0000007c,
|
||||
0x000000c4,0x0004003d,0x0000001e,0x000000c5,0x00000020,0x0004003d,0x00000007,0x000000c6,
|
||||
0x00000009,0x0004003d,0x00000007,0x000000c8,0x0000000d,0x00050085,0x00000007,0x000000c9,
|
||||
0x000000c7,0x000000c8,0x00050081,0x00000007,0x000000ca,0x000000c6,0x000000c9,0x00050057,
|
||||
0x0000000f,0x000000cb,0x000000c5,0x000000ca,0x0008004f,0x0000001a,0x000000cc,0x000000cb,
|
||||
0x000000cb,0x00000000,0x00000001,0x00000002,0x0004003d,0x0000001a,0x000000cd,0x0000007c,
|
||||
0x00050081,0x0000001a,0x000000ce,0x000000cd,0x000000cc,0x0003003e,0x0000007c,0x000000ce,
|
||||
0x0004003d,0x0000001a,0x000000d0,0x0000007c,0x0005008e,0x0000001a,0x000000d1,0x000000d0,
|
||||
0x000000cf,0x0003003e,0x0000007c,0x000000d1,0x0003003e,0x000000d3,0x000000d4,0x0004003d,
|
||||
0x0000001a,0x000000d6,0x0000001c,0x0004003d,0x0000001a,0x000000d7,0x0000007c,0x0004003d,
|
||||
0x0000001a,0x000000d8,0x00000025,0x00050083,0x0000001a,0x000000d9,0x000000d7,0x000000d8,
|
||||
0x00050081,0x0000001a,0x000000da,0x000000d6,0x000000d9,0x0004003d,0x00000006,0x000000db,
|
||||
0x000000d3,0x0005008e,0x0000001a,0x000000dc,0x000000da,0x000000db,0x0003003e,0x000000d5,
|
||||
0x000000dc,0x0004003d,0x0000001a,0x000000de,0x000000d5,0x0004003d,0x0000001a,0x000000df,
|
||||
0x0000001c,0x00050081,0x0000001a,0x000000e0,0x000000de,0x000000df,0x0003003e,0x000000dd,
|
||||
0x000000e0,0x0004003d,0x0000001a,0x000000e1,0x000000dd,0x0006000c,0x0000001a,0x000000e2,
|
||||
0x00000001,0x00000004,0x000000e1,0x0007000c,0x0000001a,0x000000e5,0x00000001,0x0000001a,
|
||||
0x000000e2,0x000000e4,0x0004003d,0x0000001a,0x000000e6,0x000000d5,0x00050081,0x0000001a,
|
||||
0x000000e7,0x000000e5,0x000000e6,0x0003003e,0x0000001c,0x000000e7,0x0004003d,0x0000001a,
|
||||
0x000000ea,0x0000001c,0x00060050,0x0000001a,0x000000eb,0x00000050,0x00000050,0x00000050,
|
||||
0x00060050,0x0000001a,0x000000ec,0x0000000e,0x0000000e,0x0000000e,0x0008000c,0x0000001a,
|
||||
0x000000ed,0x00000001,0x0000002b,0x000000ea,0x000000eb,0x000000ec,0x00050051,0x00000006,
|
||||
0x000000ee,0x000000ed,0x00000000,0x00050051,0x00000006,0x000000ef,0x000000ed,0x00000001,
|
||||
0x00050051,0x00000006,0x000000f0,0x000000ed,0x00000002,0x00070050,0x0000000f,0x000000f1,
|
||||
0x000000ee,0x000000ef,0x000000f0,0x0000000e,0x0003003e,0x000000e9,0x000000f1,0x000100fd,
|
||||
0x00010038
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,154 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t ntsc_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000d5,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000000bc,0x000000cf,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00060005,0x0000000c,0x6c707061,0x53544e79,0x66762843,0x00003b32,0x00030005,
|
||||
0x0000000b,0x00007675,0x00070005,0x0000000f,0x6c707061,0x61635379,0x6e696c6e,0x76287365,
|
||||
0x003b3266,0x00030005,0x0000000e,0x00007675,0x00060005,0x00000013,0x6c707061,0x72615779,
|
||||
0x66762870,0x00003b32,0x00030005,0x00000012,0x00007675,0x00030005,0x00000016,0x006c6f63,
|
||||
0x00060005,0x0000001a,0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x00000020,
|
||||
0x00716979,0x00050005,0x00000032,0x6f726863,0x6850616d,0x00657361,0x00030005,0x00000038,
|
||||
0x00004350,0x00040006,0x00000038,0x00000000,0x0063646e,0x00060006,0x00000038,0x00000001,
|
||||
0x6f736572,0x6974756c,0x00006e6f,0x00060006,0x00000038,0x00000002,0x6d617266,0x756f4365,
|
||||
0x0000746e,0x00030005,0x0000003a,0x00006370,0x00030005,0x00000058,0x00626772,0x00050005,
|
||||
0x00000066,0x616e6966,0x6c6f436c,0x0000726f,0x00030005,0x00000082,0x006c6f63,0x00050005,
|
||||
0x00000087,0x6e616373,0x656e696c,0x00000000,0x00030005,0x0000009e,0x00000072,0x00050005,
|
||||
0x000000ba,0x70726177,0x56556465,0x00000000,0x00060005,0x000000bc,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00040005,0x000000bd,0x61726170,0x0000006d,0x00050005,0x000000c0,
|
||||
0x6373746e,0x6f6c6f43,0x00000072,0x00040005,0x000000c1,0x61726170,0x0000006d,0x00060005,
|
||||
0x000000c4,0x6e616373,0x656e696c,0x6f6c6f43,0x00000072,0x00040005,0x000000c5,0x61726170,
|
||||
0x0000006d,0x00050005,0x000000c8,0x616e6966,0x6c6f436c,0x0000726f,0x00050005,0x000000cf,
|
||||
0x4374756f,0x726f6c6f,0x00000000,0x00040047,0x0000001a,0x00000021,0x00000000,0x00040047,
|
||||
0x0000001a,0x00000022,0x00000000,0x00030047,0x00000038,0x00000002,0x00050048,0x00000038,
|
||||
0x00000000,0x00000023,0x00000000,0x00050048,0x00000038,0x00000001,0x00000023,0x00000010,
|
||||
0x00050048,0x00000038,0x00000002,0x00000023,0x00000018,0x00040047,0x000000bc,0x0000001e,
|
||||
0x00000000,0x00040047,0x000000cf,0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,
|
||||
0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,
|
||||
0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00040017,0x00000009,0x00000006,
|
||||
0x00000003,0x00040021,0x0000000a,0x00000009,0x00000008,0x00040021,0x00000011,0x00000007,
|
||||
0x00000008,0x00040020,0x00000015,0x00000007,0x00000009,0x00090019,0x00000017,0x00000006,
|
||||
0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000018,
|
||||
0x00000017,0x00040020,0x00000019,0x00000000,0x00000018,0x0004003b,0x00000019,0x0000001a,
|
||||
0x00000000,0x00040017,0x0000001d,0x00000006,0x00000004,0x00040018,0x00000022,0x00000009,
|
||||
0x00000003,0x0004002b,0x00000006,0x00000023,0x3e991687,0x0004002b,0x00000006,0x00000024,
|
||||
0x3f1645a2,0x0004002b,0x00000006,0x00000025,0x3de978d5,0x0006002c,0x00000009,0x00000026,
|
||||
0x00000023,0x00000024,0x00000025,0x0004002b,0x00000006,0x00000027,0x3f189375,0x0004002b,
|
||||
0x00000006,0x00000028,0xbe8ccccd,0x0004002b,0x00000006,0x00000029,0xbea45a1d,0x0006002c,
|
||||
0x00000009,0x0000002a,0x00000027,0x00000028,0x00000029,0x0004002b,0x00000006,0x0000002b,
|
||||
0x3e591687,0x0004002b,0x00000006,0x0000002c,0xbf05e354,0x0004002b,0x00000006,0x0000002d,
|
||||
0x3e9f3b64,0x0006002c,0x00000009,0x0000002e,0x0000002b,0x0000002c,0x0000002d,0x0006002c,
|
||||
0x00000022,0x0000002f,0x00000026,0x0000002a,0x0000002e,0x00040020,0x00000031,0x00000007,
|
||||
0x00000006,0x0004002b,0x00000006,0x00000033,0x40490fdb,0x00040015,0x00000034,0x00000020,
|
||||
0x00000000,0x0004002b,0x00000034,0x00000035,0x00000001,0x0005001e,0x00000038,0x0000001d,
|
||||
0x00000007,0x00000006,0x00040020,0x00000039,0x00000009,0x00000038,0x0004003b,0x00000039,
|
||||
0x0000003a,0x00000009,0x00040015,0x0000003b,0x00000020,0x00000001,0x0004002b,0x0000003b,
|
||||
0x0000003c,0x00000001,0x00040020,0x0000003d,0x00000009,0x00000006,0x0004002b,0x00000006,
|
||||
0x00000041,0x40000000,0x0004002b,0x0000003b,0x00000043,0x00000002,0x0004002b,0x00000006,
|
||||
0x00000049,0x3f000000,0x0004002b,0x00000034,0x00000053,0x00000002,0x0004002b,0x00000006,
|
||||
0x0000005a,0x3f800000,0x0004002b,0x00000006,0x0000005b,0x3f74bc6a,0x0004002b,0x00000006,
|
||||
0x0000005c,0x3f1ef9db,0x0006002c,0x00000009,0x0000005d,0x0000005a,0x0000005b,0x0000005c,
|
||||
0x0004002b,0x00000006,0x0000005e,0xbe8b4396,0x0004002b,0x00000006,0x0000005f,0xbf25a1cb,
|
||||
0x0006002c,0x00000009,0x00000060,0x0000005a,0x0000005e,0x0000005f,0x0004002b,0x00000006,
|
||||
0x00000061,0xbf8d9168,0x0004002b,0x00000006,0x00000062,0x3fda3d71,0x0006002c,0x00000009,
|
||||
0x00000063,0x0000005a,0x00000061,0x00000062,0x0006002c,0x00000022,0x00000064,0x0000005d,
|
||||
0x00000060,0x00000063,0x0004002b,0x00000006,0x00000069,0x3ba3d70a,0x0004002b,0x00000006,
|
||||
0x0000006a,0x00000000,0x0005002c,0x00000007,0x0000006b,0x00000069,0x0000006a,0x0004002b,
|
||||
0x00000034,0x0000006e,0x00000000,0x0004002b,0x00000006,0x00000073,0x3b03126f,0x0005002c,
|
||||
0x00000007,0x00000074,0x0000006a,0x00000073,0x0004002b,0x00000006,0x00000090,0x3eb33333,
|
||||
0x0004002b,0x00000006,0x000000b0,0x3c23d70a,0x00040020,0x000000bb,0x00000001,0x00000007,
|
||||
0x0004003b,0x000000bb,0x000000bc,0x00000001,0x0004002b,0x00000006,0x000000cb,0x3f333333,
|
||||
0x00040020,0x000000ce,0x00000003,0x0000001d,0x0004003b,0x000000ce,0x000000cf,0x00000003,
|
||||
0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
|
||||
0x00000008,0x000000ba,0x00000007,0x0004003b,0x00000008,0x000000bd,0x00000007,0x0004003b,
|
||||
0x00000015,0x000000c0,0x00000007,0x0004003b,0x00000008,0x000000c1,0x00000007,0x0004003b,
|
||||
0x00000015,0x000000c4,0x00000007,0x0004003b,0x00000008,0x000000c5,0x00000007,0x0004003b,
|
||||
0x00000015,0x000000c8,0x00000007,0x0004003d,0x00000007,0x000000be,0x000000bc,0x0003003e,
|
||||
0x000000bd,0x000000be,0x00050039,0x00000007,0x000000bf,0x00000013,0x000000bd,0x0003003e,
|
||||
0x000000ba,0x000000bf,0x0004003d,0x00000007,0x000000c2,0x000000ba,0x0003003e,0x000000c1,
|
||||
0x000000c2,0x00050039,0x00000009,0x000000c3,0x0000000c,0x000000c1,0x0003003e,0x000000c0,
|
||||
0x000000c3,0x0004003d,0x00000007,0x000000c6,0x000000ba,0x0003003e,0x000000c5,0x000000c6,
|
||||
0x00050039,0x00000009,0x000000c7,0x0000000f,0x000000c5,0x0003003e,0x000000c4,0x000000c7,
|
||||
0x0004003d,0x00000009,0x000000c9,0x000000c0,0x0004003d,0x00000009,0x000000ca,0x000000c4,
|
||||
0x00060050,0x00000009,0x000000cc,0x000000cb,0x000000cb,0x000000cb,0x0008000c,0x00000009,
|
||||
0x000000cd,0x00000001,0x0000002e,0x000000c9,0x000000ca,0x000000cc,0x0003003e,0x000000c8,
|
||||
0x000000cd,0x0004003d,0x00000009,0x000000d0,0x000000c8,0x00050051,0x00000006,0x000000d1,
|
||||
0x000000d0,0x00000000,0x00050051,0x00000006,0x000000d2,0x000000d0,0x00000001,0x00050051,
|
||||
0x00000006,0x000000d3,0x000000d0,0x00000002,0x00070050,0x0000001d,0x000000d4,0x000000d1,
|
||||
0x000000d2,0x000000d3,0x0000005a,0x0003003e,0x000000cf,0x000000d4,0x000100fd,0x00010038,
|
||||
0x00050036,0x00000009,0x0000000c,0x00000000,0x0000000a,0x00030037,0x00000008,0x0000000b,
|
||||
0x000200f8,0x0000000d,0x0004003b,0x00000015,0x00000016,0x00000007,0x0004003b,0x00000015,
|
||||
0x00000020,0x00000007,0x0004003b,0x00000031,0x00000032,0x00000007,0x0004003b,0x00000015,
|
||||
0x00000058,0x00000007,0x0004003b,0x00000015,0x00000066,0x00000007,0x0004003d,0x00000018,
|
||||
0x0000001b,0x0000001a,0x0004003d,0x00000007,0x0000001c,0x0000000b,0x00050057,0x0000001d,
|
||||
0x0000001e,0x0000001b,0x0000001c,0x0008004f,0x00000009,0x0000001f,0x0000001e,0x0000001e,
|
||||
0x00000000,0x00000001,0x00000002,0x0003003e,0x00000016,0x0000001f,0x0004003d,0x00000009,
|
||||
0x00000021,0x00000016,0x00050090,0x00000009,0x00000030,0x00000021,0x0000002f,0x0003003e,
|
||||
0x00000020,0x00000030,0x00050041,0x00000031,0x00000036,0x0000000b,0x00000035,0x0004003d,
|
||||
0x00000006,0x00000037,0x00000036,0x00060041,0x0000003d,0x0000003e,0x0000003a,0x0000003c,
|
||||
0x00000035,0x0004003d,0x00000006,0x0000003f,0x0000003e,0x00050085,0x00000006,0x00000040,
|
||||
0x00000037,0x0000003f,0x0005008d,0x00000006,0x00000042,0x00000040,0x00000041,0x00050041,
|
||||
0x0000003d,0x00000044,0x0000003a,0x00000043,0x0004003d,0x00000006,0x00000045,0x00000044,
|
||||
0x00050081,0x00000006,0x00000046,0x00000042,0x00000045,0x00050085,0x00000006,0x00000047,
|
||||
0x00000033,0x00000046,0x0003003e,0x00000032,0x00000047,0x0004003d,0x00000006,0x00000048,
|
||||
0x00000032,0x00050085,0x00000006,0x0000004a,0x00000048,0x00000049,0x0006000c,0x00000006,
|
||||
0x0000004b,0x00000001,0x0000000e,0x0000004a,0x00050041,0x00000031,0x0000004c,0x00000020,
|
||||
0x00000035,0x0004003d,0x00000006,0x0000004d,0x0000004c,0x00050085,0x00000006,0x0000004e,
|
||||
0x0000004d,0x0000004b,0x00050041,0x00000031,0x0000004f,0x00000020,0x00000035,0x0003003e,
|
||||
0x0000004f,0x0000004e,0x0004003d,0x00000006,0x00000050,0x00000032,0x00050085,0x00000006,
|
||||
0x00000051,0x00000050,0x00000049,0x0006000c,0x00000006,0x00000052,0x00000001,0x0000000d,
|
||||
0x00000051,0x00050041,0x00000031,0x00000054,0x00000020,0x00000053,0x0004003d,0x00000006,
|
||||
0x00000055,0x00000054,0x00050085,0x00000006,0x00000056,0x00000055,0x00000052,0x00050041,
|
||||
0x00000031,0x00000057,0x00000020,0x00000053,0x0003003e,0x00000057,0x00000056,0x0004003d,
|
||||
0x00000009,0x00000059,0x00000020,0x00050090,0x00000009,0x00000065,0x00000059,0x00000064,
|
||||
0x0003003e,0x00000058,0x00000065,0x0004003d,0x00000018,0x00000067,0x0000001a,0x0004003d,
|
||||
0x00000007,0x00000068,0x0000000b,0x00050081,0x00000007,0x0000006c,0x00000068,0x0000006b,
|
||||
0x00050057,0x0000001d,0x0000006d,0x00000067,0x0000006c,0x00050051,0x00000006,0x0000006f,
|
||||
0x0000006d,0x00000000,0x00050041,0x00000031,0x00000070,0x00000066,0x0000006e,0x0003003e,
|
||||
0x00000070,0x0000006f,0x0004003d,0x00000018,0x00000071,0x0000001a,0x0004003d,0x00000007,
|
||||
0x00000072,0x0000000b,0x00050081,0x00000007,0x00000075,0x00000072,0x00000074,0x00050057,
|
||||
0x0000001d,0x00000076,0x00000071,0x00000075,0x00050051,0x00000006,0x00000077,0x00000076,
|
||||
0x00000001,0x00050041,0x00000031,0x00000078,0x00000066,0x00000035,0x0003003e,0x00000078,
|
||||
0x00000077,0x0004003d,0x00000018,0x00000079,0x0000001a,0x0004003d,0x00000007,0x0000007a,
|
||||
0x0000000b,0x00050083,0x00000007,0x0000007b,0x0000007a,0x0000006b,0x00050057,0x0000001d,
|
||||
0x0000007c,0x00000079,0x0000007b,0x00050051,0x00000006,0x0000007d,0x0000007c,0x00000002,
|
||||
0x00050041,0x00000031,0x0000007e,0x00000066,0x00000053,0x0003003e,0x0000007e,0x0000007d,
|
||||
0x0004003d,0x00000009,0x0000007f,0x00000066,0x000200fe,0x0000007f,0x00010038,0x00050036,
|
||||
0x00000009,0x0000000f,0x00000000,0x0000000a,0x00030037,0x00000008,0x0000000e,0x000200f8,
|
||||
0x00000010,0x0004003b,0x00000015,0x00000082,0x00000007,0x0004003b,0x00000031,0x00000087,
|
||||
0x00000007,0x0004003d,0x00000018,0x00000083,0x0000001a,0x0004003d,0x00000007,0x00000084,
|
||||
0x0000000e,0x00050057,0x0000001d,0x00000085,0x00000083,0x00000084,0x0008004f,0x00000009,
|
||||
0x00000086,0x00000085,0x00000085,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000082,
|
||||
0x00000086,0x00050041,0x00000031,0x00000088,0x0000000e,0x00000035,0x0004003d,0x00000006,
|
||||
0x00000089,0x00000088,0x00060041,0x0000003d,0x0000008a,0x0000003a,0x0000003c,0x00000035,
|
||||
0x0004003d,0x00000006,0x0000008b,0x0000008a,0x00050085,0x00000006,0x0000008c,0x00000089,
|
||||
0x0000008b,0x00050085,0x00000006,0x0000008d,0x0000008c,0x00000041,0x0006000c,0x00000006,
|
||||
0x0000008e,0x00000001,0x0000000d,0x0000008d,0x0006000c,0x00000006,0x0000008f,0x00000001,
|
||||
0x00000004,0x0000008e,0x00050085,0x00000006,0x00000091,0x0000008f,0x00000090,0x0003003e,
|
||||
0x00000087,0x00000091,0x0004003d,0x00000006,0x00000092,0x00000087,0x00050085,0x00000006,
|
||||
0x00000093,0x00000092,0x00000049,0x00050083,0x00000006,0x00000094,0x0000005a,0x00000093,
|
||||
0x0004003d,0x00000009,0x00000095,0x00000082,0x0005008e,0x00000009,0x00000096,0x00000095,
|
||||
0x00000094,0x0003003e,0x00000082,0x00000096,0x0004003d,0x00000009,0x00000097,0x00000082,
|
||||
0x000200fe,0x00000097,0x00010038,0x00050036,0x00000007,0x00000013,0x00000000,0x00000011,
|
||||
0x00030037,0x00000008,0x00000012,0x000200f8,0x00000014,0x0004003b,0x00000031,0x0000009e,
|
||||
0x00000007,0x0004003d,0x00000007,0x0000009a,0x00000012,0x0005008e,0x00000007,0x0000009b,
|
||||
0x0000009a,0x00000041,0x00050050,0x00000007,0x0000009c,0x0000005a,0x0000005a,0x00050083,
|
||||
0x00000007,0x0000009d,0x0000009b,0x0000009c,0x0003003e,0x00000012,0x0000009d,0x00050041,
|
||||
0x00000031,0x0000009f,0x00000012,0x0000006e,0x0004003d,0x00000006,0x000000a0,0x0000009f,
|
||||
0x00050041,0x00000031,0x000000a1,0x00000012,0x0000006e,0x0004003d,0x00000006,0x000000a2,
|
||||
0x000000a1,0x00050085,0x00000006,0x000000a3,0x000000a0,0x000000a2,0x00050041,0x00000031,
|
||||
0x000000a4,0x00000012,0x00000035,0x0004003d,0x00000006,0x000000a5,0x000000a4,0x00050041,
|
||||
0x00000031,0x000000a6,0x00000012,0x00000035,0x0004003d,0x00000006,0x000000a7,0x000000a6,
|
||||
0x00050085,0x00000006,0x000000a8,0x000000a5,0x000000a7,0x00050081,0x00000006,0x000000a9,
|
||||
0x000000a3,0x000000a8,0x0006000c,0x00000006,0x000000aa,0x00000001,0x0000001f,0x000000a9,
|
||||
0x0003003e,0x0000009e,0x000000aa,0x0004003d,0x00000007,0x000000ab,0x00000012,0x0004003d,
|
||||
0x00000006,0x000000ac,0x0000009e,0x0004003d,0x00000006,0x000000ad,0x0000009e,0x00050085,
|
||||
0x00000006,0x000000ae,0x000000ac,0x000000ad,0x0005008e,0x00000007,0x000000af,0x000000ab,
|
||||
0x000000ae,0x0005008e,0x00000007,0x000000b1,0x000000af,0x000000b0,0x0004003d,0x00000007,
|
||||
0x000000b2,0x00000012,0x00050081,0x00000007,0x000000b3,0x000000b2,0x000000b1,0x0003003e,
|
||||
0x00000012,0x000000b3,0x0004003d,0x00000007,0x000000b4,0x00000012,0x0005008e,0x00000007,
|
||||
0x000000b5,0x000000b4,0x00000049,0x00050050,0x00000007,0x000000b6,0x00000049,0x00000049,
|
||||
0x00050081,0x00000007,0x000000b7,0x000000b5,0x000000b6,0x000200fe,0x000000b7,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,403 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t sgsr_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x00000216,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000051,0x00000214,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00070005,0x0000000a,0x74736166,0x636e614c,0x32736f7a,0x3b316628,0x00000000,
|
||||
0x00030005,0x00000009,0x00000078,0x00080005,0x00000012,0x67696577,0x28597468,0x663b3166,
|
||||
0x31663b31,0x3b31663b,0x00000000,0x00030005,0x0000000e,0x00007864,0x00030005,0x0000000f,
|
||||
0x00007964,0x00030005,0x00000010,0x00000063,0x00030005,0x00000011,0x00647473,0x00030005,
|
||||
0x00000014,0x00004177,0x00030005,0x00000018,0x00004277,0x00030005,0x00000026,0x00000078,
|
||||
0x00030005,0x00000038,0x00000077,0x00040005,0x00000039,0x61726170,0x0000006d,0x00060005,
|
||||
0x00000045,0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00030005,0x00000046,0x00004350,
|
||||
0x00040006,0x00000046,0x00000000,0x0063646e,0x00070006,0x00000046,0x00000001,0x77656956,
|
||||
0x74726f70,0x6f666e49,0x00000000,0x00070006,0x00000046,0x00000002,0x65676445,0x72616853,
|
||||
0x73656e70,0x00000073,0x00030005,0x00000048,0x00006370,0x00030005,0x0000004f,0x00007675,
|
||||
0x00060005,0x00000051,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x00000053,
|
||||
0x6f6c6f63,0x00000072,0x00030005,0x00000057,0x00307370,0x00050005,0x00000067,0x43676d69,
|
||||
0x64726f6f,0x00000000,0x00060005,0x00000070,0x43676d69,0x64726f6f,0x65786950,0x0000006c,
|
||||
0x00040005,0x00000073,0x726f6f63,0x00000064,0x00030005,0x00000078,0x00006c70,0x00040005,
|
||||
0x0000007d,0x7466656c,0x00000000,0x00050005,0x00000081,0x65676465,0x65746f56,0x00000000,
|
||||
0x00040005,0x000000a2,0x68676972,0x00000074,0x00040005,0x000000aa,0x6f447075,0x00006e77,
|
||||
0x00040005,0x000000c5,0x6e61656d,0x00000000,0x00030005,0x000000e4,0x006d7573,0x00030005,
|
||||
0x00000114,0x00647473,0x00030005,0x00000118,0x00595761,0x00040005,0x0000011c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000011f,0x61726170,0x0000006d,0x00040005,0x00000120,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000123,0x61726170,0x0000006d,0x00040005,0x0000012c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000012d,0x61726170,0x0000006d,0x00040005,0x0000012e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000131,0x61726170,0x0000006d,0x00040005,0x0000013d,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000013e,0x61726170,0x0000006d,0x00040005,0x0000013f,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000142,0x61726170,0x0000006d,0x00040005,0x0000014a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000014d,0x61726170,0x0000006d,0x00040005,0x0000014e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000151,0x61726170,0x0000006d,0x00040005,0x0000015c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000015d,0x61726170,0x0000006d,0x00040005,0x0000015e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000161,0x61726170,0x0000006d,0x00040005,0x00000169,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000016c,0x61726170,0x0000006d,0x00040005,0x0000016d,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000170,0x61726170,0x0000006d,0x00040005,0x00000175,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000178,0x61726170,0x0000006d,0x00040005,0x0000017b,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000017e,0x61726170,0x0000006d,0x00040005,0x00000186,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000187,0x61726170,0x0000006d,0x00040005,0x0000018a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000018d,0x61726170,0x0000006d,0x00040005,0x00000198,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000199,0x61726170,0x0000006d,0x00040005,0x0000019a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000019d,0x61726170,0x0000006d,0x00040005,0x000001a8,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001a9,0x61726170,0x0000006d,0x00040005,0x000001aa,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001ad,0x61726170,0x0000006d,0x00040005,0x000001b5,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001b6,0x61726170,0x0000006d,0x00040005,0x000001b9,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001bc,0x61726170,0x0000006d,0x00040005,0x000001c4,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001c5,0x61726170,0x0000006d,0x00040005,0x000001c8,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001cb,0x61726170,0x0000006d,0x00040005,0x000001d0,0x616e6966,
|
||||
0x0000596c,0x00040005,0x000001d6,0x5978616d,0x00000000,0x00040005,0x000001e2,0x596e696d,
|
||||
0x00000000,0x00040005,0x000001f7,0x746c6564,0x00005961,0x00050005,0x00000214,0x5f74756f,
|
||||
0x67726154,0x00307465,0x00030047,0x00000046,0x00000002,0x00050048,0x00000046,0x00000000,
|
||||
0x00000023,0x00000000,0x00050048,0x00000046,0x00000001,0x00000023,0x00000010,0x00050048,
|
||||
0x00000046,0x00000002,0x00000023,0x00000020,0x00040047,0x00000051,0x0000001e,0x00000000,
|
||||
0x00040047,0x00000057,0x00000021,0x00000000,0x00040047,0x00000057,0x00000022,0x00000000,
|
||||
0x00040047,0x00000214,0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,
|
||||
0x00000002,0x00030016,0x00000006,0x00000020,0x00040020,0x00000007,0x00000007,0x00000006,
|
||||
0x00040021,0x00000008,0x00000006,0x00000007,0x00040017,0x0000000c,0x00000006,0x00000002,
|
||||
0x00070021,0x0000000d,0x0000000c,0x00000007,0x00000007,0x00000007,0x00000007,0x0004002b,
|
||||
0x00000006,0x00000016,0x40800000,0x0004002b,0x00000006,0x0000002e,0x3f0ccccd,0x0004002b,
|
||||
0x00000006,0x00000034,0x00000000,0x0004002b,0x00000006,0x00000035,0x3f800000,0x00040017,
|
||||
0x00000043,0x00000006,0x00000004,0x00040020,0x00000044,0x00000007,0x00000043,0x0005001e,
|
||||
0x00000046,0x00000043,0x00000043,0x00000006,0x00040020,0x00000047,0x00000009,0x00000046,
|
||||
0x0004003b,0x00000047,0x00000048,0x00000009,0x00040015,0x00000049,0x00000020,0x00000001,
|
||||
0x0004002b,0x00000049,0x0000004a,0x00000001,0x00040020,0x0000004b,0x00000009,0x00000043,
|
||||
0x00040020,0x0000004e,0x00000007,0x0000000c,0x00040020,0x00000050,0x00000001,0x0000000c,
|
||||
0x0004003b,0x00000050,0x00000051,0x00000001,0x00090019,0x00000054,0x00000006,0x00000001,
|
||||
0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000055,0x00000054,
|
||||
0x00040020,0x00000056,0x00000000,0x00000055,0x0004003b,0x00000056,0x00000057,0x00000000,
|
||||
0x00040017,0x0000005b,0x00000006,0x00000003,0x00040015,0x0000005d,0x00000020,0x00000000,
|
||||
0x0004002b,0x0000005d,0x0000005e,0x00000000,0x0004002b,0x0000005d,0x00000061,0x00000001,
|
||||
0x0004002b,0x0000005d,0x00000064,0x00000002,0x0004002b,0x00000006,0x0000006c,0xbf000000,
|
||||
0x0004002b,0x00000006,0x0000006d,0x3f000000,0x0005002c,0x0000000c,0x0000006e,0x0000006c,
|
||||
0x0000006d,0x0004002b,0x00000006,0x00000097,0x3d008081,0x00020014,0x00000098,0x0004002b,
|
||||
0x0000005d,0x000000c2,0x00000003,0x0004002b,0x00000006,0x000000d1,0x3e800000,0x0004002b,
|
||||
0x00000006,0x00000115,0x400ba2e8,0x0004002b,0x00000006,0x0000013b,0x40000000,0x0004002b,
|
||||
0x00000049,0x000001ee,0x00000002,0x00040020,0x000001ef,0x00000009,0x00000006,0x0004002b,
|
||||
0x00000006,0x000001fd,0xbdb8b8b9,0x0004002b,0x00000006,0x000001fe,0x3db8b8b9,0x00040020,
|
||||
0x00000213,0x00000003,0x00000043,0x0004003b,0x00000213,0x00000214,0x00000003,0x00050036,
|
||||
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000044,
|
||||
0x00000045,0x00000007,0x0004003b,0x0000004e,0x0000004f,0x00000007,0x0004003b,0x00000044,
|
||||
0x00000053,0x00000007,0x0004003b,0x0000004e,0x00000067,0x00000007,0x0004003b,0x0000004e,
|
||||
0x00000070,0x00000007,0x0004003b,0x0000004e,0x00000073,0x00000007,0x0004003b,0x0000004e,
|
||||
0x00000078,0x00000007,0x0004003b,0x00000044,0x0000007d,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000081,0x00000007,0x0004003b,0x00000044,0x000000a2,0x00000007,0x0004003b,0x00000044,
|
||||
0x000000aa,0x00000007,0x0004003b,0x00000007,0x000000c5,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000e4,0x00000007,0x0004003b,0x00000007,0x00000114,0x00000007,0x0004003b,0x0000004e,
|
||||
0x00000118,0x00000007,0x0004003b,0x00000007,0x0000011c,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000011f,0x00000007,0x0004003b,0x00000007,0x00000120,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000123,0x00000007,0x0004003b,0x00000007,0x0000012c,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000012d,0x00000007,0x0004003b,0x00000007,0x0000012e,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000131,0x00000007,0x0004003b,0x00000007,0x0000013d,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000013e,0x00000007,0x0004003b,0x00000007,0x0000013f,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000142,0x00000007,0x0004003b,0x00000007,0x0000014a,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000014d,0x00000007,0x0004003b,0x00000007,0x0000014e,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000151,0x00000007,0x0004003b,0x00000007,0x0000015c,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000015d,0x00000007,0x0004003b,0x00000007,0x0000015e,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000161,0x00000007,0x0004003b,0x00000007,0x00000169,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000016c,0x00000007,0x0004003b,0x00000007,0x0000016d,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000170,0x00000007,0x0004003b,0x00000007,0x00000175,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000178,0x00000007,0x0004003b,0x00000007,0x0000017b,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000017e,0x00000007,0x0004003b,0x00000007,0x00000186,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000187,0x00000007,0x0004003b,0x00000007,0x0000018a,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000018d,0x00000007,0x0004003b,0x00000007,0x00000198,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000199,0x00000007,0x0004003b,0x00000007,0x0000019a,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000019d,0x00000007,0x0004003b,0x00000007,0x000001a8,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001a9,0x00000007,0x0004003b,0x00000007,0x000001aa,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001ad,0x00000007,0x0004003b,0x00000007,0x000001b5,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001b6,0x00000007,0x0004003b,0x00000007,0x000001b9,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001bc,0x00000007,0x0004003b,0x00000007,0x000001c4,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001c5,0x00000007,0x0004003b,0x00000007,0x000001c8,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001cb,0x00000007,0x0004003b,0x00000007,0x000001d0,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001d6,0x00000007,0x0004003b,0x00000007,0x000001e2,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001f7,0x00000007,0x00050041,0x0000004b,0x0000004c,0x00000048,0x0000004a,0x0004003d,
|
||||
0x00000043,0x0000004d,0x0000004c,0x0003003e,0x00000045,0x0000004d,0x0004003d,0x0000000c,
|
||||
0x00000052,0x00000051,0x0003003e,0x0000004f,0x00000052,0x0004003d,0x00000055,0x00000058,
|
||||
0x00000057,0x0004003d,0x0000000c,0x00000059,0x0000004f,0x00070058,0x00000043,0x0000005a,
|
||||
0x00000058,0x00000059,0x00000002,0x00000034,0x0008004f,0x0000005b,0x0000005c,0x0000005a,
|
||||
0x0000005a,0x00000000,0x00000001,0x00000002,0x00050041,0x00000007,0x0000005f,0x00000053,
|
||||
0x0000005e,0x00050051,0x00000006,0x00000060,0x0000005c,0x00000000,0x0003003e,0x0000005f,
|
||||
0x00000060,0x00050041,0x00000007,0x00000062,0x00000053,0x00000061,0x00050051,0x00000006,
|
||||
0x00000063,0x0000005c,0x00000001,0x0003003e,0x00000062,0x00000063,0x00050041,0x00000007,
|
||||
0x00000065,0x00000053,0x00000064,0x00050051,0x00000006,0x00000066,0x0000005c,0x00000002,
|
||||
0x0003003e,0x00000065,0x00000066,0x0004003d,0x0000000c,0x00000068,0x0000004f,0x0004003d,
|
||||
0x00000043,0x00000069,0x00000045,0x0007004f,0x0000000c,0x0000006a,0x00000069,0x00000069,
|
||||
0x00000002,0x00000003,0x00050085,0x0000000c,0x0000006b,0x00000068,0x0000006a,0x00050081,
|
||||
0x0000000c,0x0000006f,0x0000006b,0x0000006e,0x0003003e,0x00000067,0x0000006f,0x0004003d,
|
||||
0x0000000c,0x00000071,0x00000067,0x0006000c,0x0000000c,0x00000072,0x00000001,0x00000008,
|
||||
0x00000071,0x0003003e,0x00000070,0x00000072,0x0004003d,0x0000000c,0x00000074,0x00000070,
|
||||
0x0004003d,0x00000043,0x00000075,0x00000045,0x0007004f,0x0000000c,0x00000076,0x00000075,
|
||||
0x00000075,0x00000000,0x00000001,0x00050085,0x0000000c,0x00000077,0x00000074,0x00000076,
|
||||
0x0003003e,0x00000073,0x00000077,0x0004003d,0x0000000c,0x00000079,0x00000067,0x0004003d,
|
||||
0x0000000c,0x0000007a,0x00000070,0x0004007f,0x0000000c,0x0000007b,0x0000007a,0x00050081,
|
||||
0x0000000c,0x0000007c,0x00000079,0x0000007b,0x0003003e,0x00000078,0x0000007c,0x0004003d,
|
||||
0x00000055,0x0000007e,0x00000057,0x0004003d,0x0000000c,0x0000007f,0x00000073,0x00060060,
|
||||
0x00000043,0x00000080,0x0000007e,0x0000007f,0x0000004a,0x0003003e,0x0000007d,0x00000080,
|
||||
0x00050041,0x00000007,0x00000082,0x0000007d,0x00000064,0x0004003d,0x00000006,0x00000083,
|
||||
0x00000082,0x00050041,0x00000007,0x00000084,0x0000007d,0x00000061,0x0004003d,0x00000006,
|
||||
0x00000085,0x00000084,0x00050083,0x00000006,0x00000086,0x00000083,0x00000085,0x0006000c,
|
||||
0x00000006,0x00000087,0x00000001,0x00000004,0x00000086,0x00050041,0x00000007,0x00000088,
|
||||
0x00000053,0x00000061,0x0004003d,0x00000006,0x00000089,0x00000088,0x00050041,0x00000007,
|
||||
0x0000008a,0x0000007d,0x00000061,0x0004003d,0x00000006,0x0000008b,0x0000008a,0x00050083,
|
||||
0x00000006,0x0000008c,0x00000089,0x0000008b,0x0006000c,0x00000006,0x0000008d,0x00000001,
|
||||
0x00000004,0x0000008c,0x00050081,0x00000006,0x0000008e,0x00000087,0x0000008d,0x00050041,
|
||||
0x00000007,0x0000008f,0x00000053,0x00000061,0x0004003d,0x00000006,0x00000090,0x0000008f,
|
||||
0x00050041,0x00000007,0x00000091,0x0000007d,0x00000064,0x0004003d,0x00000006,0x00000092,
|
||||
0x00000091,0x00050083,0x00000006,0x00000093,0x00000090,0x00000092,0x0006000c,0x00000006,
|
||||
0x00000094,0x00000001,0x00000004,0x00000093,0x00050081,0x00000006,0x00000095,0x0000008e,
|
||||
0x00000094,0x0003003e,0x00000081,0x00000095,0x0004003d,0x00000006,0x00000096,0x00000081,
|
||||
0x000500ba,0x00000098,0x00000099,0x00000096,0x00000097,0x000300f7,0x0000009b,0x00000000,
|
||||
0x000400fa,0x00000099,0x0000009a,0x0000009b,0x000200f8,0x0000009a,0x00050041,0x00000007,
|
||||
0x0000009c,0x00000045,0x0000005e,0x0004003d,0x00000006,0x0000009d,0x0000009c,0x00050041,
|
||||
0x00000007,0x0000009e,0x00000073,0x0000005e,0x0004003d,0x00000006,0x0000009f,0x0000009e,
|
||||
0x00050081,0x00000006,0x000000a0,0x0000009f,0x0000009d,0x00050041,0x00000007,0x000000a1,
|
||||
0x00000073,0x0000005e,0x0003003e,0x000000a1,0x000000a0,0x0004003d,0x00000055,0x000000a3,
|
||||
0x00000057,0x0004003d,0x0000000c,0x000000a4,0x00000073,0x00050041,0x00000007,0x000000a5,
|
||||
0x00000045,0x0000005e,0x0004003d,0x00000006,0x000000a6,0x000000a5,0x00050050,0x0000000c,
|
||||
0x000000a7,0x000000a6,0x00000034,0x00050081,0x0000000c,0x000000a8,0x000000a4,0x000000a7,
|
||||
0x00060060,0x00000043,0x000000a9,0x000000a3,0x000000a8,0x0000004a,0x0003003e,0x000000a2,
|
||||
0x000000a9,0x0004003d,0x00000055,0x000000ab,0x00000057,0x0004003d,0x0000000c,0x000000ac,
|
||||
0x00000073,0x00050041,0x00000007,0x000000ad,0x00000045,0x00000061,0x0004003d,0x00000006,
|
||||
0x000000ae,0x000000ad,0x0004007f,0x00000006,0x000000af,0x000000ae,0x00050050,0x0000000c,
|
||||
0x000000b0,0x00000034,0x000000af,0x00050081,0x0000000c,0x000000b1,0x000000ac,0x000000b0,
|
||||
0x00060060,0x00000043,0x000000b2,0x000000ab,0x000000b1,0x0000004a,0x0007004f,0x0000000c,
|
||||
0x000000b3,0x000000b2,0x000000b2,0x00000003,0x00000002,0x00050041,0x00000007,0x000000b4,
|
||||
0x000000aa,0x0000005e,0x00050051,0x00000006,0x000000b5,0x000000b3,0x00000000,0x0003003e,
|
||||
0x000000b4,0x000000b5,0x00050041,0x00000007,0x000000b6,0x000000aa,0x00000061,0x00050051,
|
||||
0x00000006,0x000000b7,0x000000b3,0x00000001,0x0003003e,0x000000b6,0x000000b7,0x0004003d,
|
||||
0x00000055,0x000000b8,0x00000057,0x0004003d,0x0000000c,0x000000b9,0x00000073,0x00050041,
|
||||
0x00000007,0x000000ba,0x00000045,0x00000061,0x0004003d,0x00000006,0x000000bb,0x000000ba,
|
||||
0x00050050,0x0000000c,0x000000bc,0x00000034,0x000000bb,0x00050081,0x0000000c,0x000000bd,
|
||||
0x000000b9,0x000000bc,0x00060060,0x00000043,0x000000be,0x000000b8,0x000000bd,0x0000004a,
|
||||
0x0007004f,0x0000000c,0x000000bf,0x000000be,0x000000be,0x00000001,0x00000000,0x00050041,
|
||||
0x00000007,0x000000c0,0x000000aa,0x00000064,0x00050051,0x00000006,0x000000c1,0x000000bf,
|
||||
0x00000000,0x0003003e,0x000000c0,0x000000c1,0x00050041,0x00000007,0x000000c3,0x000000aa,
|
||||
0x000000c2,0x00050051,0x00000006,0x000000c4,0x000000bf,0x00000001,0x0003003e,0x000000c3,
|
||||
0x000000c4,0x00050041,0x00000007,0x000000c6,0x0000007d,0x00000061,0x0004003d,0x00000006,
|
||||
0x000000c7,0x000000c6,0x00050041,0x00000007,0x000000c8,0x0000007d,0x00000064,0x0004003d,
|
||||
0x00000006,0x000000c9,0x000000c8,0x00050081,0x00000006,0x000000ca,0x000000c7,0x000000c9,
|
||||
0x00050041,0x00000007,0x000000cb,0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000000cc,
|
||||
0x000000cb,0x00050081,0x00000006,0x000000cd,0x000000ca,0x000000cc,0x00050041,0x00000007,
|
||||
0x000000ce,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x000000cf,0x000000ce,0x00050081,
|
||||
0x00000006,0x000000d0,0x000000cd,0x000000cf,0x00050085,0x00000006,0x000000d2,0x000000d0,
|
||||
0x000000d1,0x0003003e,0x000000c5,0x000000d2,0x0004003d,0x00000043,0x000000d3,0x0000007d,
|
||||
0x0004003d,0x00000006,0x000000d4,0x000000c5,0x00070050,0x00000043,0x000000d5,0x000000d4,
|
||||
0x000000d4,0x000000d4,0x000000d4,0x00050083,0x00000043,0x000000d6,0x000000d3,0x000000d5,
|
||||
0x0003003e,0x0000007d,0x000000d6,0x0004003d,0x00000043,0x000000d7,0x000000a2,0x0004003d,
|
||||
0x00000006,0x000000d8,0x000000c5,0x00070050,0x00000043,0x000000d9,0x000000d8,0x000000d8,
|
||||
0x000000d8,0x000000d8,0x00050083,0x00000043,0x000000da,0x000000d7,0x000000d9,0x0003003e,
|
||||
0x000000a2,0x000000da,0x0004003d,0x00000043,0x000000db,0x000000aa,0x0004003d,0x00000006,
|
||||
0x000000dc,0x000000c5,0x00070050,0x00000043,0x000000dd,0x000000dc,0x000000dc,0x000000dc,
|
||||
0x000000dc,0x00050083,0x00000043,0x000000de,0x000000db,0x000000dd,0x0003003e,0x000000aa,
|
||||
0x000000de,0x00050041,0x00000007,0x000000df,0x00000053,0x00000061,0x0004003d,0x00000006,
|
||||
0x000000e0,0x000000df,0x0004003d,0x00000006,0x000000e1,0x000000c5,0x00050083,0x00000006,
|
||||
0x000000e2,0x000000e0,0x000000e1,0x00050041,0x00000007,0x000000e3,0x00000053,0x000000c2,
|
||||
0x0003003e,0x000000e3,0x000000e2,0x00050041,0x00000007,0x000000e5,0x0000007d,0x0000005e,
|
||||
0x0004003d,0x00000006,0x000000e6,0x000000e5,0x0006000c,0x00000006,0x000000e7,0x00000001,
|
||||
0x00000004,0x000000e6,0x00050041,0x00000007,0x000000e8,0x0000007d,0x00000061,0x0004003d,
|
||||
0x00000006,0x000000e9,0x000000e8,0x0006000c,0x00000006,0x000000ea,0x00000001,0x00000004,
|
||||
0x000000e9,0x00050081,0x00000006,0x000000eb,0x000000e7,0x000000ea,0x00050041,0x00000007,
|
||||
0x000000ec,0x0000007d,0x00000064,0x0004003d,0x00000006,0x000000ed,0x000000ec,0x0006000c,
|
||||
0x00000006,0x000000ee,0x00000001,0x00000004,0x000000ed,0x00050081,0x00000006,0x000000ef,
|
||||
0x000000eb,0x000000ee,0x00050041,0x00000007,0x000000f0,0x0000007d,0x000000c2,0x0004003d,
|
||||
0x00000006,0x000000f1,0x000000f0,0x0006000c,0x00000006,0x000000f2,0x00000001,0x00000004,
|
||||
0x000000f1,0x00050081,0x00000006,0x000000f3,0x000000ef,0x000000f2,0x00050041,0x00000007,
|
||||
0x000000f4,0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000000f5,0x000000f4,0x0006000c,
|
||||
0x00000006,0x000000f6,0x00000001,0x00000004,0x000000f5,0x00050041,0x00000007,0x000000f7,
|
||||
0x000000a2,0x00000061,0x0004003d,0x00000006,0x000000f8,0x000000f7,0x0006000c,0x00000006,
|
||||
0x000000f9,0x00000001,0x00000004,0x000000f8,0x00050081,0x00000006,0x000000fa,0x000000f6,
|
||||
0x000000f9,0x00050041,0x00000007,0x000000fb,0x000000a2,0x00000064,0x0004003d,0x00000006,
|
||||
0x000000fc,0x000000fb,0x0006000c,0x00000006,0x000000fd,0x00000001,0x00000004,0x000000fc,
|
||||
0x00050081,0x00000006,0x000000fe,0x000000fa,0x000000fd,0x00050041,0x00000007,0x000000ff,
|
||||
0x000000a2,0x000000c2,0x0004003d,0x00000006,0x00000100,0x000000ff,0x0006000c,0x00000006,
|
||||
0x00000101,0x00000001,0x00000004,0x00000100,0x00050081,0x00000006,0x00000102,0x000000fe,
|
||||
0x00000101,0x00050081,0x00000006,0x00000103,0x000000f3,0x00000102,0x00050041,0x00000007,
|
||||
0x00000104,0x000000aa,0x0000005e,0x0004003d,0x00000006,0x00000105,0x00000104,0x0006000c,
|
||||
0x00000006,0x00000106,0x00000001,0x00000004,0x00000105,0x00050041,0x00000007,0x00000107,
|
||||
0x000000aa,0x00000061,0x0004003d,0x00000006,0x00000108,0x00000107,0x0006000c,0x00000006,
|
||||
0x00000109,0x00000001,0x00000004,0x00000108,0x00050081,0x00000006,0x0000010a,0x00000106,
|
||||
0x00000109,0x00050041,0x00000007,0x0000010b,0x000000aa,0x00000064,0x0004003d,0x00000006,
|
||||
0x0000010c,0x0000010b,0x0006000c,0x00000006,0x0000010d,0x00000001,0x00000004,0x0000010c,
|
||||
0x00050081,0x00000006,0x0000010e,0x0000010a,0x0000010d,0x00050041,0x00000007,0x0000010f,
|
||||
0x000000aa,0x000000c2,0x0004003d,0x00000006,0x00000110,0x0000010f,0x0006000c,0x00000006,
|
||||
0x00000111,0x00000001,0x00000004,0x00000110,0x00050081,0x00000006,0x00000112,0x0000010e,
|
||||
0x00000111,0x00050081,0x00000006,0x00000113,0x00000103,0x00000112,0x0003003e,0x000000e4,
|
||||
0x00000113,0x0004003d,0x00000006,0x00000116,0x000000e4,0x00050088,0x00000006,0x00000117,
|
||||
0x00000115,0x00000116,0x0003003e,0x00000114,0x00000117,0x00050041,0x00000007,0x00000119,
|
||||
0x00000078,0x00000061,0x0004003d,0x00000006,0x0000011a,0x00000119,0x00050081,0x00000006,
|
||||
0x0000011b,0x0000011a,0x00000035,0x00050041,0x00000007,0x0000011d,0x00000078,0x0000005e,
|
||||
0x0004003d,0x00000006,0x0000011e,0x0000011d,0x0003003e,0x0000011c,0x0000011e,0x0003003e,
|
||||
0x0000011f,0x0000011b,0x00050041,0x00000007,0x00000121,0x000000aa,0x0000005e,0x0004003d,
|
||||
0x00000006,0x00000122,0x00000121,0x0003003e,0x00000120,0x00000122,0x0004003d,0x00000006,
|
||||
0x00000124,0x00000114,0x0003003e,0x00000123,0x00000124,0x00080039,0x0000000c,0x00000125,
|
||||
0x00000012,0x0000011c,0x0000011f,0x00000120,0x00000123,0x0003003e,0x00000118,0x00000125,
|
||||
0x00050041,0x00000007,0x00000126,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000127,
|
||||
0x00000126,0x00050083,0x00000006,0x00000128,0x00000127,0x00000035,0x00050041,0x00000007,
|
||||
0x00000129,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000012a,0x00000129,0x00050081,
|
||||
0x00000006,0x0000012b,0x0000012a,0x00000035,0x0003003e,0x0000012c,0x00000128,0x0003003e,
|
||||
0x0000012d,0x0000012b,0x00050041,0x00000007,0x0000012f,0x000000aa,0x00000061,0x0004003d,
|
||||
0x00000006,0x00000130,0x0000012f,0x0003003e,0x0000012e,0x00000130,0x0004003d,0x00000006,
|
||||
0x00000132,0x00000114,0x0003003e,0x00000131,0x00000132,0x00080039,0x0000000c,0x00000133,
|
||||
0x00000012,0x0000012c,0x0000012d,0x0000012e,0x00000131,0x0004003d,0x0000000c,0x00000134,
|
||||
0x00000118,0x00050081,0x0000000c,0x00000135,0x00000134,0x00000133,0x0003003e,0x00000118,
|
||||
0x00000135,0x00050041,0x00000007,0x00000136,0x00000078,0x0000005e,0x0004003d,0x00000006,
|
||||
0x00000137,0x00000136,0x00050083,0x00000006,0x00000138,0x00000137,0x00000035,0x00050041,
|
||||
0x00000007,0x00000139,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000013a,0x00000139,
|
||||
0x00050083,0x00000006,0x0000013c,0x0000013a,0x0000013b,0x0003003e,0x0000013d,0x00000138,
|
||||
0x0003003e,0x0000013e,0x0000013c,0x00050041,0x00000007,0x00000140,0x000000aa,0x00000064,
|
||||
0x0004003d,0x00000006,0x00000141,0x00000140,0x0003003e,0x0000013f,0x00000141,0x0004003d,
|
||||
0x00000006,0x00000143,0x00000114,0x0003003e,0x00000142,0x00000143,0x00080039,0x0000000c,
|
||||
0x00000144,0x00000012,0x0000013d,0x0000013e,0x0000013f,0x00000142,0x0004003d,0x0000000c,
|
||||
0x00000145,0x00000118,0x00050081,0x0000000c,0x00000146,0x00000145,0x00000144,0x0003003e,
|
||||
0x00000118,0x00000146,0x00050041,0x00000007,0x00000147,0x00000078,0x00000061,0x0004003d,
|
||||
0x00000006,0x00000148,0x00000147,0x00050083,0x00000006,0x00000149,0x00000148,0x0000013b,
|
||||
0x00050041,0x00000007,0x0000014b,0x00000078,0x0000005e,0x0004003d,0x00000006,0x0000014c,
|
||||
0x0000014b,0x0003003e,0x0000014a,0x0000014c,0x0003003e,0x0000014d,0x00000149,0x00050041,
|
||||
0x00000007,0x0000014f,0x000000aa,0x000000c2,0x0004003d,0x00000006,0x00000150,0x0000014f,
|
||||
0x0003003e,0x0000014e,0x00000150,0x0004003d,0x00000006,0x00000152,0x00000114,0x0003003e,
|
||||
0x00000151,0x00000152,0x00080039,0x0000000c,0x00000153,0x00000012,0x0000014a,0x0000014d,
|
||||
0x0000014e,0x00000151,0x0004003d,0x0000000c,0x00000154,0x00000118,0x00050081,0x0000000c,
|
||||
0x00000155,0x00000154,0x00000153,0x0003003e,0x00000118,0x00000155,0x00050041,0x00000007,
|
||||
0x00000156,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000157,0x00000156,0x00050081,
|
||||
0x00000006,0x00000158,0x00000157,0x00000035,0x00050041,0x00000007,0x00000159,0x00000078,
|
||||
0x00000061,0x0004003d,0x00000006,0x0000015a,0x00000159,0x00050083,0x00000006,0x0000015b,
|
||||
0x0000015a,0x00000035,0x0003003e,0x0000015c,0x00000158,0x0003003e,0x0000015d,0x0000015b,
|
||||
0x00050041,0x00000007,0x0000015f,0x0000007d,0x0000005e,0x0004003d,0x00000006,0x00000160,
|
||||
0x0000015f,0x0003003e,0x0000015e,0x00000160,0x0004003d,0x00000006,0x00000162,0x00000114,
|
||||
0x0003003e,0x00000161,0x00000162,0x00080039,0x0000000c,0x00000163,0x00000012,0x0000015c,
|
||||
0x0000015d,0x0000015e,0x00000161,0x0004003d,0x0000000c,0x00000164,0x00000118,0x00050081,
|
||||
0x0000000c,0x00000165,0x00000164,0x00000163,0x0003003e,0x00000118,0x00000165,0x00050041,
|
||||
0x00000007,0x00000166,0x00000078,0x00000061,0x0004003d,0x00000006,0x00000167,0x00000166,
|
||||
0x00050083,0x00000006,0x00000168,0x00000167,0x00000035,0x00050041,0x00000007,0x0000016a,
|
||||
0x00000078,0x0000005e,0x0004003d,0x00000006,0x0000016b,0x0000016a,0x0003003e,0x00000169,
|
||||
0x0000016b,0x0003003e,0x0000016c,0x00000168,0x00050041,0x00000007,0x0000016e,0x0000007d,
|
||||
0x00000061,0x0004003d,0x00000006,0x0000016f,0x0000016e,0x0003003e,0x0000016d,0x0000016f,
|
||||
0x0004003d,0x00000006,0x00000171,0x00000114,0x0003003e,0x00000170,0x00000171,0x00080039,
|
||||
0x0000000c,0x00000172,0x00000012,0x00000169,0x0000016c,0x0000016d,0x00000170,0x0004003d,
|
||||
0x0000000c,0x00000173,0x00000118,0x00050081,0x0000000c,0x00000174,0x00000173,0x00000172,
|
||||
0x0003003e,0x00000118,0x00000174,0x00050041,0x00000007,0x00000176,0x00000078,0x0000005e,
|
||||
0x0004003d,0x00000006,0x00000177,0x00000176,0x0003003e,0x00000175,0x00000177,0x00050041,
|
||||
0x00000007,0x00000179,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000017a,0x00000179,
|
||||
0x0003003e,0x00000178,0x0000017a,0x00050041,0x00000007,0x0000017c,0x0000007d,0x00000064,
|
||||
0x0004003d,0x00000006,0x0000017d,0x0000017c,0x0003003e,0x0000017b,0x0000017d,0x0004003d,
|
||||
0x00000006,0x0000017f,0x00000114,0x0003003e,0x0000017e,0x0000017f,0x00080039,0x0000000c,
|
||||
0x00000180,0x00000012,0x00000175,0x00000178,0x0000017b,0x0000017e,0x0004003d,0x0000000c,
|
||||
0x00000181,0x00000118,0x00050081,0x0000000c,0x00000182,0x00000181,0x00000180,0x0003003e,
|
||||
0x00000118,0x00000182,0x00050041,0x00000007,0x00000183,0x00000078,0x0000005e,0x0004003d,
|
||||
0x00000006,0x00000184,0x00000183,0x00050081,0x00000006,0x00000185,0x00000184,0x00000035,
|
||||
0x0003003e,0x00000186,0x00000185,0x00050041,0x00000007,0x00000188,0x00000078,0x00000061,
|
||||
0x0004003d,0x00000006,0x00000189,0x00000188,0x0003003e,0x00000187,0x00000189,0x00050041,
|
||||
0x00000007,0x0000018b,0x0000007d,0x000000c2,0x0004003d,0x00000006,0x0000018c,0x0000018b,
|
||||
0x0003003e,0x0000018a,0x0000018c,0x0004003d,0x00000006,0x0000018e,0x00000114,0x0003003e,
|
||||
0x0000018d,0x0000018e,0x00080039,0x0000000c,0x0000018f,0x00000012,0x00000186,0x00000187,
|
||||
0x0000018a,0x0000018d,0x0004003d,0x0000000c,0x00000190,0x00000118,0x00050081,0x0000000c,
|
||||
0x00000191,0x00000190,0x0000018f,0x0003003e,0x00000118,0x00000191,0x00050041,0x00000007,
|
||||
0x00000192,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000193,0x00000192,0x00050083,
|
||||
0x00000006,0x00000194,0x00000193,0x00000035,0x00050041,0x00000007,0x00000195,0x00000078,
|
||||
0x00000061,0x0004003d,0x00000006,0x00000196,0x00000195,0x00050083,0x00000006,0x00000197,
|
||||
0x00000196,0x00000035,0x0003003e,0x00000198,0x00000194,0x0003003e,0x00000199,0x00000197,
|
||||
0x00050041,0x00000007,0x0000019b,0x000000a2,0x0000005e,0x0004003d,0x00000006,0x0000019c,
|
||||
0x0000019b,0x0003003e,0x0000019a,0x0000019c,0x0004003d,0x00000006,0x0000019e,0x00000114,
|
||||
0x0003003e,0x0000019d,0x0000019e,0x00080039,0x0000000c,0x0000019f,0x00000012,0x00000198,
|
||||
0x00000199,0x0000019a,0x0000019d,0x0004003d,0x0000000c,0x000001a0,0x00000118,0x00050081,
|
||||
0x0000000c,0x000001a1,0x000001a0,0x0000019f,0x0003003e,0x00000118,0x000001a1,0x00050041,
|
||||
0x00000007,0x000001a2,0x00000078,0x0000005e,0x0004003d,0x00000006,0x000001a3,0x000001a2,
|
||||
0x00050083,0x00000006,0x000001a4,0x000001a3,0x0000013b,0x00050041,0x00000007,0x000001a5,
|
||||
0x00000078,0x00000061,0x0004003d,0x00000006,0x000001a6,0x000001a5,0x00050083,0x00000006,
|
||||
0x000001a7,0x000001a6,0x00000035,0x0003003e,0x000001a8,0x000001a4,0x0003003e,0x000001a9,
|
||||
0x000001a7,0x00050041,0x00000007,0x000001ab,0x000000a2,0x00000061,0x0004003d,0x00000006,
|
||||
0x000001ac,0x000001ab,0x0003003e,0x000001aa,0x000001ac,0x0004003d,0x00000006,0x000001ae,
|
||||
0x00000114,0x0003003e,0x000001ad,0x000001ae,0x00080039,0x0000000c,0x000001af,0x00000012,
|
||||
0x000001a8,0x000001a9,0x000001aa,0x000001ad,0x0004003d,0x0000000c,0x000001b0,0x00000118,
|
||||
0x00050081,0x0000000c,0x000001b1,0x000001b0,0x000001af,0x0003003e,0x00000118,0x000001b1,
|
||||
0x00050041,0x00000007,0x000001b2,0x00000078,0x0000005e,0x0004003d,0x00000006,0x000001b3,
|
||||
0x000001b2,0x00050083,0x00000006,0x000001b4,0x000001b3,0x0000013b,0x0003003e,0x000001b5,
|
||||
0x000001b4,0x00050041,0x00000007,0x000001b7,0x00000078,0x00000061,0x0004003d,0x00000006,
|
||||
0x000001b8,0x000001b7,0x0003003e,0x000001b6,0x000001b8,0x00050041,0x00000007,0x000001ba,
|
||||
0x000000a2,0x00000064,0x0004003d,0x00000006,0x000001bb,0x000001ba,0x0003003e,0x000001b9,
|
||||
0x000001bb,0x0004003d,0x00000006,0x000001bd,0x00000114,0x0003003e,0x000001bc,0x000001bd,
|
||||
0x00080039,0x0000000c,0x000001be,0x00000012,0x000001b5,0x000001b6,0x000001b9,0x000001bc,
|
||||
0x0004003d,0x0000000c,0x000001bf,0x00000118,0x00050081,0x0000000c,0x000001c0,0x000001bf,
|
||||
0x000001be,0x0003003e,0x00000118,0x000001c0,0x00050041,0x00000007,0x000001c1,0x00000078,
|
||||
0x0000005e,0x0004003d,0x00000006,0x000001c2,0x000001c1,0x00050083,0x00000006,0x000001c3,
|
||||
0x000001c2,0x00000035,0x0003003e,0x000001c4,0x000001c3,0x00050041,0x00000007,0x000001c6,
|
||||
0x00000078,0x00000061,0x0004003d,0x00000006,0x000001c7,0x000001c6,0x0003003e,0x000001c5,
|
||||
0x000001c7,0x00050041,0x00000007,0x000001c9,0x000000a2,0x000000c2,0x0004003d,0x00000006,
|
||||
0x000001ca,0x000001c9,0x0003003e,0x000001c8,0x000001ca,0x0004003d,0x00000006,0x000001cc,
|
||||
0x00000114,0x0003003e,0x000001cb,0x000001cc,0x00080039,0x0000000c,0x000001cd,0x00000012,
|
||||
0x000001c4,0x000001c5,0x000001c8,0x000001cb,0x0004003d,0x0000000c,0x000001ce,0x00000118,
|
||||
0x00050081,0x0000000c,0x000001cf,0x000001ce,0x000001cd,0x0003003e,0x00000118,0x000001cf,
|
||||
0x00050041,0x00000007,0x000001d1,0x00000118,0x00000061,0x0004003d,0x00000006,0x000001d2,
|
||||
0x000001d1,0x00050041,0x00000007,0x000001d3,0x00000118,0x0000005e,0x0004003d,0x00000006,
|
||||
0x000001d4,0x000001d3,0x00050088,0x00000006,0x000001d5,0x000001d2,0x000001d4,0x0003003e,
|
||||
0x000001d0,0x000001d5,0x00050041,0x00000007,0x000001d7,0x0000007d,0x00000061,0x0004003d,
|
||||
0x00000006,0x000001d8,0x000001d7,0x00050041,0x00000007,0x000001d9,0x0000007d,0x00000064,
|
||||
0x0004003d,0x00000006,0x000001da,0x000001d9,0x0007000c,0x00000006,0x000001db,0x00000001,
|
||||
0x00000028,0x000001d8,0x000001da,0x00050041,0x00000007,0x000001dc,0x000000a2,0x0000005e,
|
||||
0x0004003d,0x00000006,0x000001dd,0x000001dc,0x00050041,0x00000007,0x000001de,0x000000a2,
|
||||
0x000000c2,0x0004003d,0x00000006,0x000001df,0x000001de,0x0007000c,0x00000006,0x000001e0,
|
||||
0x00000001,0x00000028,0x000001dd,0x000001df,0x0007000c,0x00000006,0x000001e1,0x00000001,
|
||||
0x00000028,0x000001db,0x000001e0,0x0003003e,0x000001d6,0x000001e1,0x00050041,0x00000007,
|
||||
0x000001e3,0x0000007d,0x00000061,0x0004003d,0x00000006,0x000001e4,0x000001e3,0x00050041,
|
||||
0x00000007,0x000001e5,0x0000007d,0x00000064,0x0004003d,0x00000006,0x000001e6,0x000001e5,
|
||||
0x0007000c,0x00000006,0x000001e7,0x00000001,0x00000025,0x000001e4,0x000001e6,0x00050041,
|
||||
0x00000007,0x000001e8,0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000001e9,0x000001e8,
|
||||
0x00050041,0x00000007,0x000001ea,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x000001eb,
|
||||
0x000001ea,0x0007000c,0x00000006,0x000001ec,0x00000001,0x00000025,0x000001e9,0x000001eb,
|
||||
0x0007000c,0x00000006,0x000001ed,0x00000001,0x00000025,0x000001e7,0x000001ec,0x0003003e,
|
||||
0x000001e2,0x000001ed,0x00050041,0x000001ef,0x000001f0,0x00000048,0x000001ee,0x0004003d,
|
||||
0x00000006,0x000001f1,0x000001f0,0x0004003d,0x00000006,0x000001f2,0x000001d0,0x00050085,
|
||||
0x00000006,0x000001f3,0x000001f1,0x000001f2,0x0004003d,0x00000006,0x000001f4,0x000001e2,
|
||||
0x0004003d,0x00000006,0x000001f5,0x000001d6,0x0008000c,0x00000006,0x000001f6,0x00000001,
|
||||
0x0000002b,0x000001f3,0x000001f4,0x000001f5,0x0003003e,0x000001d0,0x000001f6,0x0004003d,
|
||||
0x00000006,0x000001f8,0x000001d0,0x00050041,0x00000007,0x000001f9,0x00000053,0x000000c2,
|
||||
0x0004003d,0x00000006,0x000001fa,0x000001f9,0x00050083,0x00000006,0x000001fb,0x000001f8,
|
||||
0x000001fa,0x0003003e,0x000001f7,0x000001fb,0x0004003d,0x00000006,0x000001fc,0x000001f7,
|
||||
0x0008000c,0x00000006,0x000001ff,0x00000001,0x0000002b,0x000001fc,0x000001fd,0x000001fe,
|
||||
0x0003003e,0x000001f7,0x000001ff,0x00050041,0x00000007,0x00000200,0x00000053,0x0000005e,
|
||||
0x0004003d,0x00000006,0x00000201,0x00000200,0x0004003d,0x00000006,0x00000202,0x000001f7,
|
||||
0x00050081,0x00000006,0x00000203,0x00000201,0x00000202,0x0008000c,0x00000006,0x00000204,
|
||||
0x00000001,0x0000002b,0x00000203,0x00000034,0x00000035,0x00050041,0x00000007,0x00000205,
|
||||
0x00000053,0x0000005e,0x0003003e,0x00000205,0x00000204,0x00050041,0x00000007,0x00000206,
|
||||
0x00000053,0x00000061,0x0004003d,0x00000006,0x00000207,0x00000206,0x0004003d,0x00000006,
|
||||
0x00000208,0x000001f7,0x00050081,0x00000006,0x00000209,0x00000207,0x00000208,0x0008000c,
|
||||
0x00000006,0x0000020a,0x00000001,0x0000002b,0x00000209,0x00000034,0x00000035,0x00050041,
|
||||
0x00000007,0x0000020b,0x00000053,0x00000061,0x0003003e,0x0000020b,0x0000020a,0x00050041,
|
||||
0x00000007,0x0000020c,0x00000053,0x00000064,0x0004003d,0x00000006,0x0000020d,0x0000020c,
|
||||
0x0004003d,0x00000006,0x0000020e,0x000001f7,0x00050081,0x00000006,0x0000020f,0x0000020d,
|
||||
0x0000020e,0x0008000c,0x00000006,0x00000210,0x00000001,0x0000002b,0x0000020f,0x00000034,
|
||||
0x00000035,0x00050041,0x00000007,0x00000211,0x00000053,0x00000064,0x0003003e,0x00000211,
|
||||
0x00000210,0x000200f9,0x0000009b,0x000200f8,0x0000009b,0x00050041,0x00000007,0x00000212,
|
||||
0x00000053,0x000000c2,0x0003003e,0x00000212,0x00000035,0x0004003d,0x00000043,0x00000215,
|
||||
0x00000053,0x0003003e,0x00000214,0x00000215,0x000100fd,0x00010038,0x00050036,0x00000006,
|
||||
0x0000000a,0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,0x000200f8,0x0000000b,
|
||||
0x0004003b,0x00000007,0x00000014,0x00000007,0x0004003b,0x00000007,0x00000018,0x00000007,
|
||||
0x0004003d,0x00000006,0x00000015,0x00000009,0x00050083,0x00000006,0x00000017,0x00000015,
|
||||
0x00000016,0x0003003e,0x00000014,0x00000017,0x0004003d,0x00000006,0x00000019,0x00000009,
|
||||
0x0004003d,0x00000006,0x0000001a,0x00000014,0x00050085,0x00000006,0x0000001b,0x00000019,
|
||||
0x0000001a,0x0004003d,0x00000006,0x0000001c,0x00000014,0x00050083,0x00000006,0x0000001d,
|
||||
0x0000001b,0x0000001c,0x0003003e,0x00000018,0x0000001d,0x0004003d,0x00000006,0x0000001e,
|
||||
0x00000014,0x0004003d,0x00000006,0x0000001f,0x00000014,0x00050085,0x00000006,0x00000020,
|
||||
0x0000001f,0x0000001e,0x0003003e,0x00000014,0x00000020,0x0004003d,0x00000006,0x00000021,
|
||||
0x00000018,0x0004003d,0x00000006,0x00000022,0x00000014,0x00050085,0x00000006,0x00000023,
|
||||
0x00000021,0x00000022,0x000200fe,0x00000023,0x00010038,0x00050036,0x0000000c,0x00000012,
|
||||
0x00000000,0x0000000d,0x00030037,0x00000007,0x0000000e,0x00030037,0x00000007,0x0000000f,
|
||||
0x00030037,0x00000007,0x00000010,0x00030037,0x00000007,0x00000011,0x000200f8,0x00000013,
|
||||
0x0004003b,0x00000007,0x00000026,0x00000007,0x0004003b,0x00000007,0x00000038,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000039,0x00000007,0x0004003d,0x00000006,0x00000027,0x0000000e,
|
||||
0x0004003d,0x00000006,0x00000028,0x0000000e,0x00050085,0x00000006,0x00000029,0x00000027,
|
||||
0x00000028,0x0004003d,0x00000006,0x0000002a,0x0000000f,0x0004003d,0x00000006,0x0000002b,
|
||||
0x0000000f,0x00050085,0x00000006,0x0000002c,0x0000002a,0x0000002b,0x00050081,0x00000006,
|
||||
0x0000002d,0x00000029,0x0000002c,0x00050085,0x00000006,0x0000002f,0x0000002d,0x0000002e,
|
||||
0x0004003d,0x00000006,0x00000030,0x00000010,0x0006000c,0x00000006,0x00000031,0x00000001,
|
||||
0x00000004,0x00000030,0x0004003d,0x00000006,0x00000032,0x00000011,0x00050085,0x00000006,
|
||||
0x00000033,0x00000031,0x00000032,0x0008000c,0x00000006,0x00000036,0x00000001,0x0000002b,
|
||||
0x00000033,0x00000034,0x00000035,0x00050081,0x00000006,0x00000037,0x0000002f,0x00000036,
|
||||
0x0003003e,0x00000026,0x00000037,0x0004003d,0x00000006,0x0000003a,0x00000026,0x0003003e,
|
||||
0x00000039,0x0000003a,0x00050039,0x00000006,0x0000003b,0x0000000a,0x00000039,0x0003003e,
|
||||
0x00000038,0x0000003b,0x0004003d,0x00000006,0x0000003c,0x00000038,0x0004003d,0x00000006,
|
||||
0x0000003d,0x00000038,0x0004003d,0x00000006,0x0000003e,0x00000010,0x00050085,0x00000006,
|
||||
0x0000003f,0x0000003d,0x0000003e,0x00050050,0x0000000c,0x00000040,0x0000003c,0x0000003f,
|
||||
0x000200fe,0x00000040,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,460 @@
|
||||
// 1116.5.0
|
||||
#pragma once
|
||||
const uint32_t sgsr_quality_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x00000269,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000009c,0x00000267,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00070005,0x0000000a,0x74736166,0x636e614c,0x32736f7a,0x3b316628,0x00000000,
|
||||
0x00030005,0x00000009,0x00000078,0x00080005,0x00000014,0x67696577,0x28597468,0x663b3166,
|
||||
0x31663b31,0x3366763b,0x0000003b,0x00030005,0x00000010,0x00007864,0x00030005,0x00000011,
|
||||
0x00007964,0x00030005,0x00000012,0x00000063,0x00040005,0x00000013,0x61746164,0x00000000,
|
||||
0x00080005,0x0000001b,0x65676465,0x65726944,0x6f697463,0x6676286e,0x66763b34,0x00003b34,
|
||||
0x00040005,0x00000019,0x7466656c,0x00000000,0x00040005,0x0000001a,0x68676972,0x00000074,
|
||||
0x00030005,0x0000001d,0x00004177,0x00030005,0x00000021,0x00004277,0x00030005,0x0000002f,
|
||||
0x00647473,0x00030005,0x00000035,0x00726964,0x00040005,0x00000038,0x65676465,0x00736944,
|
||||
0x00030005,0x00000043,0x00000078,0x00030005,0x0000005b,0x00000077,0x00040005,0x0000005c,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000066,0x7a4c7852,0x00000000,0x00040005,0x0000006d,
|
||||
0x794c7752,0x00000000,0x00040005,0x00000074,0x746c6564,0x00000061,0x00050005,0x0000007d,
|
||||
0x676e656c,0x6e496874,0x00000076,0x00060005,0x00000091,0x77656956,0x74726f70,0x6f666e49,
|
||||
0x00000000,0x00030005,0x00000092,0x00004350,0x00040006,0x00000092,0x00000000,0x0063646e,
|
||||
0x00070006,0x00000092,0x00000001,0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00070006,
|
||||
0x00000092,0x00000002,0x65676445,0x72616853,0x73656e70,0x00000073,0x00030005,0x00000094,
|
||||
0x00006370,0x00030005,0x0000009a,0x00007675,0x00060005,0x0000009c,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00040005,0x0000009e,0x6f6c6f63,0x00000072,0x00030005,0x000000a2,
|
||||
0x00307370,0x00050005,0x000000ad,0x43676d69,0x64726f6f,0x00000000,0x00060005,0x000000b6,
|
||||
0x43676d69,0x64726f6f,0x65786950,0x0000006c,0x00040005,0x000000b9,0x726f6f63,0x00000064,
|
||||
0x00030005,0x000000be,0x00006c70,0x00040005,0x000000c3,0x7466656c,0x00000000,0x00050005,
|
||||
0x000000c7,0x65676465,0x65746f56,0x00000000,0x00040005,0x000000e8,0x68676972,0x00000074,
|
||||
0x00040005,0x000000f0,0x6f447075,0x00006e77,0x00040005,0x0000010a,0x6e61656d,0x00000000,
|
||||
0x00030005,0x00000129,0x006d7573,0x00040005,0x00000159,0x4d6d7573,0x006e6165,0x00030005,
|
||||
0x0000015d,0x00647473,0x00040005,0x00000161,0x61746164,0x00000000,0x00040005,0x00000163,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000165,0x61726170,0x0000006d,0x00030005,0x0000016b,
|
||||
0x00595761,0x00040005,0x0000016f,0x61726170,0x0000006d,0x00040005,0x00000172,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000173,0x61726170,0x0000006d,0x00040005,0x00000176,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000017f,0x61726170,0x0000006d,0x00040005,0x00000180,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000181,0x61726170,0x0000006d,0x00040005,0x00000184,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000190,0x61726170,0x0000006d,0x00040005,0x00000191,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000192,0x61726170,0x0000006d,0x00040005,0x00000195,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000019d,0x61726170,0x0000006d,0x00040005,0x000001a0,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001a1,0x61726170,0x0000006d,0x00040005,0x000001a4,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001af,0x61726170,0x0000006d,0x00040005,0x000001b0,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001b1,0x61726170,0x0000006d,0x00040005,0x000001b4,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001bc,0x61726170,0x0000006d,0x00040005,0x000001bf,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001c0,0x61726170,0x0000006d,0x00040005,0x000001c3,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001c8,0x61726170,0x0000006d,0x00040005,0x000001cb,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001ce,0x61726170,0x0000006d,0x00040005,0x000001d1,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001d9,0x61726170,0x0000006d,0x00040005,0x000001da,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001dd,0x61726170,0x0000006d,0x00040005,0x000001e0,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001eb,0x61726170,0x0000006d,0x00040005,0x000001ec,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001ed,0x61726170,0x0000006d,0x00040005,0x000001f0,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001fb,0x61726170,0x0000006d,0x00040005,0x000001fc,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001fd,0x61726170,0x0000006d,0x00040005,0x00000200,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000208,0x61726170,0x0000006d,0x00040005,0x00000209,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000020c,0x61726170,0x0000006d,0x00040005,0x0000020f,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000217,0x61726170,0x0000006d,0x00040005,0x00000218,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000021b,0x61726170,0x0000006d,0x00040005,0x0000021e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000223,0x616e6966,0x0000596c,0x00040005,0x00000229,0x5978616d,
|
||||
0x00000000,0x00040005,0x00000235,0x596e696d,0x00000000,0x00040005,0x0000024a,0x746c6564,
|
||||
0x00005961,0x00050005,0x00000267,0x5f74756f,0x67726154,0x00307465,0x00030047,0x00000092,
|
||||
0x00000002,0x00050048,0x00000092,0x00000000,0x00000023,0x00000000,0x00050048,0x00000092,
|
||||
0x00000001,0x00000023,0x00000010,0x00050048,0x00000092,0x00000002,0x00000023,0x00000020,
|
||||
0x00040047,0x0000009c,0x0000001e,0x00000000,0x00040047,0x000000a2,0x00000021,0x00000000,
|
||||
0x00040047,0x000000a2,0x00000022,0x00000000,0x00040047,0x00000267,0x0000001e,0x00000000,
|
||||
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,
|
||||
0x00040020,0x00000007,0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,
|
||||
0x00040017,0x0000000c,0x00000006,0x00000003,0x00040020,0x0000000d,0x00000007,0x0000000c,
|
||||
0x00040017,0x0000000e,0x00000006,0x00000002,0x00070021,0x0000000f,0x0000000e,0x00000007,
|
||||
0x00000007,0x00000007,0x0000000d,0x00040017,0x00000016,0x00000006,0x00000004,0x00040020,
|
||||
0x00000017,0x00000007,0x00000016,0x00050021,0x00000018,0x0000000e,0x00000017,0x00000017,
|
||||
0x0004002b,0x00000006,0x0000001f,0x40800000,0x00040015,0x00000030,0x00000020,0x00000000,
|
||||
0x0004002b,0x00000030,0x00000031,0x00000000,0x00040020,0x00000034,0x00000007,0x0000000e,
|
||||
0x0004002b,0x00000030,0x0000003a,0x00000001,0x0004002b,0x00000006,0x00000053,0x00000000,
|
||||
0x0004002b,0x00000006,0x00000054,0x3f800000,0x0004002b,0x00000006,0x00000056,0x3f333333,
|
||||
0x0004002b,0x00000030,0x00000069,0x00000002,0x0004002b,0x00000030,0x0000006e,0x00000003,
|
||||
0x0004002b,0x00000006,0x00000083,0x38010182,0x0005001e,0x00000092,0x00000016,0x00000016,
|
||||
0x00000006,0x00040020,0x00000093,0x00000009,0x00000092,0x0004003b,0x00000093,0x00000094,
|
||||
0x00000009,0x00040015,0x00000095,0x00000020,0x00000001,0x0004002b,0x00000095,0x00000096,
|
||||
0x00000001,0x00040020,0x00000097,0x00000009,0x00000016,0x00040020,0x0000009b,0x00000001,
|
||||
0x0000000e,0x0004003b,0x0000009b,0x0000009c,0x00000001,0x00090019,0x0000009f,0x00000006,
|
||||
0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x000000a0,
|
||||
0x0000009f,0x00040020,0x000000a1,0x00000000,0x000000a0,0x0004003b,0x000000a1,0x000000a2,
|
||||
0x00000000,0x0004002b,0x00000006,0x000000b2,0xbf000000,0x0004002b,0x00000006,0x000000b3,
|
||||
0x3f000000,0x0005002c,0x0000000e,0x000000b4,0x000000b2,0x000000b3,0x0004002b,0x00000006,
|
||||
0x000000dd,0x3d008081,0x00020014,0x000000de,0x0004002b,0x00000006,0x00000116,0x3e800000,
|
||||
0x0004002b,0x00000006,0x0000015a,0x41224505,0x0004002b,0x00000006,0x0000018e,0x40000000,
|
||||
0x0004002b,0x00000095,0x00000241,0x00000002,0x00040020,0x00000242,0x00000009,0x00000006,
|
||||
0x0004002b,0x00000006,0x00000250,0xbdb8b8b9,0x0004002b,0x00000006,0x00000251,0x3db8b8b9,
|
||||
0x00040020,0x00000266,0x00000003,0x00000016,0x0004003b,0x00000266,0x00000267,0x00000003,
|
||||
0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
|
||||
0x00000017,0x00000091,0x00000007,0x0004003b,0x00000034,0x0000009a,0x00000007,0x0004003b,
|
||||
0x00000017,0x0000009e,0x00000007,0x0004003b,0x00000034,0x000000ad,0x00000007,0x0004003b,
|
||||
0x00000034,0x000000b6,0x00000007,0x0004003b,0x00000034,0x000000b9,0x00000007,0x0004003b,
|
||||
0x00000034,0x000000be,0x00000007,0x0004003b,0x00000017,0x000000c3,0x00000007,0x0004003b,
|
||||
0x00000007,0x000000c7,0x00000007,0x0004003b,0x00000017,0x000000e8,0x00000007,0x0004003b,
|
||||
0x00000017,0x000000f0,0x00000007,0x0004003b,0x00000007,0x0000010a,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000129,0x00000007,0x0004003b,0x00000007,0x00000159,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000015d,0x00000007,0x0004003b,0x0000000d,0x00000161,0x00000007,0x0004003b,
|
||||
0x00000017,0x00000163,0x00000007,0x0004003b,0x00000017,0x00000165,0x00000007,0x0004003b,
|
||||
0x00000034,0x0000016b,0x00000007,0x0004003b,0x00000007,0x0000016f,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000172,0x00000007,0x0004003b,0x00000007,0x00000173,0x00000007,0x0004003b,
|
||||
0x0000000d,0x00000176,0x00000007,0x0004003b,0x00000007,0x0000017f,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000180,0x00000007,0x0004003b,0x00000007,0x00000181,0x00000007,0x0004003b,
|
||||
0x0000000d,0x00000184,0x00000007,0x0004003b,0x00000007,0x00000190,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000191,0x00000007,0x0004003b,0x00000007,0x00000192,0x00000007,0x0004003b,
|
||||
0x0000000d,0x00000195,0x00000007,0x0004003b,0x00000007,0x0000019d,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001a0,0x00000007,0x0004003b,0x00000007,0x000001a1,0x00000007,0x0004003b,
|
||||
0x0000000d,0x000001a4,0x00000007,0x0004003b,0x00000007,0x000001af,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001b0,0x00000007,0x0004003b,0x00000007,0x000001b1,0x00000007,0x0004003b,
|
||||
0x0000000d,0x000001b4,0x00000007,0x0004003b,0x00000007,0x000001bc,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001bf,0x00000007,0x0004003b,0x00000007,0x000001c0,0x00000007,0x0004003b,
|
||||
0x0000000d,0x000001c3,0x00000007,0x0004003b,0x00000007,0x000001c8,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001cb,0x00000007,0x0004003b,0x00000007,0x000001ce,0x00000007,0x0004003b,
|
||||
0x0000000d,0x000001d1,0x00000007,0x0004003b,0x00000007,0x000001d9,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001da,0x00000007,0x0004003b,0x00000007,0x000001dd,0x00000007,0x0004003b,
|
||||
0x0000000d,0x000001e0,0x00000007,0x0004003b,0x00000007,0x000001eb,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001ec,0x00000007,0x0004003b,0x00000007,0x000001ed,0x00000007,0x0004003b,
|
||||
0x0000000d,0x000001f0,0x00000007,0x0004003b,0x00000007,0x000001fb,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001fc,0x00000007,0x0004003b,0x00000007,0x000001fd,0x00000007,0x0004003b,
|
||||
0x0000000d,0x00000200,0x00000007,0x0004003b,0x00000007,0x00000208,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000209,0x00000007,0x0004003b,0x00000007,0x0000020c,0x00000007,0x0004003b,
|
||||
0x0000000d,0x0000020f,0x00000007,0x0004003b,0x00000007,0x00000217,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000218,0x00000007,0x0004003b,0x00000007,0x0000021b,0x00000007,0x0004003b,
|
||||
0x0000000d,0x0000021e,0x00000007,0x0004003b,0x00000007,0x00000223,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000229,0x00000007,0x0004003b,0x00000007,0x00000235,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000024a,0x00000007,0x00050041,0x00000097,0x00000098,0x00000094,0x00000096,
|
||||
0x0004003d,0x00000016,0x00000099,0x00000098,0x0003003e,0x00000091,0x00000099,0x0004003d,
|
||||
0x0000000e,0x0000009d,0x0000009c,0x0003003e,0x0000009a,0x0000009d,0x0004003d,0x000000a0,
|
||||
0x000000a3,0x000000a2,0x0004003d,0x0000000e,0x000000a4,0x0000009a,0x00070058,0x00000016,
|
||||
0x000000a5,0x000000a3,0x000000a4,0x00000002,0x00000053,0x0008004f,0x0000000c,0x000000a6,
|
||||
0x000000a5,0x000000a5,0x00000000,0x00000001,0x00000002,0x00050041,0x00000007,0x000000a7,
|
||||
0x0000009e,0x00000031,0x00050051,0x00000006,0x000000a8,0x000000a6,0x00000000,0x0003003e,
|
||||
0x000000a7,0x000000a8,0x00050041,0x00000007,0x000000a9,0x0000009e,0x0000003a,0x00050051,
|
||||
0x00000006,0x000000aa,0x000000a6,0x00000001,0x0003003e,0x000000a9,0x000000aa,0x00050041,
|
||||
0x00000007,0x000000ab,0x0000009e,0x00000069,0x00050051,0x00000006,0x000000ac,0x000000a6,
|
||||
0x00000002,0x0003003e,0x000000ab,0x000000ac,0x0004003d,0x0000000e,0x000000ae,0x0000009a,
|
||||
0x0004003d,0x00000016,0x000000af,0x00000091,0x0007004f,0x0000000e,0x000000b0,0x000000af,
|
||||
0x000000af,0x00000002,0x00000003,0x00050085,0x0000000e,0x000000b1,0x000000ae,0x000000b0,
|
||||
0x00050081,0x0000000e,0x000000b5,0x000000b1,0x000000b4,0x0003003e,0x000000ad,0x000000b5,
|
||||
0x0004003d,0x0000000e,0x000000b7,0x000000ad,0x0006000c,0x0000000e,0x000000b8,0x00000001,
|
||||
0x00000008,0x000000b7,0x0003003e,0x000000b6,0x000000b8,0x0004003d,0x0000000e,0x000000ba,
|
||||
0x000000b6,0x0004003d,0x00000016,0x000000bb,0x00000091,0x0007004f,0x0000000e,0x000000bc,
|
||||
0x000000bb,0x000000bb,0x00000000,0x00000001,0x00050085,0x0000000e,0x000000bd,0x000000ba,
|
||||
0x000000bc,0x0003003e,0x000000b9,0x000000bd,0x0004003d,0x0000000e,0x000000bf,0x000000ad,
|
||||
0x0004003d,0x0000000e,0x000000c0,0x000000b6,0x0004007f,0x0000000e,0x000000c1,0x000000c0,
|
||||
0x00050081,0x0000000e,0x000000c2,0x000000bf,0x000000c1,0x0003003e,0x000000be,0x000000c2,
|
||||
0x0004003d,0x000000a0,0x000000c4,0x000000a2,0x0004003d,0x0000000e,0x000000c5,0x000000b9,
|
||||
0x00060060,0x00000016,0x000000c6,0x000000c4,0x000000c5,0x00000096,0x0003003e,0x000000c3,
|
||||
0x000000c6,0x00050041,0x00000007,0x000000c8,0x000000c3,0x00000069,0x0004003d,0x00000006,
|
||||
0x000000c9,0x000000c8,0x00050041,0x00000007,0x000000ca,0x000000c3,0x0000003a,0x0004003d,
|
||||
0x00000006,0x000000cb,0x000000ca,0x00050083,0x00000006,0x000000cc,0x000000c9,0x000000cb,
|
||||
0x0006000c,0x00000006,0x000000cd,0x00000001,0x00000004,0x000000cc,0x00050041,0x00000007,
|
||||
0x000000ce,0x0000009e,0x0000003a,0x0004003d,0x00000006,0x000000cf,0x000000ce,0x00050041,
|
||||
0x00000007,0x000000d0,0x000000c3,0x0000003a,0x0004003d,0x00000006,0x000000d1,0x000000d0,
|
||||
0x00050083,0x00000006,0x000000d2,0x000000cf,0x000000d1,0x0006000c,0x00000006,0x000000d3,
|
||||
0x00000001,0x00000004,0x000000d2,0x00050081,0x00000006,0x000000d4,0x000000cd,0x000000d3,
|
||||
0x00050041,0x00000007,0x000000d5,0x0000009e,0x0000003a,0x0004003d,0x00000006,0x000000d6,
|
||||
0x000000d5,0x00050041,0x00000007,0x000000d7,0x000000c3,0x00000069,0x0004003d,0x00000006,
|
||||
0x000000d8,0x000000d7,0x00050083,0x00000006,0x000000d9,0x000000d6,0x000000d8,0x0006000c,
|
||||
0x00000006,0x000000da,0x00000001,0x00000004,0x000000d9,0x00050081,0x00000006,0x000000db,
|
||||
0x000000d4,0x000000da,0x0003003e,0x000000c7,0x000000db,0x0004003d,0x00000006,0x000000dc,
|
||||
0x000000c7,0x000500ba,0x000000de,0x000000df,0x000000dc,0x000000dd,0x000300f7,0x000000e1,
|
||||
0x00000000,0x000400fa,0x000000df,0x000000e0,0x000000e1,0x000200f8,0x000000e0,0x00050041,
|
||||
0x00000007,0x000000e2,0x00000091,0x00000031,0x0004003d,0x00000006,0x000000e3,0x000000e2,
|
||||
0x00050041,0x00000007,0x000000e4,0x000000b9,0x00000031,0x0004003d,0x00000006,0x000000e5,
|
||||
0x000000e4,0x00050081,0x00000006,0x000000e6,0x000000e5,0x000000e3,0x00050041,0x00000007,
|
||||
0x000000e7,0x000000b9,0x00000031,0x0003003e,0x000000e7,0x000000e6,0x0004003d,0x000000a0,
|
||||
0x000000e9,0x000000a2,0x0004003d,0x0000000e,0x000000ea,0x000000b9,0x00050041,0x00000007,
|
||||
0x000000eb,0x00000091,0x00000031,0x0004003d,0x00000006,0x000000ec,0x000000eb,0x00050050,
|
||||
0x0000000e,0x000000ed,0x000000ec,0x00000053,0x00050081,0x0000000e,0x000000ee,0x000000ea,
|
||||
0x000000ed,0x00060060,0x00000016,0x000000ef,0x000000e9,0x000000ee,0x00000096,0x0003003e,
|
||||
0x000000e8,0x000000ef,0x0004003d,0x000000a0,0x000000f1,0x000000a2,0x0004003d,0x0000000e,
|
||||
0x000000f2,0x000000b9,0x00050041,0x00000007,0x000000f3,0x00000091,0x0000003a,0x0004003d,
|
||||
0x00000006,0x000000f4,0x000000f3,0x0004007f,0x00000006,0x000000f5,0x000000f4,0x00050050,
|
||||
0x0000000e,0x000000f6,0x00000053,0x000000f5,0x00050081,0x0000000e,0x000000f7,0x000000f2,
|
||||
0x000000f6,0x00060060,0x00000016,0x000000f8,0x000000f1,0x000000f7,0x00000096,0x0007004f,
|
||||
0x0000000e,0x000000f9,0x000000f8,0x000000f8,0x00000003,0x00000002,0x00050041,0x00000007,
|
||||
0x000000fa,0x000000f0,0x00000031,0x00050051,0x00000006,0x000000fb,0x000000f9,0x00000000,
|
||||
0x0003003e,0x000000fa,0x000000fb,0x00050041,0x00000007,0x000000fc,0x000000f0,0x0000003a,
|
||||
0x00050051,0x00000006,0x000000fd,0x000000f9,0x00000001,0x0003003e,0x000000fc,0x000000fd,
|
||||
0x0004003d,0x000000a0,0x000000fe,0x000000a2,0x0004003d,0x0000000e,0x000000ff,0x000000b9,
|
||||
0x00050041,0x00000007,0x00000100,0x00000091,0x0000003a,0x0004003d,0x00000006,0x00000101,
|
||||
0x00000100,0x00050050,0x0000000e,0x00000102,0x00000053,0x00000101,0x00050081,0x0000000e,
|
||||
0x00000103,0x000000ff,0x00000102,0x00060060,0x00000016,0x00000104,0x000000fe,0x00000103,
|
||||
0x00000096,0x0007004f,0x0000000e,0x00000105,0x00000104,0x00000104,0x00000001,0x00000000,
|
||||
0x00050041,0x00000007,0x00000106,0x000000f0,0x00000069,0x00050051,0x00000006,0x00000107,
|
||||
0x00000105,0x00000000,0x0003003e,0x00000106,0x00000107,0x00050041,0x00000007,0x00000108,
|
||||
0x000000f0,0x0000006e,0x00050051,0x00000006,0x00000109,0x00000105,0x00000001,0x0003003e,
|
||||
0x00000108,0x00000109,0x00050041,0x00000007,0x0000010b,0x000000c3,0x0000003a,0x0004003d,
|
||||
0x00000006,0x0000010c,0x0000010b,0x00050041,0x00000007,0x0000010d,0x000000c3,0x00000069,
|
||||
0x0004003d,0x00000006,0x0000010e,0x0000010d,0x00050081,0x00000006,0x0000010f,0x0000010c,
|
||||
0x0000010e,0x00050041,0x00000007,0x00000110,0x000000e8,0x00000031,0x0004003d,0x00000006,
|
||||
0x00000111,0x00000110,0x00050081,0x00000006,0x00000112,0x0000010f,0x00000111,0x00050041,
|
||||
0x00000007,0x00000113,0x000000e8,0x0000006e,0x0004003d,0x00000006,0x00000114,0x00000113,
|
||||
0x00050081,0x00000006,0x00000115,0x00000112,0x00000114,0x00050085,0x00000006,0x00000117,
|
||||
0x00000115,0x00000116,0x0003003e,0x0000010a,0x00000117,0x0004003d,0x00000016,0x00000118,
|
||||
0x000000c3,0x0004003d,0x00000006,0x00000119,0x0000010a,0x00070050,0x00000016,0x0000011a,
|
||||
0x00000119,0x00000119,0x00000119,0x00000119,0x00050083,0x00000016,0x0000011b,0x00000118,
|
||||
0x0000011a,0x0003003e,0x000000c3,0x0000011b,0x0004003d,0x00000016,0x0000011c,0x000000e8,
|
||||
0x0004003d,0x00000006,0x0000011d,0x0000010a,0x00070050,0x00000016,0x0000011e,0x0000011d,
|
||||
0x0000011d,0x0000011d,0x0000011d,0x00050083,0x00000016,0x0000011f,0x0000011c,0x0000011e,
|
||||
0x0003003e,0x000000e8,0x0000011f,0x0004003d,0x00000016,0x00000120,0x000000f0,0x0004003d,
|
||||
0x00000006,0x00000121,0x0000010a,0x00070050,0x00000016,0x00000122,0x00000121,0x00000121,
|
||||
0x00000121,0x00000121,0x00050083,0x00000016,0x00000123,0x00000120,0x00000122,0x0003003e,
|
||||
0x000000f0,0x00000123,0x00050041,0x00000007,0x00000124,0x0000009e,0x0000003a,0x0004003d,
|
||||
0x00000006,0x00000125,0x00000124,0x0004003d,0x00000006,0x00000126,0x0000010a,0x00050083,
|
||||
0x00000006,0x00000127,0x00000125,0x00000126,0x00050041,0x00000007,0x00000128,0x0000009e,
|
||||
0x0000006e,0x0003003e,0x00000128,0x00000127,0x00050041,0x00000007,0x0000012a,0x000000c3,
|
||||
0x00000031,0x0004003d,0x00000006,0x0000012b,0x0000012a,0x0006000c,0x00000006,0x0000012c,
|
||||
0x00000001,0x00000004,0x0000012b,0x00050041,0x00000007,0x0000012d,0x000000c3,0x0000003a,
|
||||
0x0004003d,0x00000006,0x0000012e,0x0000012d,0x0006000c,0x00000006,0x0000012f,0x00000001,
|
||||
0x00000004,0x0000012e,0x00050081,0x00000006,0x00000130,0x0000012c,0x0000012f,0x00050041,
|
||||
0x00000007,0x00000131,0x000000c3,0x00000069,0x0004003d,0x00000006,0x00000132,0x00000131,
|
||||
0x0006000c,0x00000006,0x00000133,0x00000001,0x00000004,0x00000132,0x00050081,0x00000006,
|
||||
0x00000134,0x00000130,0x00000133,0x00050041,0x00000007,0x00000135,0x000000c3,0x0000006e,
|
||||
0x0004003d,0x00000006,0x00000136,0x00000135,0x0006000c,0x00000006,0x00000137,0x00000001,
|
||||
0x00000004,0x00000136,0x00050081,0x00000006,0x00000138,0x00000134,0x00000137,0x00050041,
|
||||
0x00000007,0x00000139,0x000000e8,0x00000031,0x0004003d,0x00000006,0x0000013a,0x00000139,
|
||||
0x0006000c,0x00000006,0x0000013b,0x00000001,0x00000004,0x0000013a,0x00050041,0x00000007,
|
||||
0x0000013c,0x000000e8,0x0000003a,0x0004003d,0x00000006,0x0000013d,0x0000013c,0x0006000c,
|
||||
0x00000006,0x0000013e,0x00000001,0x00000004,0x0000013d,0x00050081,0x00000006,0x0000013f,
|
||||
0x0000013b,0x0000013e,0x00050041,0x00000007,0x00000140,0x000000e8,0x00000069,0x0004003d,
|
||||
0x00000006,0x00000141,0x00000140,0x0006000c,0x00000006,0x00000142,0x00000001,0x00000004,
|
||||
0x00000141,0x00050081,0x00000006,0x00000143,0x0000013f,0x00000142,0x00050041,0x00000007,
|
||||
0x00000144,0x000000e8,0x0000006e,0x0004003d,0x00000006,0x00000145,0x00000144,0x0006000c,
|
||||
0x00000006,0x00000146,0x00000001,0x00000004,0x00000145,0x00050081,0x00000006,0x00000147,
|
||||
0x00000143,0x00000146,0x00050081,0x00000006,0x00000148,0x00000138,0x00000147,0x00050041,
|
||||
0x00000007,0x00000149,0x000000f0,0x00000031,0x0004003d,0x00000006,0x0000014a,0x00000149,
|
||||
0x0006000c,0x00000006,0x0000014b,0x00000001,0x00000004,0x0000014a,0x00050041,0x00000007,
|
||||
0x0000014c,0x000000f0,0x0000003a,0x0004003d,0x00000006,0x0000014d,0x0000014c,0x0006000c,
|
||||
0x00000006,0x0000014e,0x00000001,0x00000004,0x0000014d,0x00050081,0x00000006,0x0000014f,
|
||||
0x0000014b,0x0000014e,0x00050041,0x00000007,0x00000150,0x000000f0,0x00000069,0x0004003d,
|
||||
0x00000006,0x00000151,0x00000150,0x0006000c,0x00000006,0x00000152,0x00000001,0x00000004,
|
||||
0x00000151,0x00050081,0x00000006,0x00000153,0x0000014f,0x00000152,0x00050041,0x00000007,
|
||||
0x00000154,0x000000f0,0x0000006e,0x0004003d,0x00000006,0x00000155,0x00000154,0x0006000c,
|
||||
0x00000006,0x00000156,0x00000001,0x00000004,0x00000155,0x00050081,0x00000006,0x00000157,
|
||||
0x00000153,0x00000156,0x00050081,0x00000006,0x00000158,0x00000148,0x00000157,0x0003003e,
|
||||
0x00000129,0x00000158,0x0004003d,0x00000006,0x0000015b,0x00000129,0x00050088,0x00000006,
|
||||
0x0000015c,0x0000015a,0x0000015b,0x0003003e,0x00000159,0x0000015c,0x0004003d,0x00000006,
|
||||
0x0000015e,0x00000159,0x0004003d,0x00000006,0x0000015f,0x00000159,0x00050085,0x00000006,
|
||||
0x00000160,0x0000015e,0x0000015f,0x0003003e,0x0000015d,0x00000160,0x0004003d,0x00000006,
|
||||
0x00000162,0x0000015d,0x0004003d,0x00000016,0x00000164,0x000000c3,0x0003003e,0x00000163,
|
||||
0x00000164,0x0004003d,0x00000016,0x00000166,0x000000e8,0x0003003e,0x00000165,0x00000166,
|
||||
0x00060039,0x0000000e,0x00000167,0x0000001b,0x00000163,0x00000165,0x00050051,0x00000006,
|
||||
0x00000168,0x00000167,0x00000000,0x00050051,0x00000006,0x00000169,0x00000167,0x00000001,
|
||||
0x00060050,0x0000000c,0x0000016a,0x00000162,0x00000168,0x00000169,0x0003003e,0x00000161,
|
||||
0x0000016a,0x00050041,0x00000007,0x0000016c,0x000000be,0x0000003a,0x0004003d,0x00000006,
|
||||
0x0000016d,0x0000016c,0x00050081,0x00000006,0x0000016e,0x0000016d,0x00000054,0x00050041,
|
||||
0x00000007,0x00000170,0x000000be,0x00000031,0x0004003d,0x00000006,0x00000171,0x00000170,
|
||||
0x0003003e,0x0000016f,0x00000171,0x0003003e,0x00000172,0x0000016e,0x00050041,0x00000007,
|
||||
0x00000174,0x000000f0,0x00000031,0x0004003d,0x00000006,0x00000175,0x00000174,0x0003003e,
|
||||
0x00000173,0x00000175,0x0004003d,0x0000000c,0x00000177,0x00000161,0x0003003e,0x00000176,
|
||||
0x00000177,0x00080039,0x0000000e,0x00000178,0x00000014,0x0000016f,0x00000172,0x00000173,
|
||||
0x00000176,0x0003003e,0x0000016b,0x00000178,0x00050041,0x00000007,0x00000179,0x000000be,
|
||||
0x00000031,0x0004003d,0x00000006,0x0000017a,0x00000179,0x00050083,0x00000006,0x0000017b,
|
||||
0x0000017a,0x00000054,0x00050041,0x00000007,0x0000017c,0x000000be,0x0000003a,0x0004003d,
|
||||
0x00000006,0x0000017d,0x0000017c,0x00050081,0x00000006,0x0000017e,0x0000017d,0x00000054,
|
||||
0x0003003e,0x0000017f,0x0000017b,0x0003003e,0x00000180,0x0000017e,0x00050041,0x00000007,
|
||||
0x00000182,0x000000f0,0x0000003a,0x0004003d,0x00000006,0x00000183,0x00000182,0x0003003e,
|
||||
0x00000181,0x00000183,0x0004003d,0x0000000c,0x00000185,0x00000161,0x0003003e,0x00000184,
|
||||
0x00000185,0x00080039,0x0000000e,0x00000186,0x00000014,0x0000017f,0x00000180,0x00000181,
|
||||
0x00000184,0x0004003d,0x0000000e,0x00000187,0x0000016b,0x00050081,0x0000000e,0x00000188,
|
||||
0x00000187,0x00000186,0x0003003e,0x0000016b,0x00000188,0x00050041,0x00000007,0x00000189,
|
||||
0x000000be,0x00000031,0x0004003d,0x00000006,0x0000018a,0x00000189,0x00050083,0x00000006,
|
||||
0x0000018b,0x0000018a,0x00000054,0x00050041,0x00000007,0x0000018c,0x000000be,0x0000003a,
|
||||
0x0004003d,0x00000006,0x0000018d,0x0000018c,0x00050083,0x00000006,0x0000018f,0x0000018d,
|
||||
0x0000018e,0x0003003e,0x00000190,0x0000018b,0x0003003e,0x00000191,0x0000018f,0x00050041,
|
||||
0x00000007,0x00000193,0x000000f0,0x00000069,0x0004003d,0x00000006,0x00000194,0x00000193,
|
||||
0x0003003e,0x00000192,0x00000194,0x0004003d,0x0000000c,0x00000196,0x00000161,0x0003003e,
|
||||
0x00000195,0x00000196,0x00080039,0x0000000e,0x00000197,0x00000014,0x00000190,0x00000191,
|
||||
0x00000192,0x00000195,0x0004003d,0x0000000e,0x00000198,0x0000016b,0x00050081,0x0000000e,
|
||||
0x00000199,0x00000198,0x00000197,0x0003003e,0x0000016b,0x00000199,0x00050041,0x00000007,
|
||||
0x0000019a,0x000000be,0x0000003a,0x0004003d,0x00000006,0x0000019b,0x0000019a,0x00050083,
|
||||
0x00000006,0x0000019c,0x0000019b,0x0000018e,0x00050041,0x00000007,0x0000019e,0x000000be,
|
||||
0x00000031,0x0004003d,0x00000006,0x0000019f,0x0000019e,0x0003003e,0x0000019d,0x0000019f,
|
||||
0x0003003e,0x000001a0,0x0000019c,0x00050041,0x00000007,0x000001a2,0x000000f0,0x0000006e,
|
||||
0x0004003d,0x00000006,0x000001a3,0x000001a2,0x0003003e,0x000001a1,0x000001a3,0x0004003d,
|
||||
0x0000000c,0x000001a5,0x00000161,0x0003003e,0x000001a4,0x000001a5,0x00080039,0x0000000e,
|
||||
0x000001a6,0x00000014,0x0000019d,0x000001a0,0x000001a1,0x000001a4,0x0004003d,0x0000000e,
|
||||
0x000001a7,0x0000016b,0x00050081,0x0000000e,0x000001a8,0x000001a7,0x000001a6,0x0003003e,
|
||||
0x0000016b,0x000001a8,0x00050041,0x00000007,0x000001a9,0x000000be,0x00000031,0x0004003d,
|
||||
0x00000006,0x000001aa,0x000001a9,0x00050081,0x00000006,0x000001ab,0x000001aa,0x00000054,
|
||||
0x00050041,0x00000007,0x000001ac,0x000000be,0x0000003a,0x0004003d,0x00000006,0x000001ad,
|
||||
0x000001ac,0x00050083,0x00000006,0x000001ae,0x000001ad,0x00000054,0x0003003e,0x000001af,
|
||||
0x000001ab,0x0003003e,0x000001b0,0x000001ae,0x00050041,0x00000007,0x000001b2,0x000000c3,
|
||||
0x00000031,0x0004003d,0x00000006,0x000001b3,0x000001b2,0x0003003e,0x000001b1,0x000001b3,
|
||||
0x0004003d,0x0000000c,0x000001b5,0x00000161,0x0003003e,0x000001b4,0x000001b5,0x00080039,
|
||||
0x0000000e,0x000001b6,0x00000014,0x000001af,0x000001b0,0x000001b1,0x000001b4,0x0004003d,
|
||||
0x0000000e,0x000001b7,0x0000016b,0x00050081,0x0000000e,0x000001b8,0x000001b7,0x000001b6,
|
||||
0x0003003e,0x0000016b,0x000001b8,0x00050041,0x00000007,0x000001b9,0x000000be,0x0000003a,
|
||||
0x0004003d,0x00000006,0x000001ba,0x000001b9,0x00050083,0x00000006,0x000001bb,0x000001ba,
|
||||
0x00000054,0x00050041,0x00000007,0x000001bd,0x000000be,0x00000031,0x0004003d,0x00000006,
|
||||
0x000001be,0x000001bd,0x0003003e,0x000001bc,0x000001be,0x0003003e,0x000001bf,0x000001bb,
|
||||
0x00050041,0x00000007,0x000001c1,0x000000c3,0x0000003a,0x0004003d,0x00000006,0x000001c2,
|
||||
0x000001c1,0x0003003e,0x000001c0,0x000001c2,0x0004003d,0x0000000c,0x000001c4,0x00000161,
|
||||
0x0003003e,0x000001c3,0x000001c4,0x00080039,0x0000000e,0x000001c5,0x00000014,0x000001bc,
|
||||
0x000001bf,0x000001c0,0x000001c3,0x0004003d,0x0000000e,0x000001c6,0x0000016b,0x00050081,
|
||||
0x0000000e,0x000001c7,0x000001c6,0x000001c5,0x0003003e,0x0000016b,0x000001c7,0x00050041,
|
||||
0x00000007,0x000001c9,0x000000be,0x00000031,0x0004003d,0x00000006,0x000001ca,0x000001c9,
|
||||
0x0003003e,0x000001c8,0x000001ca,0x00050041,0x00000007,0x000001cc,0x000000be,0x0000003a,
|
||||
0x0004003d,0x00000006,0x000001cd,0x000001cc,0x0003003e,0x000001cb,0x000001cd,0x00050041,
|
||||
0x00000007,0x000001cf,0x000000c3,0x00000069,0x0004003d,0x00000006,0x000001d0,0x000001cf,
|
||||
0x0003003e,0x000001ce,0x000001d0,0x0004003d,0x0000000c,0x000001d2,0x00000161,0x0003003e,
|
||||
0x000001d1,0x000001d2,0x00080039,0x0000000e,0x000001d3,0x00000014,0x000001c8,0x000001cb,
|
||||
0x000001ce,0x000001d1,0x0004003d,0x0000000e,0x000001d4,0x0000016b,0x00050081,0x0000000e,
|
||||
0x000001d5,0x000001d4,0x000001d3,0x0003003e,0x0000016b,0x000001d5,0x00050041,0x00000007,
|
||||
0x000001d6,0x000000be,0x00000031,0x0004003d,0x00000006,0x000001d7,0x000001d6,0x00050081,
|
||||
0x00000006,0x000001d8,0x000001d7,0x00000054,0x0003003e,0x000001d9,0x000001d8,0x00050041,
|
||||
0x00000007,0x000001db,0x000000be,0x0000003a,0x0004003d,0x00000006,0x000001dc,0x000001db,
|
||||
0x0003003e,0x000001da,0x000001dc,0x00050041,0x00000007,0x000001de,0x000000c3,0x0000006e,
|
||||
0x0004003d,0x00000006,0x000001df,0x000001de,0x0003003e,0x000001dd,0x000001df,0x0004003d,
|
||||
0x0000000c,0x000001e1,0x00000161,0x0003003e,0x000001e0,0x000001e1,0x00080039,0x0000000e,
|
||||
0x000001e2,0x00000014,0x000001d9,0x000001da,0x000001dd,0x000001e0,0x0004003d,0x0000000e,
|
||||
0x000001e3,0x0000016b,0x00050081,0x0000000e,0x000001e4,0x000001e3,0x000001e2,0x0003003e,
|
||||
0x0000016b,0x000001e4,0x00050041,0x00000007,0x000001e5,0x000000be,0x00000031,0x0004003d,
|
||||
0x00000006,0x000001e6,0x000001e5,0x00050083,0x00000006,0x000001e7,0x000001e6,0x00000054,
|
||||
0x00050041,0x00000007,0x000001e8,0x000000be,0x0000003a,0x0004003d,0x00000006,0x000001e9,
|
||||
0x000001e8,0x00050083,0x00000006,0x000001ea,0x000001e9,0x00000054,0x0003003e,0x000001eb,
|
||||
0x000001e7,0x0003003e,0x000001ec,0x000001ea,0x00050041,0x00000007,0x000001ee,0x000000e8,
|
||||
0x00000031,0x0004003d,0x00000006,0x000001ef,0x000001ee,0x0003003e,0x000001ed,0x000001ef,
|
||||
0x0004003d,0x0000000c,0x000001f1,0x00000161,0x0003003e,0x000001f0,0x000001f1,0x00080039,
|
||||
0x0000000e,0x000001f2,0x00000014,0x000001eb,0x000001ec,0x000001ed,0x000001f0,0x0004003d,
|
||||
0x0000000e,0x000001f3,0x0000016b,0x00050081,0x0000000e,0x000001f4,0x000001f3,0x000001f2,
|
||||
0x0003003e,0x0000016b,0x000001f4,0x00050041,0x00000007,0x000001f5,0x000000be,0x00000031,
|
||||
0x0004003d,0x00000006,0x000001f6,0x000001f5,0x00050083,0x00000006,0x000001f7,0x000001f6,
|
||||
0x0000018e,0x00050041,0x00000007,0x000001f8,0x000000be,0x0000003a,0x0004003d,0x00000006,
|
||||
0x000001f9,0x000001f8,0x00050083,0x00000006,0x000001fa,0x000001f9,0x00000054,0x0003003e,
|
||||
0x000001fb,0x000001f7,0x0003003e,0x000001fc,0x000001fa,0x00050041,0x00000007,0x000001fe,
|
||||
0x000000e8,0x0000003a,0x0004003d,0x00000006,0x000001ff,0x000001fe,0x0003003e,0x000001fd,
|
||||
0x000001ff,0x0004003d,0x0000000c,0x00000201,0x00000161,0x0003003e,0x00000200,0x00000201,
|
||||
0x00080039,0x0000000e,0x00000202,0x00000014,0x000001fb,0x000001fc,0x000001fd,0x00000200,
|
||||
0x0004003d,0x0000000e,0x00000203,0x0000016b,0x00050081,0x0000000e,0x00000204,0x00000203,
|
||||
0x00000202,0x0003003e,0x0000016b,0x00000204,0x00050041,0x00000007,0x00000205,0x000000be,
|
||||
0x00000031,0x0004003d,0x00000006,0x00000206,0x00000205,0x00050083,0x00000006,0x00000207,
|
||||
0x00000206,0x0000018e,0x0003003e,0x00000208,0x00000207,0x00050041,0x00000007,0x0000020a,
|
||||
0x000000be,0x0000003a,0x0004003d,0x00000006,0x0000020b,0x0000020a,0x0003003e,0x00000209,
|
||||
0x0000020b,0x00050041,0x00000007,0x0000020d,0x000000e8,0x00000069,0x0004003d,0x00000006,
|
||||
0x0000020e,0x0000020d,0x0003003e,0x0000020c,0x0000020e,0x0004003d,0x0000000c,0x00000210,
|
||||
0x00000161,0x0003003e,0x0000020f,0x00000210,0x00080039,0x0000000e,0x00000211,0x00000014,
|
||||
0x00000208,0x00000209,0x0000020c,0x0000020f,0x0004003d,0x0000000e,0x00000212,0x0000016b,
|
||||
0x00050081,0x0000000e,0x00000213,0x00000212,0x00000211,0x0003003e,0x0000016b,0x00000213,
|
||||
0x00050041,0x00000007,0x00000214,0x000000be,0x00000031,0x0004003d,0x00000006,0x00000215,
|
||||
0x00000214,0x00050083,0x00000006,0x00000216,0x00000215,0x00000054,0x0003003e,0x00000217,
|
||||
0x00000216,0x00050041,0x00000007,0x00000219,0x000000be,0x0000003a,0x0004003d,0x00000006,
|
||||
0x0000021a,0x00000219,0x0003003e,0x00000218,0x0000021a,0x00050041,0x00000007,0x0000021c,
|
||||
0x000000e8,0x0000006e,0x0004003d,0x00000006,0x0000021d,0x0000021c,0x0003003e,0x0000021b,
|
||||
0x0000021d,0x0004003d,0x0000000c,0x0000021f,0x00000161,0x0003003e,0x0000021e,0x0000021f,
|
||||
0x00080039,0x0000000e,0x00000220,0x00000014,0x00000217,0x00000218,0x0000021b,0x0000021e,
|
||||
0x0004003d,0x0000000e,0x00000221,0x0000016b,0x00050081,0x0000000e,0x00000222,0x00000221,
|
||||
0x00000220,0x0003003e,0x0000016b,0x00000222,0x00050041,0x00000007,0x00000224,0x0000016b,
|
||||
0x0000003a,0x0004003d,0x00000006,0x00000225,0x00000224,0x00050041,0x00000007,0x00000226,
|
||||
0x0000016b,0x00000031,0x0004003d,0x00000006,0x00000227,0x00000226,0x00050088,0x00000006,
|
||||
0x00000228,0x00000225,0x00000227,0x0003003e,0x00000223,0x00000228,0x00050041,0x00000007,
|
||||
0x0000022a,0x000000c3,0x0000003a,0x0004003d,0x00000006,0x0000022b,0x0000022a,0x00050041,
|
||||
0x00000007,0x0000022c,0x000000c3,0x00000069,0x0004003d,0x00000006,0x0000022d,0x0000022c,
|
||||
0x0007000c,0x00000006,0x0000022e,0x00000001,0x00000028,0x0000022b,0x0000022d,0x00050041,
|
||||
0x00000007,0x0000022f,0x000000e8,0x00000031,0x0004003d,0x00000006,0x00000230,0x0000022f,
|
||||
0x00050041,0x00000007,0x00000231,0x000000e8,0x0000006e,0x0004003d,0x00000006,0x00000232,
|
||||
0x00000231,0x0007000c,0x00000006,0x00000233,0x00000001,0x00000028,0x00000230,0x00000232,
|
||||
0x0007000c,0x00000006,0x00000234,0x00000001,0x00000028,0x0000022e,0x00000233,0x0003003e,
|
||||
0x00000229,0x00000234,0x00050041,0x00000007,0x00000236,0x000000c3,0x0000003a,0x0004003d,
|
||||
0x00000006,0x00000237,0x00000236,0x00050041,0x00000007,0x00000238,0x000000c3,0x00000069,
|
||||
0x0004003d,0x00000006,0x00000239,0x00000238,0x0007000c,0x00000006,0x0000023a,0x00000001,
|
||||
0x00000025,0x00000237,0x00000239,0x00050041,0x00000007,0x0000023b,0x000000e8,0x00000031,
|
||||
0x0004003d,0x00000006,0x0000023c,0x0000023b,0x00050041,0x00000007,0x0000023d,0x000000e8,
|
||||
0x0000006e,0x0004003d,0x00000006,0x0000023e,0x0000023d,0x0007000c,0x00000006,0x0000023f,
|
||||
0x00000001,0x00000025,0x0000023c,0x0000023e,0x0007000c,0x00000006,0x00000240,0x00000001,
|
||||
0x00000025,0x0000023a,0x0000023f,0x0003003e,0x00000235,0x00000240,0x00050041,0x00000242,
|
||||
0x00000243,0x00000094,0x00000241,0x0004003d,0x00000006,0x00000244,0x00000243,0x0004003d,
|
||||
0x00000006,0x00000245,0x00000223,0x00050085,0x00000006,0x00000246,0x00000244,0x00000245,
|
||||
0x0004003d,0x00000006,0x00000247,0x00000235,0x0004003d,0x00000006,0x00000248,0x00000229,
|
||||
0x0008000c,0x00000006,0x00000249,0x00000001,0x0000002b,0x00000246,0x00000247,0x00000248,
|
||||
0x0003003e,0x00000223,0x00000249,0x0004003d,0x00000006,0x0000024b,0x00000223,0x00050041,
|
||||
0x00000007,0x0000024c,0x0000009e,0x0000006e,0x0004003d,0x00000006,0x0000024d,0x0000024c,
|
||||
0x00050083,0x00000006,0x0000024e,0x0000024b,0x0000024d,0x0003003e,0x0000024a,0x0000024e,
|
||||
0x0004003d,0x00000006,0x0000024f,0x0000024a,0x0008000c,0x00000006,0x00000252,0x00000001,
|
||||
0x0000002b,0x0000024f,0x00000250,0x00000251,0x0003003e,0x0000024a,0x00000252,0x00050041,
|
||||
0x00000007,0x00000253,0x0000009e,0x00000031,0x0004003d,0x00000006,0x00000254,0x00000253,
|
||||
0x0004003d,0x00000006,0x00000255,0x0000024a,0x00050081,0x00000006,0x00000256,0x00000254,
|
||||
0x00000255,0x0008000c,0x00000006,0x00000257,0x00000001,0x0000002b,0x00000256,0x00000053,
|
||||
0x00000054,0x00050041,0x00000007,0x00000258,0x0000009e,0x00000031,0x0003003e,0x00000258,
|
||||
0x00000257,0x00050041,0x00000007,0x00000259,0x0000009e,0x0000003a,0x0004003d,0x00000006,
|
||||
0x0000025a,0x00000259,0x0004003d,0x00000006,0x0000025b,0x0000024a,0x00050081,0x00000006,
|
||||
0x0000025c,0x0000025a,0x0000025b,0x0008000c,0x00000006,0x0000025d,0x00000001,0x0000002b,
|
||||
0x0000025c,0x00000053,0x00000054,0x00050041,0x00000007,0x0000025e,0x0000009e,0x0000003a,
|
||||
0x0003003e,0x0000025e,0x0000025d,0x00050041,0x00000007,0x0000025f,0x0000009e,0x00000069,
|
||||
0x0004003d,0x00000006,0x00000260,0x0000025f,0x0004003d,0x00000006,0x00000261,0x0000024a,
|
||||
0x00050081,0x00000006,0x00000262,0x00000260,0x00000261,0x0008000c,0x00000006,0x00000263,
|
||||
0x00000001,0x0000002b,0x00000262,0x00000053,0x00000054,0x00050041,0x00000007,0x00000264,
|
||||
0x0000009e,0x00000069,0x0003003e,0x00000264,0x00000263,0x000200f9,0x000000e1,0x000200f8,
|
||||
0x000000e1,0x00050041,0x00000007,0x00000265,0x0000009e,0x0000006e,0x0003003e,0x00000265,
|
||||
0x00000054,0x0004003d,0x00000016,0x00000268,0x0000009e,0x0003003e,0x00000267,0x00000268,
|
||||
0x000100fd,0x00010038,0x00050036,0x00000006,0x0000000a,0x00000000,0x00000008,0x00030037,
|
||||
0x00000007,0x00000009,0x000200f8,0x0000000b,0x0004003b,0x00000007,0x0000001d,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000021,0x00000007,0x0004003d,0x00000006,0x0000001e,0x00000009,
|
||||
0x00050083,0x00000006,0x00000020,0x0000001e,0x0000001f,0x0003003e,0x0000001d,0x00000020,
|
||||
0x0004003d,0x00000006,0x00000022,0x00000009,0x0004003d,0x00000006,0x00000023,0x0000001d,
|
||||
0x00050085,0x00000006,0x00000024,0x00000022,0x00000023,0x0004003d,0x00000006,0x00000025,
|
||||
0x0000001d,0x00050083,0x00000006,0x00000026,0x00000024,0x00000025,0x0003003e,0x00000021,
|
||||
0x00000026,0x0004003d,0x00000006,0x00000027,0x0000001d,0x0004003d,0x00000006,0x00000028,
|
||||
0x0000001d,0x00050085,0x00000006,0x00000029,0x00000028,0x00000027,0x0003003e,0x0000001d,
|
||||
0x00000029,0x0004003d,0x00000006,0x0000002a,0x00000021,0x0004003d,0x00000006,0x0000002b,
|
||||
0x0000001d,0x00050085,0x00000006,0x0000002c,0x0000002a,0x0000002b,0x000200fe,0x0000002c,
|
||||
0x00010038,0x00050036,0x0000000e,0x00000014,0x00000000,0x0000000f,0x00030037,0x00000007,
|
||||
0x00000010,0x00030037,0x00000007,0x00000011,0x00030037,0x00000007,0x00000012,0x00030037,
|
||||
0x0000000d,0x00000013,0x000200f8,0x00000015,0x0004003b,0x00000007,0x0000002f,0x00000007,
|
||||
0x0004003b,0x00000034,0x00000035,0x00000007,0x0004003b,0x00000007,0x00000038,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000043,0x00000007,0x0004003b,0x00000007,0x0000005b,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000005c,0x00000007,0x00050041,0x00000007,0x00000032,0x00000013,
|
||||
0x00000031,0x0004003d,0x00000006,0x00000033,0x00000032,0x0003003e,0x0000002f,0x00000033,
|
||||
0x0004003d,0x0000000c,0x00000036,0x00000013,0x0007004f,0x0000000e,0x00000037,0x00000036,
|
||||
0x00000036,0x00000001,0x00000002,0x0003003e,0x00000035,0x00000037,0x0004003d,0x00000006,
|
||||
0x00000039,0x00000010,0x00050041,0x00000007,0x0000003b,0x00000035,0x0000003a,0x0004003d,
|
||||
0x00000006,0x0000003c,0x0000003b,0x00050085,0x00000006,0x0000003d,0x00000039,0x0000003c,
|
||||
0x0004003d,0x00000006,0x0000003e,0x00000011,0x00050041,0x00000007,0x0000003f,0x00000035,
|
||||
0x00000031,0x0004003d,0x00000006,0x00000040,0x0000003f,0x00050085,0x00000006,0x00000041,
|
||||
0x0000003e,0x00000040,0x00050081,0x00000006,0x00000042,0x0000003d,0x00000041,0x0003003e,
|
||||
0x00000038,0x00000042,0x0004003d,0x00000006,0x00000044,0x00000010,0x0004003d,0x00000006,
|
||||
0x00000045,0x00000010,0x00050085,0x00000006,0x00000046,0x00000044,0x00000045,0x0004003d,
|
||||
0x00000006,0x00000047,0x00000011,0x0004003d,0x00000006,0x00000048,0x00000011,0x00050085,
|
||||
0x00000006,0x00000049,0x00000047,0x00000048,0x00050081,0x00000006,0x0000004a,0x00000046,
|
||||
0x00000049,0x0004003d,0x00000006,0x0000004b,0x00000038,0x0004003d,0x00000006,0x0000004c,
|
||||
0x00000038,0x00050085,0x00000006,0x0000004d,0x0000004b,0x0000004c,0x0004003d,0x00000006,
|
||||
0x0000004e,0x00000012,0x0004003d,0x00000006,0x0000004f,0x00000012,0x00050085,0x00000006,
|
||||
0x00000050,0x0000004e,0x0000004f,0x0004003d,0x00000006,0x00000051,0x0000002f,0x00050085,
|
||||
0x00000006,0x00000052,0x00000050,0x00000051,0x0008000c,0x00000006,0x00000055,0x00000001,
|
||||
0x0000002b,0x00000052,0x00000053,0x00000054,0x00050085,0x00000006,0x00000057,0x00000055,
|
||||
0x00000056,0x00050083,0x00000006,0x00000058,0x00000057,0x00000054,0x00050085,0x00000006,
|
||||
0x00000059,0x0000004d,0x00000058,0x00050081,0x00000006,0x0000005a,0x0000004a,0x00000059,
|
||||
0x0003003e,0x00000043,0x0000005a,0x0004003d,0x00000006,0x0000005d,0x00000043,0x0003003e,
|
||||
0x0000005c,0x0000005d,0x00050039,0x00000006,0x0000005e,0x0000000a,0x0000005c,0x0003003e,
|
||||
0x0000005b,0x0000005e,0x0004003d,0x00000006,0x0000005f,0x0000005b,0x0004003d,0x00000006,
|
||||
0x00000060,0x0000005b,0x0004003d,0x00000006,0x00000061,0x00000012,0x00050085,0x00000006,
|
||||
0x00000062,0x00000060,0x00000061,0x00050050,0x0000000e,0x00000063,0x0000005f,0x00000062,
|
||||
0x000200fe,0x00000063,0x00010038,0x00050036,0x0000000e,0x0000001b,0x00000000,0x00000018,
|
||||
0x00030037,0x00000017,0x00000019,0x00030037,0x00000017,0x0000001a,0x000200f8,0x0000001c,
|
||||
0x0004003b,0x00000007,0x00000066,0x00000007,0x0004003b,0x00000007,0x0000006d,0x00000007,
|
||||
0x0004003b,0x00000034,0x00000074,0x00000007,0x0004003b,0x00000007,0x0000007d,0x00000007,
|
||||
0x00050041,0x00000007,0x00000067,0x0000001a,0x00000031,0x0004003d,0x00000006,0x00000068,
|
||||
0x00000067,0x00050041,0x00000007,0x0000006a,0x00000019,0x00000069,0x0004003d,0x00000006,
|
||||
0x0000006b,0x0000006a,0x00050083,0x00000006,0x0000006c,0x00000068,0x0000006b,0x0003003e,
|
||||
0x00000066,0x0000006c,0x00050041,0x00000007,0x0000006f,0x0000001a,0x0000006e,0x0004003d,
|
||||
0x00000006,0x00000070,0x0000006f,0x00050041,0x00000007,0x00000071,0x00000019,0x0000003a,
|
||||
0x0004003d,0x00000006,0x00000072,0x00000071,0x00050083,0x00000006,0x00000073,0x00000070,
|
||||
0x00000072,0x0003003e,0x0000006d,0x00000073,0x0004003d,0x00000006,0x00000075,0x00000066,
|
||||
0x0004003d,0x00000006,0x00000076,0x0000006d,0x00050081,0x00000006,0x00000077,0x00000075,
|
||||
0x00000076,0x00050041,0x00000007,0x00000078,0x00000074,0x00000031,0x0003003e,0x00000078,
|
||||
0x00000077,0x0004003d,0x00000006,0x00000079,0x00000066,0x0004003d,0x00000006,0x0000007a,
|
||||
0x0000006d,0x00050083,0x00000006,0x0000007b,0x00000079,0x0000007a,0x00050041,0x00000007,
|
||||
0x0000007c,0x00000074,0x0000003a,0x0003003e,0x0000007c,0x0000007b,0x00050041,0x00000007,
|
||||
0x0000007e,0x00000074,0x00000031,0x0004003d,0x00000006,0x0000007f,0x0000007e,0x00050041,
|
||||
0x00000007,0x00000080,0x00000074,0x00000031,0x0004003d,0x00000006,0x00000081,0x00000080,
|
||||
0x00050085,0x00000006,0x00000082,0x0000007f,0x00000081,0x00050081,0x00000006,0x00000084,
|
||||
0x00000082,0x00000083,0x00050041,0x00000007,0x00000085,0x00000074,0x0000003a,0x0004003d,
|
||||
0x00000006,0x00000086,0x00000085,0x00050041,0x00000007,0x00000087,0x00000074,0x0000003a,
|
||||
0x0004003d,0x00000006,0x00000088,0x00000087,0x00050085,0x00000006,0x00000089,0x00000086,
|
||||
0x00000088,0x00050081,0x00000006,0x0000008a,0x00000084,0x00000089,0x0006000c,0x00000006,
|
||||
0x0000008b,0x00000001,0x00000020,0x0000008a,0x0003003e,0x0000007d,0x0000008b,0x0004003d,
|
||||
0x0000000e,0x0000008c,0x00000074,0x0004003d,0x00000006,0x0000008d,0x0000007d,0x0005008e,
|
||||
0x0000000e,0x0000008e,0x0000008c,0x0000008d,0x000200fe,0x0000008e,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t toon_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000006d,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x00000067,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00030005,0x00000009,0x00007675,0x00060005,0x0000000b,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00060005,0x0000000e,0x65676465,0x65726854,0x6c6f6873,0x00000064,
|
||||
0x00040005,0x00000010,0x7366666f,0x00007465,0x00030005,0x00000014,0x00004350,0x00040006,
|
||||
0x00000014,0x00000000,0x0063646e,0x00060006,0x00000014,0x00000001,0x6f736572,0x6974756c,
|
||||
0x00006e6f,0x00030005,0x00000016,0x00006370,0x00050005,0x0000001f,0x6f6c6f63,0x6e654372,
|
||||
0x00726574,0x00060005,0x00000023,0x75706e49,0x78655474,0x65727574,0x00000000,0x00050005,
|
||||
0x00000028,0x6f6c6f63,0x66654c72,0x00000074,0x00050005,0x00000034,0x6f6c6f63,0x67695272,
|
||||
0x00007468,0x00040005,0x0000003d,0x6f6c6f63,0x00705572,0x00050005,0x00000047,0x6f6c6f63,
|
||||
0x776f4472,0x0000006e,0x00060005,0x00000050,0x66666964,0x69726f48,0x746e6f7a,0x00006c61,
|
||||
0x00060005,0x00000055,0x66666964,0x74726556,0x6c616369,0x00000000,0x00050005,0x0000005a,
|
||||
0x65676465,0x74636146,0x0000726f,0x00060005,0x00000060,0x6c74756f,0x43656e69,0x726f6c6f,
|
||||
0x00000000,0x00050005,0x00000067,0x4374756f,0x726f6c6f,0x00000000,0x00040047,0x0000000b,
|
||||
0x0000001e,0x00000000,0x00030047,0x00000014,0x00000002,0x00050048,0x00000014,0x00000000,
|
||||
0x00000023,0x00000000,0x00050048,0x00000014,0x00000001,0x00000023,0x00000010,0x00040047,
|
||||
0x00000023,0x00000021,0x00000000,0x00040047,0x00000023,0x00000022,0x00000000,0x00040047,
|
||||
0x00000067,0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,
|
||||
0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,
|
||||
0x00000008,0x00000007,0x00000007,0x00040020,0x0000000a,0x00000001,0x00000007,0x0004003b,
|
||||
0x0000000a,0x0000000b,0x00000001,0x00040020,0x0000000d,0x00000007,0x00000006,0x0004002b,
|
||||
0x00000006,0x0000000f,0x3e4ccccd,0x0004002b,0x00000006,0x00000011,0x3f800000,0x0005002c,
|
||||
0x00000007,0x00000012,0x00000011,0x00000011,0x00040017,0x00000013,0x00000006,0x00000004,
|
||||
0x0004001e,0x00000014,0x00000013,0x00000007,0x00040020,0x00000015,0x00000009,0x00000014,
|
||||
0x0004003b,0x00000015,0x00000016,0x00000009,0x00040015,0x00000017,0x00000020,0x00000001,
|
||||
0x0004002b,0x00000017,0x00000018,0x00000001,0x00040020,0x00000019,0x00000009,0x00000007,
|
||||
0x00040017,0x0000001d,0x00000006,0x00000003,0x00040020,0x0000001e,0x00000007,0x0000001d,
|
||||
0x00090019,0x00000020,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,
|
||||
0x00000000,0x0003001b,0x00000021,0x00000020,0x00040020,0x00000022,0x00000000,0x00000021,
|
||||
0x0004003b,0x00000022,0x00000023,0x00000000,0x00040015,0x0000002b,0x00000020,0x00000000,
|
||||
0x0004002b,0x0000002b,0x0000002c,0x00000000,0x0004002b,0x00000006,0x0000002f,0x00000000,
|
||||
0x0004002b,0x0000002b,0x00000040,0x00000001,0x0006002c,0x0000001d,0x00000062,0x0000002f,
|
||||
0x0000002f,0x0000002f,0x00040020,0x00000066,0x00000003,0x00000013,0x0004003b,0x00000066,
|
||||
0x00000067,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
|
||||
0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x0000000d,0x0000000e,
|
||||
0x00000007,0x0004003b,0x00000008,0x00000010,0x00000007,0x0004003b,0x0000001e,0x0000001f,
|
||||
0x00000007,0x0004003b,0x0000001e,0x00000028,0x00000007,0x0004003b,0x0000001e,0x00000034,
|
||||
0x00000007,0x0004003b,0x0000001e,0x0000003d,0x00000007,0x0004003b,0x0000001e,0x00000047,
|
||||
0x00000007,0x0004003b,0x0000000d,0x00000050,0x00000007,0x0004003b,0x0000000d,0x00000055,
|
||||
0x00000007,0x0004003b,0x0000000d,0x0000005a,0x00000007,0x0004003b,0x0000001e,0x00000060,
|
||||
0x00000007,0x0004003d,0x00000007,0x0000000c,0x0000000b,0x0003003e,0x00000009,0x0000000c,
|
||||
0x0003003e,0x0000000e,0x0000000f,0x00050041,0x00000019,0x0000001a,0x00000016,0x00000018,
|
||||
0x0004003d,0x00000007,0x0000001b,0x0000001a,0x00050088,0x00000007,0x0000001c,0x00000012,
|
||||
0x0000001b,0x0003003e,0x00000010,0x0000001c,0x0004003d,0x00000021,0x00000024,0x00000023,
|
||||
0x0004003d,0x00000007,0x00000025,0x00000009,0x00050057,0x00000013,0x00000026,0x00000024,
|
||||
0x00000025,0x0008004f,0x0000001d,0x00000027,0x00000026,0x00000026,0x00000000,0x00000001,
|
||||
0x00000002,0x0003003e,0x0000001f,0x00000027,0x0004003d,0x00000021,0x00000029,0x00000023,
|
||||
0x0004003d,0x00000007,0x0000002a,0x00000009,0x00050041,0x0000000d,0x0000002d,0x00000010,
|
||||
0x0000002c,0x0004003d,0x00000006,0x0000002e,0x0000002d,0x00050050,0x00000007,0x00000030,
|
||||
0x0000002e,0x0000002f,0x00050083,0x00000007,0x00000031,0x0000002a,0x00000030,0x00050057,
|
||||
0x00000013,0x00000032,0x00000029,0x00000031,0x0008004f,0x0000001d,0x00000033,0x00000032,
|
||||
0x00000032,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000028,0x00000033,0x0004003d,
|
||||
0x00000021,0x00000035,0x00000023,0x0004003d,0x00000007,0x00000036,0x00000009,0x00050041,
|
||||
0x0000000d,0x00000037,0x00000010,0x0000002c,0x0004003d,0x00000006,0x00000038,0x00000037,
|
||||
0x00050050,0x00000007,0x00000039,0x00000038,0x0000002f,0x00050081,0x00000007,0x0000003a,
|
||||
0x00000036,0x00000039,0x00050057,0x00000013,0x0000003b,0x00000035,0x0000003a,0x0008004f,
|
||||
0x0000001d,0x0000003c,0x0000003b,0x0000003b,0x00000000,0x00000001,0x00000002,0x0003003e,
|
||||
0x00000034,0x0000003c,0x0004003d,0x00000021,0x0000003e,0x00000023,0x0004003d,0x00000007,
|
||||
0x0000003f,0x00000009,0x00050041,0x0000000d,0x00000041,0x00000010,0x00000040,0x0004003d,
|
||||
0x00000006,0x00000042,0x00000041,0x00050050,0x00000007,0x00000043,0x0000002f,0x00000042,
|
||||
0x00050083,0x00000007,0x00000044,0x0000003f,0x00000043,0x00050057,0x00000013,0x00000045,
|
||||
0x0000003e,0x00000044,0x0008004f,0x0000001d,0x00000046,0x00000045,0x00000045,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x0000003d,0x00000046,0x0004003d,0x00000021,0x00000048,
|
||||
0x00000023,0x0004003d,0x00000007,0x00000049,0x00000009,0x00050041,0x0000000d,0x0000004a,
|
||||
0x00000010,0x00000040,0x0004003d,0x00000006,0x0000004b,0x0000004a,0x00050050,0x00000007,
|
||||
0x0000004c,0x0000002f,0x0000004b,0x00050081,0x00000007,0x0000004d,0x00000049,0x0000004c,
|
||||
0x00050057,0x00000013,0x0000004e,0x00000048,0x0000004d,0x0008004f,0x0000001d,0x0000004f,
|
||||
0x0000004e,0x0000004e,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000047,0x0000004f,
|
||||
0x0004003d,0x0000001d,0x00000051,0x00000034,0x0004003d,0x0000001d,0x00000052,0x00000028,
|
||||
0x00050083,0x0000001d,0x00000053,0x00000051,0x00000052,0x0006000c,0x00000006,0x00000054,
|
||||
0x00000001,0x00000042,0x00000053,0x0003003e,0x00000050,0x00000054,0x0004003d,0x0000001d,
|
||||
0x00000056,0x0000003d,0x0004003d,0x0000001d,0x00000057,0x00000047,0x00050083,0x0000001d,
|
||||
0x00000058,0x00000056,0x00000057,0x0006000c,0x00000006,0x00000059,0x00000001,0x00000042,
|
||||
0x00000058,0x0003003e,0x00000055,0x00000059,0x0004003d,0x00000006,0x0000005b,0x0000000e,
|
||||
0x0004003d,0x00000006,0x0000005c,0x00000050,0x0004003d,0x00000006,0x0000005d,0x00000055,
|
||||
0x00050081,0x00000006,0x0000005e,0x0000005c,0x0000005d,0x0007000c,0x00000006,0x0000005f,
|
||||
0x00000001,0x00000030,0x0000005b,0x0000005e,0x0003003e,0x0000005a,0x0000005f,0x0004003d,
|
||||
0x0000001d,0x00000061,0x0000001f,0x0004003d,0x00000006,0x00000063,0x0000005a,0x00060050,
|
||||
0x0000001d,0x00000064,0x00000063,0x00000063,0x00000063,0x0008000c,0x0000001d,0x00000065,
|
||||
0x00000001,0x0000002e,0x00000061,0x00000062,0x00000064,0x0003003e,0x00000060,0x00000065,
|
||||
0x0004003d,0x0000001d,0x00000068,0x00000060,0x00050051,0x00000006,0x00000069,0x00000068,
|
||||
0x00000000,0x00050051,0x00000006,0x0000006a,0x00000068,0x00000001,0x00050051,0x00000006,
|
||||
0x0000006b,0x00000068,0x00000002,0x00070050,0x00000013,0x0000006c,0x00000069,0x0000006a,
|
||||
0x0000006b,0x00000011,0x0003003e,0x00000067,0x0000006c,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,65 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t upscale_vert_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000004b,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0008000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x0000000a,0x0000003b,0x00000045,
|
||||
0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,
|
||||
0x00000008,0x00006978,0x00060005,0x0000000a,0x565f6c67,0x65747265,0x646e4978,0x00007865,
|
||||
0x00030005,0x0000000f,0x00006979,0x00030005,0x00000014,0x00000078,0x00030005,0x0000001c,
|
||||
0x00004350,0x00040006,0x0000001c,0x00000000,0x0063646e,0x00030005,0x0000001e,0x00006370,
|
||||
0x00030005,0x0000002a,0x00000079,0x00060005,0x00000039,0x505f6c67,0x65567265,0x78657472,
|
||||
0x00000000,0x00060006,0x00000039,0x00000000,0x505f6c67,0x7469736f,0x006e6f69,0x00070006,
|
||||
0x00000039,0x00000001,0x505f6c67,0x746e696f,0x657a6953,0x00000000,0x00070006,0x00000039,
|
||||
0x00000002,0x435f6c67,0x4470696c,0x61747369,0x0065636e,0x00070006,0x00000039,0x00000003,
|
||||
0x435f6c67,0x446c6c75,0x61747369,0x0065636e,0x00030005,0x0000003b,0x00000000,0x00060005,
|
||||
0x00000045,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040047,0x0000000a,0x0000000b,
|
||||
0x0000002a,0x00030047,0x0000001c,0x00000002,0x00050048,0x0000001c,0x00000000,0x00000023,
|
||||
0x00000000,0x00030047,0x00000039,0x00000002,0x00050048,0x00000039,0x00000000,0x0000000b,
|
||||
0x00000000,0x00050048,0x00000039,0x00000001,0x0000000b,0x00000001,0x00050048,0x00000039,
|
||||
0x00000002,0x0000000b,0x00000003,0x00050048,0x00000039,0x00000003,0x0000000b,0x00000004,
|
||||
0x00040047,0x00000045,0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,
|
||||
0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,
|
||||
0x00000006,0x00040020,0x00000009,0x00000001,0x00000006,0x0004003b,0x00000009,0x0000000a,
|
||||
0x00000001,0x0004002b,0x00000006,0x0000000c,0x00000001,0x00030016,0x00000012,0x00000020,
|
||||
0x00040020,0x00000013,0x00000007,0x00000012,0x00020014,0x00000016,0x00040017,0x0000001b,
|
||||
0x00000012,0x00000004,0x0003001e,0x0000001c,0x0000001b,0x00040020,0x0000001d,0x00000009,
|
||||
0x0000001c,0x0004003b,0x0000001d,0x0000001e,0x00000009,0x0004002b,0x00000006,0x0000001f,
|
||||
0x00000000,0x00040015,0x00000020,0x00000020,0x00000000,0x0004002b,0x00000020,0x00000021,
|
||||
0x00000002,0x00040020,0x00000022,0x00000009,0x00000012,0x0004002b,0x00000020,0x00000026,
|
||||
0x00000000,0x0004002b,0x00000020,0x00000030,0x00000003,0x0004002b,0x00000020,0x00000034,
|
||||
0x00000001,0x0004001c,0x00000038,0x00000012,0x00000034,0x0006001e,0x00000039,0x0000001b,
|
||||
0x00000012,0x00000038,0x00000038,0x00040020,0x0000003a,0x00000003,0x00000039,0x0004003b,
|
||||
0x0000003a,0x0000003b,0x00000003,0x0004002b,0x00000012,0x0000003e,0x00000000,0x0004002b,
|
||||
0x00000012,0x0000003f,0x3f800000,0x00040020,0x00000041,0x00000003,0x0000001b,0x00040017,
|
||||
0x00000043,0x00000012,0x00000002,0x00040020,0x00000044,0x00000003,0x00000043,0x0004003b,
|
||||
0x00000044,0x00000045,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,
|
||||
0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000000f,0x00000007,0x0004003b,0x00000013,0x00000014,0x00000007,0x0004003b,0x00000013,
|
||||
0x00000018,0x00000007,0x0004003b,0x00000013,0x0000002a,0x00000007,0x0004003b,0x00000013,
|
||||
0x0000002d,0x00000007,0x0004003d,0x00000006,0x0000000b,0x0000000a,0x000500c3,0x00000006,
|
||||
0x0000000d,0x0000000b,0x0000000c,0x000500c7,0x00000006,0x0000000e,0x0000000d,0x0000000c,
|
||||
0x0003003e,0x00000008,0x0000000e,0x0004003d,0x00000006,0x00000010,0x0000000a,0x000500c7,
|
||||
0x00000006,0x00000011,0x00000010,0x0000000c,0x0003003e,0x0000000f,0x00000011,0x0004003d,
|
||||
0x00000006,0x00000015,0x00000008,0x000500aa,0x00000016,0x00000017,0x00000015,0x0000000c,
|
||||
0x000300f7,0x0000001a,0x00000000,0x000400fa,0x00000017,0x00000019,0x00000025,0x000200f8,
|
||||
0x00000019,0x00060041,0x00000022,0x00000023,0x0000001e,0x0000001f,0x00000021,0x0004003d,
|
||||
0x00000012,0x00000024,0x00000023,0x0003003e,0x00000018,0x00000024,0x000200f9,0x0000001a,
|
||||
0x000200f8,0x00000025,0x00060041,0x00000022,0x00000027,0x0000001e,0x0000001f,0x00000026,
|
||||
0x0004003d,0x00000012,0x00000028,0x00000027,0x0003003e,0x00000018,0x00000028,0x000200f9,
|
||||
0x0000001a,0x000200f8,0x0000001a,0x0004003d,0x00000012,0x00000029,0x00000018,0x0003003e,
|
||||
0x00000014,0x00000029,0x0004003d,0x00000006,0x0000002b,0x0000000f,0x000500aa,0x00000016,
|
||||
0x0000002c,0x0000002b,0x0000000c,0x000300f7,0x0000002f,0x00000000,0x000400fa,0x0000002c,
|
||||
0x0000002e,0x00000033,0x000200f8,0x0000002e,0x00060041,0x00000022,0x00000031,0x0000001e,
|
||||
0x0000001f,0x00000030,0x0004003d,0x00000012,0x00000032,0x00000031,0x0003003e,0x0000002d,
|
||||
0x00000032,0x000200f9,0x0000002f,0x000200f8,0x00000033,0x00060041,0x00000022,0x00000035,
|
||||
0x0000001e,0x0000001f,0x00000034,0x0004003d,0x00000012,0x00000036,0x00000035,0x0003003e,
|
||||
0x0000002d,0x00000036,0x000200f9,0x0000002f,0x000200f8,0x0000002f,0x0004003d,0x00000012,
|
||||
0x00000037,0x0000002d,0x0003003e,0x0000002a,0x00000037,0x0004003d,0x00000012,0x0000003c,
|
||||
0x00000014,0x0004003d,0x00000012,0x0000003d,0x0000002a,0x00070050,0x0000001b,0x00000040,
|
||||
0x0000003c,0x0000003d,0x0000003e,0x0000003f,0x00050041,0x00000041,0x00000042,0x0000003b,
|
||||
0x0000001f,0x0003003e,0x00000042,0x00000040,0x0004003d,0x00000006,0x00000046,0x00000008,
|
||||
0x0004006f,0x00000012,0x00000047,0x00000046,0x0004003d,0x00000006,0x00000048,0x0000000f,
|
||||
0x0004006f,0x00000012,0x00000049,0x00000048,0x00050050,0x00000043,0x0000004a,0x00000047,
|
||||
0x00000049,0x0003003e,0x00000045,0x0000004a,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -0,0 +1,105 @@
|
||||
# ── Embedded Wayland compositor (experimental parallel runtime) ──────────────
|
||||
# Runs a libwayland-server compositor in-process so games launched via Wine's
|
||||
# winewayland.drv can present into it. Protocol glue is pre-generated in
|
||||
# generated/ (no host wayland-scanner needed at app build time). Built by the app
|
||||
# (add_subdirectory from ../CMakeLists.txt) and on its own by standalone/ for
|
||||
# build-waylandcomp.yml.
|
||||
add_library(bannerwayland SHARED
|
||||
src/compositor.c
|
||||
src/vk_present.c
|
||||
src/effects_chain.c
|
||||
src/vk_loader.c
|
||||
src/sc_layer.c
|
||||
src/ahb_swapchain.c
|
||||
src/waylandcomp_jni.c
|
||||
src/banner_ext.c
|
||||
src/wl_clipboard.c
|
||||
src/wl_text_input.c
|
||||
src/wl_toplevel_icon.c
|
||||
src/wl_color_mgmt.c
|
||||
src/hdr_compose.c
|
||||
generated/color-management-v1-protocol.c
|
||||
generated/xdg-shell-protocol.c
|
||||
generated/linux-dmabuf-v1-protocol.c
|
||||
generated/viewporter-protocol.c
|
||||
generated/banner-desktop-v1-protocol.c
|
||||
generated/presentation-time-protocol.c
|
||||
generated/pointer-constraints-unstable-v1-protocol.c
|
||||
generated/relative-pointer-unstable-v1-protocol.c
|
||||
generated/wlr-data-control-unstable-v1-protocol.c
|
||||
generated/text-input-unstable-v3-protocol.c
|
||||
generated/xdg-toplevel-icon-v1-protocol.c
|
||||
generated/banner-ahb-v1-protocol.c
|
||||
src/framegen_bridge.c
|
||||
src/framegen_jni.c
|
||||
)
|
||||
target_include_directories(bannerwayland PRIVATE
|
||||
generated
|
||||
prebuilt/include
|
||||
src
|
||||
# The X11 Vulkan renderer's committed SPIR-V headers (*_frag.h / upscale_vert.h, made by
|
||||
# winlator/gen_shaders.sh): the screen-effect chain (src/effects_chain.c) runs the same bytes.
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../shaders
|
||||
)
|
||||
|
||||
# ── Frame generation (feat/wayland-framegen) ─────────────────────────────────
|
||||
# The two native engines the X11 renderer runs (LSFG Native: winlator/lsfg, Win-FG Native:
|
||||
# winlator/winfg) are compiled into this library unmodified and driven by
|
||||
# src/framegen_engine.cpp through the compositor's own Turnip entry points. They need the
|
||||
# winlator tree and the vendored DXBC translator (thirdparty/dxbc, for the LSFG cache format),
|
||||
# which only the app build has: the standalone build (standalone/) gets the stub, which reports
|
||||
# every engine unavailable and generates nothing.
|
||||
set(BANNER_FRAMEGEN_LSFG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../winlator/lsfg)
|
||||
set(BANNER_FRAMEGEN_WINFG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../winlator/winfg)
|
||||
if (TARGET dxbc AND EXISTS ${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_engine.cpp
|
||||
AND EXISTS ${BANNER_FRAMEGEN_WINFG_DIR}/winfg_engine.cpp)
|
||||
message(STATUS "bannerwayland: frame-generation engines built in (LSFG Native, Win-FG Native)")
|
||||
target_sources(bannerwayland PRIVATE
|
||||
src/framegen_engine.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_probe.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_dll.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_dxbc.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_vkd.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_common.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_shaders.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_mipmaps.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_alpha.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_beta.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_gamma.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_delta.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_generate.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_chain.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_pacer.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_engine.cpp
|
||||
${BANNER_FRAMEGEN_LSFG_DIR}/lsfg_governor.cpp
|
||||
${BANNER_FRAMEGEN_WINFG_DIR}/framegen.cpp
|
||||
${BANNER_FRAMEGEN_WINFG_DIR}/winfg_vkd.cpp
|
||||
${BANNER_FRAMEGEN_WINFG_DIR}/winfg_engine.cpp
|
||||
)
|
||||
target_include_directories(bannerwayland PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/.. # <thirdparty/...> as the winlator target sees it
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../winlator # VulkanRendererContext.h (VkTable), lsfg/, winfg/
|
||||
)
|
||||
target_compile_options(bannerwayland PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-std=c++17 -fvisibility=hidden>)
|
||||
target_compile_definitions(bannerwayland PRIVATE
|
||||
WINFG_UPSTREAM="${WINFG_UPSTREAM}"
|
||||
WINFG_CHAIN_HASH="${WINFG_CHAIN_HASH}"
|
||||
)
|
||||
target_link_libraries(bannerwayland dxbc atomic)
|
||||
else()
|
||||
message(STATUS "bannerwayland: frame-generation engines NOT built in (standalone build): stub")
|
||||
target_sources(bannerwayland PRIVATE src/framegen_engine_stub.c)
|
||||
endif()
|
||||
add_library(wayland-server SHARED IMPORTED)
|
||||
set_target_properties(wayland-server PROPERTIES IMPORTED_LOCATION
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/prebuilt/lib/libwayland-server.so)
|
||||
# Vulkan is loaded at runtime via adrenotools (Turnip), not linked directly — so the
|
||||
# compositor uses Turnip's driver, which supports dmabuf import (drm_format_modifier).
|
||||
target_link_libraries(bannerwayland
|
||||
wayland-server
|
||||
adrenotools
|
||||
dl
|
||||
log
|
||||
android
|
||||
)
|
||||
@@ -0,0 +1,910 @@
|
||||
# HDR on the Wayland backend — reconnaissance
|
||||
|
||||
> **2026-09-14: round 1 of Phase A is built** (branch `feat/wayland-hdr`, opt-in, testing only) —
|
||||
> see **§10** at the end for what was built, how it is gated and how a tester's log proves it.
|
||||
> The recon below is kept as written.
|
||||
|
||||
Written 2026-09-13. **Recon only: no product code was changed, nothing was built, nothing was
|
||||
installed on the device.** Branch surveyed: app `feat/wayland-phase2`, proton-wine
|
||||
`feat/winewayland-desktop-11.0-2`, Banners-Turnip `wayland` (Mesa `7cda7850`, v26.3.0).
|
||||
Device reads are `dumpsys` / `getprop` / `strings` only.
|
||||
|
||||
Companion docs: `ZERO_COPY_SPIKE.md` (buffer path), `WAYLAND_RUNTIME.md`.
|
||||
|
||||
---
|
||||
|
||||
## 0. Answer in one paragraph
|
||||
|
||||
**The game half of HDR is already shipping and nobody noticed.** The Wayland Turnip inside
|
||||
wcp v6 (`Proton-11.0-2.1-arm64ec-6/lib/libvulkan_freedreno_wayland.so`, verified on the device)
|
||||
already contains Mesa's full `wp_color_manager_v1` client implementation and advertises
|
||||
`VK_EXT_swapchain_colorspace` + `VK_EXT_hdr_metadata`; the shipping DXVK v3.1-gplasync already
|
||||
carries `dxgi.enableHDR` / `DXVK_HDR` and the `VK_COLOR_SPACE_HDR10_ST2084_EXT` path;
|
||||
`winewayland.drv` is a transparent 121-line shim that neither adds nor removes colour
|
||||
information. **Everything that is missing is in our compositor**, which advertises no colour
|
||||
protocol, offers only four 8-bit DRM formats over `zwp_linux_dmabuf_v1`, takes
|
||||
`surfaceFormats[0]` for its own swapchain, runs an 8-bit scene/effects chain, and never calls
|
||||
`ASurfaceTransaction_setBufferDataSpace`. The work is therefore **app-side only** — the memory
|
||||
note in `project_bannerlator_wayland_phase4` that HDR "does need a new wcp" is **wrong for the
|
||||
HDR10 (10-bit PQ) path**; a new wcp is only needed for scRGB/FP16 zero-copy. Estimated
|
||||
**4–6 engineer-days** to a plumbed, log-verifiable HDR10 path. But the Pocket FIT's panel
|
||||
reports `supportedHdrTypes=[]`, `supportedColorModes=[0]` (NATIVE only), `hdrSdrRatio
|
||||
not_available` and `displayBrightnessNits=-1`, so **nothing of it can be seen on this device**,
|
||||
and turning it on there would actively *cost* us the zero-copy DEVICE-composition win. Verdict
|
||||
in §8: **not now.**
|
||||
|
||||
---
|
||||
|
||||
## 1. Game side — how far an HDR request gets today
|
||||
|
||||
### 1.1 What a Windows game does
|
||||
|
||||
| Call | Where it lands in DXVK | Notes |
|
||||
|---|---|---|
|
||||
| `IDXGIOutput6::GetDesc1` → `DXGI_OUTPUT_DESC1::ColorSpace` | `src/dxgi/dxgi_output.cpp:220-259` | **Never queries Vulkan.** Reports `RGB_FULL_G2084_NONE_P2020` purely because `dxgi.enableHDR` is on. |
|
||||
| `IDXGISwapChain3::CheckColorSpaceSupport` | `src/dxgi/dxgi_swapchain.cpp:655-667` | This *is* backed by Vulkan (below). Note it is a swapchain method, not a factory method. |
|
||||
| `IDXGISwapChain3::SetColorSpace1` | `dxgi_swapchain.cpp:672-688` → `d3d11_swapchain.cpp:306-331` → `Presenter::supportsColorSpace` (`dxvk_presenter.cpp:319-343`) | Returns `E_INVALIDARG` if the Vulkan surface does not list the colour space. |
|
||||
| `IDXGISwapChain4::SetHDRMetaData` | `dxgi_swapchain.cpp:690-717` → `vkSetHdrMetadataEXT` | Only `DXGI_HDR_METADATA_TYPE_HDR10`. Silently dropped if `VK_EXT_hdr_metadata` is absent (`dxvk_presenter.cpp:143-149`). |
|
||||
|
||||
DXGI→Vulkan mapping (`src/d3d11/d3d11_swapchain.cpp:21-28`):
|
||||
|
||||
```
|
||||
DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 -> VK_COLOR_SPACE_HDR10_ST2084_EXT
|
||||
DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 -> VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT (scRGB)
|
||||
DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 -> VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
|
||||
```
|
||||
|
||||
Swapchain formats DXVK will accept per colour space (`Presenter::pickFormat`,
|
||||
`dxvk_presenter.cpp:1043-1081`):
|
||||
|
||||
* `HDR10_ST2084` → `A2R10G10B10_UNORM_PACK32`, `A2B10G10R10_UNORM_PACK32`,
|
||||
`E5B9G9R9_UFLOAT_PACK32`, `R16G16B16A16_UNORM`, `R16G16B16A16_SFLOAT`
|
||||
* `EXTENDED_SRGB_LINEAR` (scRGB) → **`R16G16B16A16_SFLOAT` only**
|
||||
|
||||
`VK_EXT_hdr_metadata` is optional in both DXVK and vkd3d-proton. `VK_EXT_swapchain_colorspace`
|
||||
is *not* requested as an instance extension by DXVK's win32 WSI — it simply trusts the driver to
|
||||
report the extra `VkColorSpaceKHR` values from `vkGetPhysicalDeviceSurfaceFormatsKHR`. Mesa's
|
||||
Wayland WSI does exactly that (§2.3), so this is not a problem for us.
|
||||
|
||||
**vkd3d-proton (D3D12)** ships its own swapchain (`libs/vkd3d/swapchain.c`), same colour-space
|
||||
mapping (`convert_color_space`, :1717-1730), but **no fallback table**: if the requested
|
||||
HDR colour space is not in `vkGetPhysicalDeviceSurfaceFormatsKHR`, `dxgi_vk_swap_chain_select_format`
|
||||
(:1773-1791) returns `false` with the comment *"Refuse to present unsupported HDR since it will
|
||||
look completely bogus"*, and the caller skips swapchain recreation for that cycle. A D3D12 game
|
||||
that force-sets HDR without checking can therefore **stall presentation** rather than degrade.
|
||||
DXGI enumeration for D3D12 titles is still DXVK's `dxgi.dll`, so `DXVK_HDR` still drives
|
||||
`DXGI_OUTPUT_DESC1`.
|
||||
|
||||
**Verified in our shipped binaries** (device, `strings`):
|
||||
`contents/DXVK/v3.1-gplasync-0/system32/dxgi.dll` contains `dxgi.enableHDR`, `DXVK_HDR`,
|
||||
`VK_COLOR_SPACE_HDR10_ST2084_EXT`; `d3d11.dll`/`d3d9.dll`/`dxgi.dll` contain
|
||||
`VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT`; `contents/VKD3D/3.1.0-wave64-relax-1/.../d3d12core.dll`
|
||||
contains `VK_EXT_hdr_metadata`. Nothing needs rebuilding on the D3D side.
|
||||
|
||||
Proton-level gating: GE's `proton` script maps `PROTON_ENABLE_HDR` / `PROTON_USE_HDR` to
|
||||
`DXVK_HDR=1` and nothing else. For us that is one container env var — no launcher work.
|
||||
|
||||
### 1.2 The failure mode today, exactly
|
||||
|
||||
DXVK's `DXGI_OUTPUT_DESC1` will claim HDR10 as soon as `DXVK_HDR=1`, regardless of Vulkan.
|
||||
`SetColorSpace1` then fails with `E_INVALIDARG` because our compositor advertises no colour
|
||||
management, so Mesa lists only `SRGB_NONLINEAR` + `PASS_THROUGH` (§2.3). Well-behaved games fall
|
||||
back to SDR. Games that trust `GetDesc1` without checking `CheckColorSpaceSupport` can render an
|
||||
HDR-authored image into an SDR swapchain (washed out) — this is a pre-existing foot-gun, not
|
||||
something we introduce. **Recommendation regardless of whether we do HDR: do not expose a
|
||||
`DXVK_HDR` container toggle until the compositor answers truthfully**, or we invite exactly that
|
||||
bug class.
|
||||
|
||||
### 1.3 `winewayland.drv` — carries nothing for colour, and blocks nothing
|
||||
|
||||
`/home/claude-user/proton-wine-wayland2-wt/dlls/winewayland.drv/vulkan.c` is 121 lines:
|
||||
`wayland_vulkan_surface_create` wraps the `wl_surface` in a `VkSurfaceKHR`,
|
||||
`wayland_map_instance_extensions` aliases `VK_KHR_win32_surface` ⇄ `VK_KHR_wayland_surface`.
|
||||
There is **no surface-format or colour-space filtering**, so whatever Mesa advertises reaches
|
||||
DXVK unmodified. A grep for `color|colour|hdr|st2084|bt2020|gamut|10.?bit` across the whole
|
||||
driver returns only GDI colour-bitmap helpers — nothing colorimetric.
|
||||
|
||||
One real consequence: `wayland_output.c` publishes no EDID, and nothing in the tree writes the
|
||||
`EDID` registry value `win32u/sysparams.c:815-818` reads. DXVK's
|
||||
`src/wsi/win32/wsi_monitor_win32.cpp:288-361` therefore finds no EDID and falls back to its dummy
|
||||
HDR luminances (`wsi_edid.h:38-56`: min 0.01 / max 1499 / maxFullFrame 799 nits). A game will
|
||||
size its tonemapper for a 1499-nit display. Correctable later by synthesising an EDID in
|
||||
`winewayland.drv` (that *would* need a new wcp), but not a blocker.
|
||||
|
||||
### 1.4 Our bundled Turnip already speaks colour management — verified on the device
|
||||
|
||||
```
|
||||
$ strings .../Proton/11.0-2.1-arm64ec-6/lib/libvulkan_freedreno_wayland.so
|
||||
wp_color_manager_v1 PRESENT
|
||||
wp_color_management_surface_v1 PRESENT
|
||||
wp_image_description_creator_params_v1 PRESENT
|
||||
banner_ahb_v1 PRESENT (our zero-copy patch)
|
||||
VK_EXT_swapchain_colorspace PRESENT
|
||||
VK_EXT_hdr_metadata PRESENT
|
||||
```
|
||||
|
||||
The plain adrenotools driver the compositor itself loads
|
||||
(`contents/adrenotools/Mesa Turnip v26.3.0-7cda785 (Android + Wayland)/libvulkan_freedreno.so`)
|
||||
has the same colour-management symbols. Our own WSI patch is already aware of the protocol —
|
||||
`patches/wayland/banner_ahb_wsi.py` anchors one of its edits on Mesa's
|
||||
`if (display->color_manager) wp_color_manager_v1_destroy(...)` teardown line.
|
||||
|
||||
**And the zero-copy patch already maps 10-bit to gralloc** — `banner_ahb_wsi.py:99-100, 225-237`:
|
||||
|
||||
```c
|
||||
#define BANNER_AHB_FORMAT_R8G8B8A8_UNORM 1u
|
||||
#define BANNER_AHB_FORMAT_R10G10B10A2_UNORM 0x2bu /* AHARDWAREBUFFER_FORMAT_R10G10B10A2_UNORM */
|
||||
...
|
||||
case VK_FORMAT_A2B10G10R10_UNORM_PACK32: return BANNER_AHB_FORMAT_R10G10B10A2_UNORM;
|
||||
```
|
||||
|
||||
So a 10-bit HDR10 swapchain can already be gralloc-backed and go onto the display layer with the
|
||||
**shipped** wcp. `VK_FORMAT_R16G16B16A16_SFLOAT` is *not* mapped, so `banner_ahb_skip_format`
|
||||
(:239-242, applied at `:606-617`) hides FP16 surface formats whenever zero-copy is on — scRGB
|
||||
zero-copy is the one thing that needs a driver change (one enum: `AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT = 0x16`).
|
||||
|
||||
### 1.5 X11 has no path — confirmed
|
||||
|
||||
`app/src/main/cpp/winlator/VulkanRendererContext.cpp:439` hardcodes
|
||||
`swapchainFmt = VK_FORMAT_R8G8B8A8_UNORM` and `:492` hardcodes
|
||||
`imageColorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR`. Upstream of that, the game presents through
|
||||
`winex11.drv` into our pure-Java X11 server, which has no colour extension of any kind. HDR on X11
|
||||
would mean inventing a private X extension *and* teaching DXVK to use it. Correctly out of scope.
|
||||
|
||||
---
|
||||
|
||||
## 2. Wayland side
|
||||
|
||||
### 2.1 Protocol status
|
||||
|
||||
`wp_color_management_v1` is **merged and stable-ish**: wayland-protocols MR !14, merged
|
||||
2025-02-13, shipped in **wayland-protocols 1.41**, file
|
||||
`staging/color-management/color-management-v1.xml`. Interfaces are at **version 3** upstream today
|
||||
(v2 added `get_image_description`/`preferred_changed2`; v3 added `create_windows_bt2100` and the
|
||||
`absolute_no_adaptation` intent). Predecessors: `zwp_linux_color_management_v1` →
|
||||
`xx_color_management_v4` (the name most 2023–2025 shipping code targeted) → `wp_*` on landing.
|
||||
`frog_color_management_v1` (Valve) is still vendored by gamescope alongside the real one and is
|
||||
still functionally load-bearing on the Deck.
|
||||
|
||||
Implementers: KWin (reference impl, most mature), Mutter (merged 2025-02-25 but still does not
|
||||
advertise enough features for automatic HDR), wlroots 0.20 / Sway 1.12 (HDR10 on the Vulkan
|
||||
renderer), gamescope (v1 semantics + frog), Weston (experimental, no tone mapping).
|
||||
Proton-CachyOS's changelog notes that its `winewayland.drv` `windows_bt2100` path needs protocol
|
||||
**v3** and that *"no compositor supports it yet"* — everybody is converged on **v1**.
|
||||
|
||||
**We only need v1.** That is what Mesa binds.
|
||||
|
||||
### 2.2 Minimum viable compositor subset
|
||||
|
||||
At bind, on the `wp_color_manager_v1` global, send one event per supported item then `done`:
|
||||
|
||||
* `supported_intent`: `perceptual` (mandatory anyway — it is all Mesa ever asks for)
|
||||
* `supported_feature`: `parametric` (gates `create_parametric_creator`); optionally
|
||||
`set_mastering_display_primaries`, and `extended_target_volume` **only if** we want scRGB
|
||||
* `supported_primaries_named`: `bt2020` (HDR10), `srgb` (needed for scRGB and for Mesa's
|
||||
"use a colour surface for sRGB too" branch), `display_p3` (wide gamut)
|
||||
* `supported_tf_named`: `st2084_pq` (HDR10), `ext_linear` (scRGB), `srgb`
|
||||
|
||||
Then implement: `create_parametric_creator` → `wp_image_description_creator_params_v1`
|
||||
(`set_primaries_named`, `set_tf_named`, `set_mastering_display_primaries`,
|
||||
`set_mastering_luminance`, `set_max_cll`, `set_max_fall`) → `create` → emit
|
||||
`wp_image_description_v1.ready` (or `failed`) → `wp_color_manager_v1.get_surface` →
|
||||
`wp_color_management_surface_v1.set_image_description(desc, intent)`, double-buffered on
|
||||
`wl_surface.commit`.
|
||||
|
||||
**Not needed:** ICC creator, `wp_color_management_surface_feedback_v1`,
|
||||
`wp_image_description_info_v1`, output image descriptions, v2/v3 requests. Mesa uses none of them.
|
||||
|
||||
### 2.3 What Mesa's WSI does — read from the exact commit we build
|
||||
|
||||
Read from `src/vulkan/wsi/wsi_common_wayland.c` at Mesa `7cda7850` (4121 lines — the commit
|
||||
recorded in `banners-turnip-wayland/mesa_hash.txt`). Landed upstream as MR !32038 (Xaver Hugl,
|
||||
merged 2025-02-25, Mesa 25.1).
|
||||
|
||||
* **Bind:** `registry_handle_global` binds `wp_color_manager_v1` at **version 1** unconditionally
|
||||
when advertised (`:1536-1538`), and installs `color_manager_listener` (`:1217-1223`).
|
||||
* **Colour-space list:** `wsi_wl_display_determine_colorspaces` (`:1122-1160`) always adds
|
||||
`VK_COLOR_SPACE_SRGB_NONLINEAR_KHR` and `VK_COLOR_SPACE_PASS_THROUGH_EXT`; everything else comes
|
||||
from the static `colorspace_mapping[]` table (`:1038-1118`) and is added **only if** the
|
||||
compositor advertised that entry's primaries *and* transfer function (and, for entries flagged
|
||||
`needs_extended_range`, `feature.extended_target_volume`). Table entries include
|
||||
`HDR10_ST2084` (bt2020 + st2084_pq), `EXTENDED_SRGB_LINEAR` (srgb + ext_linear + extended range),
|
||||
`DISPLAY_P3_NONLINEAR`, `DISPLAY_P3_LINEAR`, `BT709_LINEAR`, `BT709_NONLINEAR`, `BT2020_LINEAR`,
|
||||
`HDR10_HLG`, `ADOBERGB_LINEAR`.
|
||||
* **Surface formats:** `wsi_wl_surface_get_formats2` (`:2205-2246`) emits the **full cross product** of
|
||||
`display.colorspaces` × `display.formats` with **no bit-depth gating**:
|
||||
|
||||
```c
|
||||
u_vector_foreach(cs, &display.colorspaces) {
|
||||
u_vector_foreach(disp_fmt, &display.formats) {
|
||||
if (!(disp_fmt->flags & WSI_WL_FMT_ALPHA) || !(disp_fmt->flags & WSI_WL_FMT_OPAQUE))
|
||||
continue;
|
||||
out_fmt->surfaceFormat.format = disp_fmt->vk_format;
|
||||
out_fmt->surfaceFormat.colorSpace = *cs;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Consequence: if we advertise BT.2020 + PQ but keep only 8-bit DRM formats, Mesa will happily
|
||||
offer `R8G8B8A8_UNORM` + `HDR10_ST2084` and DXVK will **not** take it (`pickFormat`'s HDR10 list
|
||||
is 10-bit/16-bit only) — so there is no accidental 8-bit-PQ trap, but there is also no HDR
|
||||
unless we also advertise a 10-bit DRM format.
|
||||
* **Apply:** `wsi_wl_swapchain_update_colorspace` (`:1323-1455`) builds the parametric creator,
|
||||
blocks on `ready`/`failed` (it dispatches the queue in a loop), sets mastering primaries /
|
||||
luminance / max_cll / max_fall when `should_use_hdr_metadata` is set for that colour space, and
|
||||
calls `set_image_description(..., RENDER_INTENT_PERCEPTUAL)`. `is_hdr_metadata_legal`
|
||||
(`:1277-1299`) drops illegal combinations rather than risking a protocol error. On `failed`
|
||||
without `extended_target_volume` it retries once without metadata.
|
||||
* **`VK_EXT_hdr_metadata`:** `wsi_wl_swapchain_set_hdr_metadata` (`:1459-1463`) just stashes
|
||||
`VkHdrMetadataEXT`; the real work is in `update_colorspace` above.
|
||||
|
||||
**Nothing to build in the driver for HDR10.** Mesa is done.
|
||||
|
||||
### 2.4 Our compositor advertises nothing colorimetric
|
||||
|
||||
Globals (`compositor.c:2527-2538`, plus `ahb_swapchain.c:406`,
|
||||
`wl_clipboard.c:522-523`, `wl_text_input.c:275`, `wl_toplevel_icon.c:35`):
|
||||
`wl_compositor` v6, `wl_subcompositor`, `wp_viewporter`, `wl_output` v2, `xdg_wm_base`,
|
||||
`zwp_linux_dmabuf_v1` **v3**, `wl_seat` v5, `banner_desktop_v1`, `wp_presentation` v2,
|
||||
pointer constraints, relative pointer, `banner_ahb_v1` v2, data device/control, text input,
|
||||
toplevel icon. **No `wp_color_manager_v1`.** `protocols/` has no colour-management XML, and
|
||||
protocol C glue is pre-generated into `generated/` (no `wayland-scanner` at app build time —
|
||||
`CMakeLists.txt:1-4`), so adding a protocol means generating and committing the files offline.
|
||||
|
||||
The dmabuf format table is 8-bit only (`compositor.c:1323-1326`):
|
||||
|
||||
```c
|
||||
#define DMABUF_NFMT 4
|
||||
static struct { uint32_t fmt; uint64_t mods[DMABUF_NMOD]; int n; } g_dmabuf_fmts[DMABUF_NFMT] = {
|
||||
{DRM_ARGB8888}, {DRM_XRGB8888}, {DRM_ABGR8888}, {DRM_XBGR8888}};
|
||||
```
|
||||
|
||||
Good news: the machinery around it is already format-agnostic.
|
||||
`vkp_dmabuf_modifiers` (`vk_present.c`) takes a DRM fourcc and asks the compositor's own Turnip via
|
||||
`VkDrmFormatModifierPropertiesListEXT`, and `drm_to_vk` (`vk_present.c:105-123`) **already** maps
|
||||
`AB30`/`XB30` → `A2B10G10R10_UNORM_PACK32`, `AR30`/`XR30` → `A2R10G10B10_UNORM_PACK32`, and
|
||||
`AB4H`/`XB4H` → `R16G16B16A16_SFLOAT`. Adding 10-bit is a table edit plus the matching
|
||||
`FOURCC` defines next to `compositor.c:415-421`.
|
||||
|
||||
The compositor's own output swapchain is oblivious (`vk_present.c:301-311, 437-466`): two instance
|
||||
extensions (`VK_KHR_surface`, `VK_KHR_android_surface` — **no `VK_EXT_swapchain_colorspace`**),
|
||||
and `VkSurfaceFormatKHR chosen = fmts[0];` (`:441`) — the first format the Android WSI happens to
|
||||
return, with whatever colour space rides along. The scene image and the whole 13-pass effects
|
||||
chain are 8-bit (`vk_present.c:54` `SCENE_FMT = VK_FORMAT_R8G8B8A8_UNORM`; `effects_chain.c:29`
|
||||
`FX_FORMAT = VK_FORMAT_R8G8B8A8_UNORM`).
|
||||
|
||||
> **Naming collision, flag it in any UI work.** The drawer already has an "HDR" effect. It is
|
||||
> `effects_chain.c:197` `P_HDR` / `app/src/main/cpp/winlator/hdr.frag` — a dual-radius bloom +
|
||||
> contrast lift ported from `HDREffect.java`, `HDRPower = 1.30`, entirely SDR and entirely fake.
|
||||
> Real HDR must be named something else ("HDR output", "HDR10") or users will conflate them.
|
||||
|
||||
### 2.5 Is there a protocol-free shortcut?
|
||||
|
||||
No. A `DRM_FORMAT_ABGR2101010` buffer is equally valid as SDR BT.709 or as PQ BT.2020; the format
|
||||
and modifier describe byte layout, not colorimetry. That ambiguity is precisely why
|
||||
`wp_color_management_v1` exists. We *could* add a `set_dataspace` request to our own
|
||||
`banner_ahb_v1` and skip the standard protocol — but Mesa would never call it, so that would need
|
||||
a driver patch (new wcp) to buy something Mesa already gives us for free. **Implement
|
||||
`wp_color_manager_v1` v1 server-side; it is strictly cheaper.**
|
||||
|
||||
---
|
||||
|
||||
## 3. Android side
|
||||
|
||||
### 3.1 The real symbols, their API levels, and what the device has
|
||||
|
||||
`frameworks/native/include/android/surface_control.h`:
|
||||
|
||||
| Symbol | API level | Present in `/system/lib64/libandroid.so` on the Pocket FIT (API 34)? |
|
||||
|---|---|---|
|
||||
| `ASurfaceTransaction_setBufferDataSpace(tx, sc, ADataSpace)` | **29** | **PRESENT** |
|
||||
| `ASurfaceTransaction_setHdrMetadata_smpte2086(tx, sc, AHdrMetadata_smpte2086*)` | **29** | **PRESENT** |
|
||||
| `ASurfaceTransaction_setHdrMetadata_cta861_3(tx, sc, AHdrMetadata_cta861_3*)` | **29** | **PRESENT** |
|
||||
| `ASurfaceTransaction_setExtendedRangeBrightness(tx, sc, float cur, float desired)` | **34** | **PRESENT** |
|
||||
| `ASurfaceTransaction_setDesiredHdrHeadroom(tx, sc, float)` | **35** | absent (expected — device is 34) |
|
||||
| `ASurfaceTransaction_setLuts` | 36 | n/a |
|
||||
| `ASurfaceTransaction_setColorSpace` | **does not exist** | — |
|
||||
| `ASurfaceTransaction_setLuma` | **does not exist** | — |
|
||||
|
||||
(Checked with `strings` on the device's own `libandroid.so`; `setEnableBackPressure` and
|
||||
`setFrameRateWithChangeStrategy` confirmed present alongside, matching what `sc_layer.c` already
|
||||
dlsyms.)
|
||||
|
||||
Our dlsym table is `sc_layer.c:82-97` — 15 entries, **none of them colorimetric**. The additions
|
||||
needed are `setBufferDataSpace` (the only mandatory one), plus optionally
|
||||
`setHdrMetadata_smpte2086` / `_cta861_3` and `setExtendedRangeBrightness`. All four are API ≤ 34,
|
||||
i.e. inside the range `sc_layer.c` already targets, so the existing "missing symbol → path
|
||||
unavailable" pattern covers older devices unchanged.
|
||||
|
||||
### 3.2 Dataspaces we would emit
|
||||
|
||||
`ADataSpace` = `STANDARD (63<<16) | TRANSFER (31<<22) | RANGE (7<<27)`, all in the NDK since 29:
|
||||
|
||||
| Constant | Value | Maps from |
|
||||
|---|---|---|
|
||||
| `ADATASPACE_BT2020_PQ` | 163971072 | `VK_COLOR_SPACE_HDR10_ST2084_EXT` |
|
||||
| `ADATASPACE_BT2020_HLG` | 168165376 | `VK_COLOR_SPACE_HDR10_HLG_EXT` |
|
||||
| `ADATASPACE_SCRGB_LINEAR` | 406913024 | `VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT` |
|
||||
| `ADATASPACE_DISPLAY_P3` | 143261696 | `VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT` |
|
||||
| `ADATASPACE_SRGB` | 142671872 | `VK_COLOR_SPACE_SRGB_NONLINEAR_KHR` (today's implicit default) |
|
||||
|
||||
Every layer on the device right now reports `dataspace=UNKNOWN (0)`, which SF treats as sRGB.
|
||||
|
||||
### 3.3 Buffer formats
|
||||
|
||||
`AHARDWAREBUFFER_FORMAT_R10G10B10A2_UNORM = 0x2b` (API 26) ↔ `VK_FORMAT_A2B10G10R10_UNORM_PACK32`
|
||||
— the normal 10-bit scanout format on Adreno DPUs. QTI gralloc on this device knows it:
|
||||
`strings /vendor/lib64/libqdMetaData.so` lists `RGBA_1010102`, `RGBX_1010102`, `BGRA_1010102`,
|
||||
`BGRX_1010102`. `AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT = 0x16` (API 26) exists but is a
|
||||
compositing intermediate, not normally a scanout format — it was **not** found in the vendor
|
||||
gralloc strings, so treat FP16 gralloc allocation on this SoC as unproven.
|
||||
`AHardwareBuffer_isSupported()` (API 29) is the correct runtime probe, and we should use it rather
|
||||
than assume.
|
||||
|
||||
The compositor's own AHB pool is hardcoded 8-bit (`sc_layer.c:302`
|
||||
`.format = AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM`) and the imported view is built with
|
||||
`DRM_ABGR8888` (`sc_layer.c:326`). That is the *copy* path; the zero-copy path
|
||||
(`sc_layer_present_ahb`, `sc_layer.c:430`) takes the game's own buffer and so already carries
|
||||
whatever format the game allocated — it just never labels it.
|
||||
|
||||
### 3.4 What SurfaceFlinger does with an HDR layer on an SDR panel
|
||||
|
||||
From `services/surfaceflinger/CompositionEngine/src/Output.cpp`, `getBestDataspace()` /
|
||||
`pickColorProfile()`:
|
||||
|
||||
* A `BT2020_PQ` layer sets `outHdrDataSpace = BT2020_PQ` but the output only *adopts* it when
|
||||
`DisplayColorProfile::hasLegacyHdrSupport(BT2020_PQ)` is true — i.e. when the Composer HAL
|
||||
reported HDR types for that display. Otherwise the output dataspace stays `DISPLAY_P3` with
|
||||
`COLORIMETRIC` intent, and the layer is **tone-mapped, not rejected**.
|
||||
* Because the HWC for an SDR-only display cannot consume a PQ buffer, the standard
|
||||
`validateDisplay()` negotiation marks that layer **CLIENT** instead of **DEVICE**, and
|
||||
RenderEngine/Skia composites it with the `libtonemap` SkSL gain shader
|
||||
(`libtonemap_LookupTonemapGain`, uniforms `in_libtonemap_displayMaxLuminance` /
|
||||
`in_libtonemap_inputMaxLuminance`).
|
||||
* **This is the trap for us.** Our whole zero-copy win is that `banner_wayland_game` composites
|
||||
DEVICE (proven 2026-09-13: DEVICE with ROT_90 + 1.5× scale at 144 Hz, −4 pts GPU busy, −3 %
|
||||
power). Tagging that layer `BT2020_PQ` on a panel with no HDR types is very likely to drop it to
|
||||
CLIENT — i.e. HDR would **buy a washed-out tone-map and pay for it with the zero-copy saving**.
|
||||
Any implementation must gate the dataspace on the *display's* reported HDR types, not on the
|
||||
game's request.
|
||||
* `setExtendedRangeBrightness` is a different mechanism: it applies only to `RANGE_EXTENDED`
|
||||
(scRGB) layers and works by having SF dim the *other* layers by `whitePointNits / maxWhitePoint`
|
||||
(`renderengine/LayerSettings.h`) while leaving the extended layer undimmed, so the boosted layer
|
||||
reads brighter by simultaneous contrast without exceeding the panel ceiling.
|
||||
**It needs the display to expose an HDR/SDR ratio.** This panel does not (§4).
|
||||
* `setDesiredHdrHeadroom` (API 35) is the PQ/HLG equivalent and overrides/`is overridden by`
|
||||
`setExtendedRangeBrightness` — last call wins. Not available on the test device at all.
|
||||
|
||||
### 3.5 `has_HDR_display` vs `getHdrCapabilities()`
|
||||
|
||||
`ro.surface_flinger.has_HDR_display` is a **build-time** declaration (`TARGET_HAS_HDR_DISPLAY`)
|
||||
that the device *has* a wide-gamut, high-luminance panel; it gates SF-internal colour-management
|
||||
machinery. `Display.getHdrCapabilities().getSupportedHdrTypes()` is the **runtime, per-display**
|
||||
answer, built from the Composer HAL's `getHdrCapabilities()` for that connector, itself derived
|
||||
from the EDID CTA-861.3 Static Metadata Data Block. **They can disagree, and on this device they
|
||||
do.** An empty list does not mean rejection — it means "tone-map it."
|
||||
|
||||
### 3.6 External display
|
||||
|
||||
On hotplug, the framework queries `getDisplayConfigs`, `getColorModes`, `getHdrCapabilities`,
|
||||
`getDisplayCapabilities` for the new display handle exactly as for the internal panel, so
|
||||
`Display.getHdrCapabilities()` on an external `Display` *is* architecturally wired to reflect the
|
||||
monitor's EDID. Whether it actually does is a vendor-HWC question; empty lists for genuinely
|
||||
HDR10 USB-C monitors are a commonly reported Snapdragon gap. **Unproven for the Pocket FIT — the
|
||||
only way to know is to plug one in.**
|
||||
|
||||
---
|
||||
|
||||
## 4. What the test device can and cannot show
|
||||
|
||||
All read today from the Pocket FIT (Adreno 750, Android 14 / API 34), read-only:
|
||||
|
||||
```
|
||||
DisplayDeviceInfo{"Built-in Screen": 1080 x 1920, ...
|
||||
supportedModes [... supportedHdrTypes=[] (all four modes) ],
|
||||
colorMode 0, supportedColorModes [0],
|
||||
hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[], mMaxLuminance=500.0,
|
||||
mMaxAverageLuminance=500.0, mMinLuminance=0.0},
|
||||
hdrSdrRatio NaN, brightnessMaximum 1.0 ...}
|
||||
mBaseDisplayInfo: ... hdrSdrRatio not_available, userDisabledHdrTypes []
|
||||
```
|
||||
|
||||
```
|
||||
dumpsys SurfaceFlinger:
|
||||
Wide-Color information:
|
||||
Device supports wide color: 1
|
||||
Device uses color management: 1
|
||||
DisplayColorSetting: Managed
|
||||
Display 4630946852602928515 color modes:
|
||||
ColorMode::NATIVE (0)
|
||||
Current color mode: ColorMode::NATIVE (0)
|
||||
colorMode=NATIVE (0) renderIntent=COLORIMETRIC (0) dataspace=UNKNOWN (0) targetDataspace=UNKNOWN (0)
|
||||
displayBrightnessNits=-1.000000 sdrWhitePointNits=-1.000000 displayBrightness=nullopt
|
||||
(every layer) dataspace=UNKNOWN (0) hdr metadata types=0
|
||||
```
|
||||
|
||||
```
|
||||
getprop:
|
||||
[ro.surface_flinger.has_HDR_display]: [true]
|
||||
[ro.surface_flinger.has_wide_color_display]: [true]
|
||||
[ro.surface_flinger.wcg_composition_dataspace]: [143261696] = ADATASPACE_DISPLAY_P3
|
||||
[persist.sys.sf.color_mode]: [9] = ColorMode::DISPLAY_P3
|
||||
[vendor.display.enable_hdr10_gpu_target]: [1]
|
||||
```
|
||||
|
||||
Reading:
|
||||
|
||||
* The **build** declares an HDR, wide-colour device and even asks for `DISPLAY_P3` as the system
|
||||
colour mode (`persist.sys.sf.color_mode=9`), but the **HWC reports `supportedColorModes=[0]`
|
||||
(NATIVE only) and no HDR types**, so SF runs the display in NATIVE with COLORIMETRIC intent and
|
||||
the P3 request is inert. The props are aspirational; the HAL is the truth.
|
||||
* `hdrSdrRatio not_available` / `NaN` and `displayBrightnessNits = -1` mean
|
||||
`Display.isHdrSdrRatioAvailable()` is false → **`setExtendedRangeBrightness` has nothing to act
|
||||
on here.** The "brighten highlights on an SDR panel" trick is unavailable on this device.
|
||||
* `supportedColorModes=[0]` also means **Display-P3 wide gamut is not available either** — not
|
||||
just HDR. A P3-tagged layer would be colour-converted into the panel's native gamut, i.e. into
|
||||
whatever the panel natively is, with no way for us to know what that is.
|
||||
* 500 nits max luminance is below the ~540-nit bar AOSP's own `has_HDR_display` doc cites, and
|
||||
there is no HDR type to signal anyway.
|
||||
|
||||
**Conclusion: visual HDR cannot be demonstrated on the Pocket FIT's internal panel, and neither
|
||||
can wide gamut, and neither can extended-range brightness.** The only things provable on this
|
||||
device are (a) 10-bit buffers end to end (banding reduction, measurable), and (b) plumbing
|
||||
correctness by logs and `dumpsys`.
|
||||
|
||||
Vulkan-side, for completeness (device `strings`):
|
||||
|
||||
| Library | `VK_EXT_swapchain_colorspace` | `VK_EXT_hdr_metadata` |
|
||||
|---|---|---|
|
||||
| `/system/lib64/libvulkan.so` (platform loader — implements the Android swapchain) | **PRESENT** | **PRESENT** |
|
||||
| `/vendor/lib64/hw/vulkan.adreno.so` (Qualcomm blob) | absent | absent |
|
||||
| `/vendor/lib64/hw/vulkan.turnip.so` (vendor-shipped Turnip) | **PRESENT** | **PRESENT** |
|
||||
| wcp v6 `libvulkan_freedreno_wayland.so` (game driver) | **PRESENT** | **PRESENT** |
|
||||
|
||||
The platform loader contains the string `native_window_set_buffers_data_space(%d) failed: %s (%d)`
|
||||
— i.e. Android's own swapchain implementation is what turns a `VkColorSpaceKHR` into a surface
|
||||
dataspace. So for the **copy path**, the compositor's output HDR is genuinely just "enable
|
||||
`VK_EXT_swapchain_colorspace` at instance creation and pick a better surface format than
|
||||
`fmts[0]`". No driver work.
|
||||
|
||||
---
|
||||
|
||||
## 5. The gap list, ordered, with sizes
|
||||
|
||||
Sizes are engineer-days for someone who already knows this code. "Prove" = device-visible in logs
|
||||
or `dumpsys`, not by eye. **App-only unless marked.**
|
||||
|
||||
### Phase A — make the truth reachable (no user-visible HDR yet)
|
||||
|
||||
| # | Repo | Work | Size |
|
||||
|---|---|---|---|
|
||||
| A1 | app | **Advertise 10-bit DRM formats over `zwp_linux_dmabuf_v1`.** Add `AB30`/`XB30` (and optionally `AR30`/`XR30`, `AB4H`/`XB4H`) to `compositor.c:1323-1326` + `FOURCC` defines near `:415-421`. `vkp_dmabuf_modifiers` and `drm_to_vk` already handle them, so this is a table edit + a log line. Risk: a client picking a 10-bit format while the scene/effects chain stays 8-bit — the import works (`drm_to_vk`), the blit downconverts. Gate behind a flag until A4. | **0.5 d** |
|
||||
| A2 | app | **Generate + commit `color-management-v1` protocol glue.** Fetch `staging/color-management/color-management-v1.xml` from wayland-protocols ≥ 1.41, run `wayland-scanner` offline, commit XML + `generated/color-management-v1-{protocol.c,server-protocol.h}`, add to `CMakeLists.txt`. Mechanical. | **0.5 d** |
|
||||
| A3 | app | **Implement `wp_color_manager_v1` v1 server-side** (new `wl_color_mgmt.c`, ~400–500 lines): the global + bind-time feature/intent/primaries/tf events; the parametric creator with `set_primaries_named`/`set_tf_named`/`set_max_cll`/`set_max_fall`/`set_mastering_*`; image-description objects with `ready`/`failed`; `get_surface` → `wp_color_management_surface_v1` and `set_image_description` stored double-buffered on our `struct surface`. **Watch the blocking loop:** Mesa dispatches its queue waiting for `ready`, so we must send `ready` from the request handler's own flush, not defer it to the next frame, or a game stalls at swapchain creation. Advertise only what the *current output* can actually honour (see A5). | **2 d** |
|
||||
| A4 | app | **Carry the image description onto the Android layer.** dlsym `ASurfaceTransaction_setBufferDataSpace` (+ `setHdrMetadata_smpte2086` / `_cta861_3`) in `sc_layer.c:82-97`; map surface image description → `ADataSpace` + `AHdrMetadata_*`; apply in `sc_layer_present_ahb` (`sc_layer.c:430-470`, next to the existing `setBuffer`). Plumb the per-surface description from `compositor.c` through `ahb_swapchain.c:219`. Also set an explicit `ADATASPACE_SRGB` on the existing 8-bit path so we stop relying on `UNKNOWN`. | **1 d** |
|
||||
| A5 | app | **Capability gate.** Read `Display.getHdrCapabilities()` / `getSupportedHdrTypes()` / `isHdrSdrRatioAvailable()` (and the external `Display` when `ExternalDisplayController` has one) in Java, pass down over JNI, and *only then* advertise `bt2020`/`st2084_pq` from A3. Without this we advertise HDR on a panel that will tone-map it and drop the layer to CLIENT (§3.4). Include a `banner_log("color", ...)` line naming exactly what was advertised and why. | **0.5 d** |
|
||||
|
||||
**Phase A total: ~4.5 days. App-only. No new wcp.** End state: a game with `DXVK_HDR=1` on a
|
||||
genuinely HDR display gets an HDR10 swapchain, its buffer reaches an `ASurfaceControl` layer
|
||||
tagged `BT2020_PQ` with real mastering metadata, and `dumpsys SurfaceFlinger` proves it.
|
||||
|
||||
### Phase B — the copy path and the effects chain (only if A is kept)
|
||||
|
||||
| # | Repo | Work | Size |
|
||||
|---|---|---|---|
|
||||
| B1 | app | **10-bit output swapchain.** Add `VK_EXT_swapchain_colorspace` to `vk_present.c:301-311` (`enabledExtensionCount` 2 → 3), replace `chosen = fmts[0]` (`:441`) with a real preference walk (HDR10 + `A2B10G10R10` when the display supports it, else `R8G8B8A8_UNORM` + sRGB). The Android platform loader does the rest. | **0.5 d** |
|
||||
| B2 | app | **Widen the scene + effects chain.** `SCENE_FMT` (`vk_present.c:54`) and `FX_FORMAT` (`effects_chain.c:29`) → `A2B10G10R10_UNORM_PACK32` (or FP16 for real HDR headroom). Every one of the 13 passes samples/writes it; the debanding pass in particular must be re-tuned because its strength is calibrated for 8-bit quantisation. Memory and bandwidth go up ~25 % (or 100 % for FP16). This is the expensive item and it regresses SDR perf if done unconditionally. | **2 d** |
|
||||
| B3 | app | **Layer pool at 10-bit.** `sc_layer.c:302` pool format → `R10G10B10A2_UNORM` when the chain is 10-bit, guarded by `AHardwareBuffer_isSupported()`, with the existing `sniff_modifier`/linear-fallback retry extended. | **0.5 d** |
|
||||
|
||||
**Phase B total: ~3 days. App-only. No new wcp.**
|
||||
|
||||
### Phase C — scRGB, and the one thing that needs a wcp
|
||||
|
||||
| # | Repo | Work | Size |
|
||||
|---|---|---|---|
|
||||
| C1 | **driver (new wcp)** | Map `VK_FORMAT_R16G16B16A16_SFLOAT` → `AHARDWAREBUFFER_FORMAT_R16G16B16A16_FLOAT` (0x16) in `banner_ahb_format_for` (`patches/wayland/banner_ahb_wsi.py:225-237`) so FP16 swapchains are not hidden by `banner_ahb_skip_format` when zero-copy is on. One enum + a rebuild of eight drivers. **This is the only wcp-requiring item, and only for scRGB zero-copy.** Blocked on proving FP16 gralloc allocation works on Adreno at all (§3.3). | **0.5 d + a driver build cycle** |
|
||||
| C2 | app | Advertise `extended_target_volume` + `ext_linear` + `AB4H`/`XB4H`, emit `ADATASPACE_SCRGB_LINEAR`, and wire `ASurfaceTransaction_setExtendedRangeBrightness` from `Display.getHdrSdrRatio()`. | **1 d** |
|
||||
| C3 | **proton-wine (new wcp)** | *Optional, quality only.* Synthesise an EDID with a CTA-861.3 HDR static metadata block in `winewayland.drv` so DXVK reports the real panel luminance in `DXGI_OUTPUT_DESC1` instead of its 1499-nit dummy. | **1–2 d** |
|
||||
|
||||
---
|
||||
|
||||
## 6. Cheap partial wins — and which are visible on a 500-nit panel
|
||||
|
||||
| Idea | Verdict on the Pocket FIT | Notes |
|
||||
|---|---|---|
|
||||
| **10-bit output (banding)** | **Visible, and the best value here.** | This is the one real win. B1 alone (0.5 d) gets a 10-bit output swapchain; A1 (0.5 d) lets the *game* render 10-bit. Adreno 750 + the DPU handle `RGBA_1010102` natively, and `vendor.display.enable_hdr10_gpu_target=1` says the GPU target path expects it. Pairs with the existing debanding pass — arguably makes it unnecessary for 10-bit-capable games, which saves a full-screen pass. Visible on gradients (skyboxes, fog, dark interiors) where our deband pass currently earns its keep. |
|
||||
| **Display-P3 wide gamut on SDR** | **Not visible. Do not build.** | `supportedColorModes=[0]` / `ColorMode::NATIVE` — the HWC exposes no P3 mode. `persist.sys.sf.color_mode=9` asks for P3 and is ignored. Tagging a layer `ADATASPACE_DISPLAY_P3` would make SF convert P3 → the panel's native gamut, which on a NATIVE-mode display is an unknown-to-us transform. Net effect on this device: at best nothing, at worst a colour shift. |
|
||||
| **`setExtendedRangeBrightness` to lift highlights** | **Not available.** | `hdrSdrRatio not_available` / `NaN`, `displayBrightnessNits=-1`, `sdrWhitePointNits=-1`. `Display.isHdrSdrRatioAvailable()` is false, so there is no headroom to claim and SF has no nits data to dim the other layers against. |
|
||||
| **`setDesiredHdrHeadroom`** | **Not available.** | API 35; device is API 34. Absent from `libandroid.so`. |
|
||||
| **Set `ADATASPACE_SRGB` explicitly on our layers** | **Invisible but worth doing anyway (part of A4, ~0 extra cost).** | Every layer currently reports `dataspace=UNKNOWN (0)`. It works today because SF treats UNKNOWN as sRGB, but it is an accident we are relying on, and it will become wrong the moment any colour management is enabled. |
|
||||
|
||||
**So: of the three "cheap wins" in the brief, exactly one — 10-bit — is real on this hardware,
|
||||
and it is worth about 1 engineer-day (A1 + B1) on its own, independent of HDR.**
|
||||
|
||||
---
|
||||
|
||||
## 7. How we would ever prove it
|
||||
|
||||
### 7.1 Which games actually emit HDR under DXVK / VKD3D
|
||||
|
||||
Requirements: a flip-model swapchain at `R10G10B10A2_UNORM` or `R16G16B16A16_FLOAT`, an
|
||||
`IDXGISwapChain3::SetColorSpace1` call, and `DXVK_HDR=1` in the environment. Known-good
|
||||
candidates, easiest first:
|
||||
|
||||
* **D3D11 + scRGB:** *Shadow of the Tomb Raider*, *Resident Evil 2/3 Remake*, *Devil May Cry 5*,
|
||||
*Mass Effect Legendary Edition*. RE Engine titles are the usual smoke test on Linux because they
|
||||
call `SetColorSpace1` early and unconditionally when DXGI reports HDR.
|
||||
* **D3D12 + HDR10:** *Cyberpunk 2077*, *Forza Horizon 5*, *Horizon Zero Dawn*. These go through
|
||||
vkd3d-proton's stricter path (§1.1) — good for catching a half-done implementation, since a
|
||||
wrong answer **stalls presentation** instead of degrading.
|
||||
* **Sanity harness, no game needed:** anything that calls `vkGetPhysicalDeviceSurfaceFormatsKHR`
|
||||
under the layer. `vulkaninfo` is not available in the prefix, but a tiny Win32 Vulkan probe
|
||||
built against the layer's headers, or simply DXVK's own `VK_INSTANCE_LAYERS`-free log with
|
||||
`DXVK_LOG_LEVEL=info` and `DXVK_HDR=1`, will say whether the colour space was accepted. **Start
|
||||
here** — it is the cheapest signal and needs no HDR display at all.
|
||||
|
||||
### 7.2 Platform-side verification (not by eye)
|
||||
|
||||
Order of proof, each step gating the next:
|
||||
|
||||
1. **Compositor log.** New `banner_log("color", ...)` lines: which primaries/tf we advertised and
|
||||
why; every image description created (primaries, tf, max_cll, max_fall); every dataspace set on
|
||||
the layer. This is the only step that works on any device.
|
||||
2. **Guest log.** `DXVK_HDR=1` + `DXVK_LOG_LEVEL=info` → DXVK prints the chosen colour space and
|
||||
format at swapchain creation. If `SetColorSpace1` was refused, DXVK says so. Mesa's WSI prints
|
||||
`Not using HDR metadata to avoid protocol errors` when `is_hdr_metadata_legal` rejects metadata
|
||||
— catching that string is a direct test of A3's metadata plumbing.
|
||||
3. **`dumpsys SurfaceFlinger | grep banner_wayland_game`.** Today it prints
|
||||
`dataspace=UNKNOWN (0) hdr metadata types=0`. Success = `dataspace:0x9c60000` (`BT2020_PQ`, 163971072 =
|
||||
`STANDARD_BT2020|TRANSFER_ST2084|RANGE_FULL`) and `hdr metadata types=` non-zero. **Also record `composition:` on the same line**
|
||||
— if it flips DEVICE → CLIENT, HDR cost us the zero-copy win (§3.4) and that is a failure, not a
|
||||
success.
|
||||
4. **`dumpsys display`.** On whatever display is in use: `supportedHdrTypes=[...]` non-empty,
|
||||
`colorMode` ≠ 0, `hdrSdrRatio` ≠ `not_available`. This is the gate for steps 5–6; on the Pocket
|
||||
FIT's internal panel it will never pass.
|
||||
5. **`dumpsys SurfaceFlinger` Wide-Color section.** `Current color mode` should move off
|
||||
`ColorMode::NATIVE (0)`, and the output line's `dataspace=`/`targetDataspace=` should stop being
|
||||
`UNKNOWN (0)`.
|
||||
6. **Only then, by eye.**
|
||||
|
||||
### 7.3 Getting a display that can actually show it — three options, ranked
|
||||
|
||||
1. **External HDR display over USB-C (recommended, cheapest).** The app already reparents the game
|
||||
into a `Presentation` on a secondary display —
|
||||
`app/src/main/java/com/winlator/star/display/ExternalDisplayController.java`,
|
||||
`findPresentationDisplay()` picks a `DISPLAY_CATEGORY_PRESENTATION` display that is not the
|
||||
activity's own. In the Wayland session the compositor's `SurfaceView` is the reparented view, so
|
||||
`sc_layer.c`'s `ASurfaceControl_createFromWindow(vkp_window(), ...)` follows it automatically —
|
||||
**no new plumbing to test on an external panel.** Risk: `Display.getHdrCapabilities()` for a
|
||||
DP-alt-mode display depends on the vendor HWC reading the external EDID, and empty lists for
|
||||
genuinely HDR10 monitors are a common Snapdragon gap (§3.6). **Step zero is a five-minute,
|
||||
zero-code test: plug an HDR monitor in and run `dumpsys display | grep -A2 hdrCapabilities`.**
|
||||
If the external display reports HDR types, everything else follows. If it does not, options 2
|
||||
and 3 are all that remain.
|
||||
2. **The user's Galaxy Fold (Adreno 840).** Samsung foldables/flagships do report HDR10+ on the
|
||||
internal panel, so this is the most likely device to show real HDR with no extra hardware. But
|
||||
the Fold is *already* the outstanding unknown for basic Wayland bring-up (checkpoint item 1:
|
||||
"Other GPUs… the Galaxy Fold (A840) logs are still outstanding"). Chasing HDR there before
|
||||
plain Wayland is proven there inverts the priority order.
|
||||
3. **Plumbing-only verification on SDR.** Everything in §7.2 steps 1–3 works on the Pocket FIT.
|
||||
This proves the code is *correct* but proves nothing about whether it *looks right* — and
|
||||
tone-mapping quality is the entire user-visible payload of HDR. **Do not ship on this evidence
|
||||
alone.**
|
||||
|
||||
---
|
||||
|
||||
## 8. Verdict
|
||||
|
||||
**Not now. Do the 10-bit slice; park HDR behind the Fold.**
|
||||
|
||||
The reasoning, plainly:
|
||||
|
||||
* **The effort is genuinely small and smaller than we thought.** ~4.5 days to a plumbed HDR10
|
||||
path, **app-only, no new wcp** — because Mesa's colour-management client is already inside the
|
||||
shipped wcp v6 driver and our zero-copy WSI patch already maps 10-bit to gralloc. The phase-4
|
||||
memory note saying HDR "does need a new wcp" should be corrected: only scRGB/FP16 zero-copy (C1)
|
||||
does, and that is optional.
|
||||
* **But the payload is zero on the only device we can test on.** The Pocket FIT reports no HDR
|
||||
types, no colour modes but NATIVE, no HDR/SDR ratio and no brightness nits. We could not see the
|
||||
feature, could not tune the tone-mapping, and could not tell a correct implementation from a
|
||||
subtly wrong one. Shipping HDR proven only by log lines would be the exact opposite of this
|
||||
project's "device-proven, not CI-green" rule.
|
||||
* **On this device it would be a net negative if enabled.** §3.4: an HDR-dataspace layer on a
|
||||
display with no HDR types drops from DEVICE to CLIENT composition. That trades the measured
|
||||
zero-copy win (−4 pts GPU busy, −3 % power) for a GPU tone-map pass and a washed-out image. A
|
||||
capability gate (A5) prevents the harm, but a gate that is always closed on our test hardware is
|
||||
a feature nobody can exercise.
|
||||
* **It is also out of order.** The pre-4 checkpoint's ranked list puts "other GPUs" and "prove
|
||||
zero-copy where it can win, then make it the default" first, with multi-layer presentation in
|
||||
flight. HDR competes with those for the same `sc_layer.c` surface area — and multi-layer will
|
||||
rewrite exactly the code A4 touches. Landing HDR into `sc_layer.c` now means merging it twice.
|
||||
|
||||
**What the user would actually see for the effort, honestly:**
|
||||
|
||||
* **Today, Pocket FIT, full HDR (7.5 days):** nothing. Identical picture, plus a `dumpsys` line
|
||||
that says `BT2020_PQ`, plus a risk of losing zero-copy.
|
||||
* **Today, Pocket FIT, the 10-bit slice only (A1 + B1, ~1 day):** *slightly* smoother gradients in
|
||||
dark scenes and skyboxes for games that offer a 10-bit swapchain, and a plausible route to
|
||||
retiring the debanding pass (one fewer fullscreen pass) for those games. Small, real, and it is
|
||||
the foundation Phase A sits on anyway — so it is not wasted work if HDR later goes ahead.
|
||||
* **Later, on an HDR display (external monitor or the Fold), full Phase A:** genuinely brighter
|
||||
highlights and a wider gamut in the ~15 PC titles that implement HDR properly, on the one Android
|
||||
emulator that can do it. That is a real headline feature and a real differentiator — but only
|
||||
once there is a panel to show it on.
|
||||
|
||||
**Recommended sequence:**
|
||||
|
||||
1. **Five minutes, zero code:** plug an HDR monitor into the Pocket FIT's USB-C and run
|
||||
`dumpsys display | grep -A2 hdrCapabilities`. This single reading decides everything —
|
||||
it is the difference between "we can develop and prove HDR today on hardware we own" and
|
||||
"HDR is blocked on the Fold."
|
||||
2. **~1 day, independent of HDR:** the 10-bit slice (A1 + B1), gated and A/B'd for banding and
|
||||
perf. Ship it as a banding/quality improvement on its own merits.
|
||||
3. **Park Phase A (A2–A5)** until either step 1 comes back positive or the Fold is in the loop
|
||||
and plain Wayland is proven there. Revisit *after* multi-layer presentation lands, so the
|
||||
`sc_layer.c` dataspace work is written once against the final layer API.
|
||||
|
||||
---
|
||||
|
||||
## 9. What I could not establish, and why
|
||||
|
||||
* **Whether FP16 (`R16G16B16A16_FLOAT`) AHardwareBuffers are allocatable on this SoC.** Not in the
|
||||
vendor gralloc strings, and I did not install or run a probe binary (other agents are testing on
|
||||
the device). Decides whether scRGB zero-copy (C1) is possible at all. Cheap to settle later with
|
||||
a one-call `AHardwareBuffer_isSupported()` check inside the compositor's existing startup log.
|
||||
* **Whether an external HDR display over USB-C actually reports HDR types on the Pocket FIT.**
|
||||
No external display was connected and I did not connect one. This is the single highest-value
|
||||
unknown in the whole report (§8, step 1).
|
||||
* **Whether an HDR-tagged layer really drops DEVICE → CLIENT on this HWC.** The AOSP code path is
|
||||
clear (§3.4) but it is vendor-HWC behaviour and I did not test it — testing it would mean
|
||||
launching a game, which was out of scope.
|
||||
* **What the Galaxy Fold (Adreno 840, Android version unknown to me) reports.** Not connected.
|
||||
Its `getHdrCapabilities()` and `isHdrSdrRatioAvailable()` are the other decisive readings.
|
||||
* **Exact Mesa line numbers.** Cited against `wsi_common_wayland.c` fetched from
|
||||
`gitlab.freedesktop.org/mesa/mesa` at `7cda7850edd103ace21aac37d416d2fdf7a282e1`, the commit in
|
||||
`banners-turnip-wayland/mesa_hash.txt`. They are accurate for that file; they will drift if the
|
||||
Turnip base moves.
|
||||
* **DXVK/vkd3d-proton line numbers** are cited against upstream `doitsujin/dxvk@8759acd1` and
|
||||
`HansKristian-Work/vkd3d-proton@2a38e799` (master as of today), not against the exact
|
||||
v3.1-gplasync / 3.1.0-wave64-relax builds we ship. The feature presence in *our* builds was
|
||||
verified independently by `strings` on the device (§1.1); the line numbers are for orientation.
|
||||
* **Whether any of the games in §7.1 launch and run correctly under our Wayland backend at all.**
|
||||
Untested. Picking the HDR test title is its own small exercise and should start from games
|
||||
already known to work in a Wayland container.
|
||||
|
||||
---
|
||||
|
||||
## 10. Round 1 — as built (2026-09-14, `feat/wayland-hdr`)
|
||||
|
||||
Phase A (A1–A5) for HDR10, opt-in, proven by the app's own logs because the first HDR panel in the
|
||||
loop is a tester's non-rooted Galaxy Fold (Adreno 840, Android API 37: HDR10/HLG/HDR10+, 1351 nits,
|
||||
HDR/SDR ratio available). App-only; no layer change.
|
||||
|
||||
### 10.1 The gate (`wl_color_mgmt.c`, `banner_color_init`)
|
||||
|
||||
Open only when ALL hold when the compositor starts:
|
||||
|
||||
| Input | Where it comes from |
|
||||
|---|---|
|
||||
| `BANNER_WAYLAND_HDR=1` (or `true`/`on`) | container or shortcut env (`XServerDisplayActivity.resolvedWaylandHdrMode`) |
|
||||
| the game's display lists **HDR10** | `DisplayHdrInfo.supportsHdr10` for `hdrTargetDisplay()` (the TV when the game is on it) |
|
||||
| display layers with dataspace control | `sc_layer_can_tag_hdr()` = SurfaceControl API + `ASurfaceTransaction_setBufferDataSpace` |
|
||||
| the zero-copy global | `ahb_swapchain_advertised()` |
|
||||
|
||||
`BANNER_WAYLAND_HDR=force` skips the display row only (testing the negotiation on an SDR panel —
|
||||
SurfaceFlinger then tone-maps the layer). A **closed** gate advertises nothing (no
|
||||
`wp_color_manager_v1` global, no 10-bit dma-buf rows), writes `color … HDR gate CLOSED: <why>` and
|
||||
`HDR on screen: no, because <why>`, and the session is otherwise byte-for-byte the old one. With the
|
||||
switch unset the module is silent unless the display lists HDR10 or `DXVK_HDR=1` is set (one hint line).
|
||||
On an HDR10 display the app also turns **zero-copy presentation on** for the session (an HDR frame is
|
||||
only right on the game's own layer) and exports `BANNER_WSI_AHB=1` to match.
|
||||
|
||||
### 10.2 What an open gate offers (§2.2, exactly what Mesa binds)
|
||||
|
||||
`wp_color_manager_v1` **version 1**: intent `perceptual`; features `parametric` +
|
||||
`set_mastering_display_primaries` (Mesa only sends mastering luminance inside that feature's branch);
|
||||
primaries `bt2020`; transfer `st2084_pq`. Not advertised: `srgb` (so Mesa creates no colour surface for
|
||||
SDR swapchains at all), HLG (no DXGI swapchain uses it), `ext_linear`/`extended_target_volume` (scRGB =
|
||||
Phase C, needs FP16 gralloc + a layer change), ICC, `windows_scrgb`. `zwp_linux_dmabuf_v1` gains
|
||||
`AB30`/`XB30` (A2B10G10R10 — Mesa lists a VkFormat only when both the alpha and opaque fourcc are there),
|
||||
appended after the four 8-bit rows. Protocol glue generated from wayland-protocols **1.41** with
|
||||
wayland-scanner 1.24.0 (`protocols/color-management-v1.xml`).
|
||||
|
||||
Strictness: protocol errors only where a conforming client can never hit them (un-advertised
|
||||
feature/intent/primaries/tf, a property set twice, an incomplete set, a not-ready description).
|
||||
Everything a conforming client can produce on a bad day is logged and absorbed instead — out-of-range
|
||||
HDR metadata is dropped from what Android gets (and `max_cll`/`max_fall` of 0 = "unknown", which Mesa
|
||||
sends as-is), a second colour surface for the same `wl_surface` replaces the first, requests on inert
|
||||
objects are ignored. `ready` is sent from inside `create` (Mesa blocks its swapchain on it).
|
||||
Output and surface-feedback image descriptions answer `failed` (Mesa uses neither).
|
||||
|
||||
### 10.3 The layer path (`sc_layer.c`)
|
||||
|
||||
`setBufferDataSpace` (+ `setHdrMetadata_smpte2086` / `_cta861_3` when present) ride the same
|
||||
transaction as the buffer, per layer, only on change, re-sent on every new SurfaceControl (recovery
|
||||
swap, window change). A layer that was never tagged is never touched; once tagged, an untagged frame
|
||||
puts it back to `UNKNOWN` and clears the metadata. The zero-copy frame gets the surface's current
|
||||
description; the 8-bit pool copy of an HDR frame keeps the PQ tag (colours right, 8-bit precision,
|
||||
logged once); the effects pass and the overlay layer are always untagged.
|
||||
|
||||
### 10.4 When an HDR frame cannot be zero-copy — round 1's decision
|
||||
|
||||
No tone-mapping anywhere (the copy path is `vkCmdBlitImage` into an 8-bit sRGB swapchain; a PQ→SDR
|
||||
shader pass is its own project). Instead:
|
||||
|
||||
- **Effects on / frame generation on:** an HDR fullscreen game **keeps its display layer**; the
|
||||
effects chain and frame generation are skipped for it (both are 8-bit SDR and would wash it out),
|
||||
and the base surface's black frame skips them too (`vkp_render_plain`) so generated presents cannot
|
||||
pace the loop. Logged when it starts and when it ends.
|
||||
- **A window above the game on a display that cannot compose a second layer** (phase 5's
|
||||
rotated+scaled rule is untouched), **a windowed HDR game**, **zero-copy switched off**, **layer
|
||||
unavailable:** the scene goes through the copy path and the HDR frames are shown **untone-mapped
|
||||
(washed out)**; every such scene is counted and the reason logged.
|
||||
|
||||
### 10.5 Proof without root — what a tester's logs say
|
||||
|
||||
`Download/Wayland-logs/wayland-*.log`, tag `color` (plus the existing `display` capability line):
|
||||
|
||||
| Line | Means |
|
||||
|---|---|
|
||||
| `HDR gate OPEN: … "Built-in Screen" … reports HDR types HDR10, …` | the offer is on, with its inputs and which Android colour calls exist |
|
||||
| `<program> bound wp_color_manager_v1 version 1 …` | Mesa saw it: `VK_COLOR_SPACE_HDR10_ST2084_EXT` is now listed |
|
||||
| `<window>: colour-management surface created` | a swapchain asked for a non-sRGB colour space |
|
||||
| `image description #N from <program>: BT.2020, ST 2084 (PQ); mastering …; max CLL …, max FALL …` | the game's colour space + `vkSetHdrMetadataEXT` values |
|
||||
| `<window> presents WxH buffers in XB30 (10-bit A2B10G10R10) …, gralloc RGBA1010102 (10-bit)` | the 10-bit swapchain really arrived |
|
||||
| `banner_wayland_game: dataspace BT2020_PQ (0x9c60000) set on the display layer …` | the tag + metadata SurfaceFlinger received |
|
||||
| `HDR last 10 s: N frames on the display layer tagged BT2020_PQ …` | steady state |
|
||||
| `display HDR/SDR ratio X (was Y; HDR frames on screen: yes …)` | `Display.getHdrSdrRatio()` — rises above 1.00 only when Android grants HDR headroom |
|
||||
| `HDR on screen: yes / tagged but NOT confirmed / no, because …` | the verdict (written on changes, at game exit and at session end; the last one counts) |
|
||||
|
||||
DXVK's own `<exe>_dxgi.log` / `<exe>_d3d11.log` add `Color space: VK_COLOR_SPACE_HDR10_ST2084_EXT` and
|
||||
the 10-bit format at swapchain creation; Mesa's `Not using HDR metadata to avoid protocol errors`
|
||||
(stderr → `wine_debug.log`) means the game's metadata failed Mesa's own legality check.
|
||||
|
||||
## 11. Round 2 — as built (2026-09-14, `feat/wayland-hdr`; CI only, not device-proven yet)
|
||||
|
||||
Round 1 is proven on the tester's Fold (God of War, DXVK v3.1: 10-bit zero-copy, `BT2020_PQ` on the
|
||||
layer, HDR/SDR ratio 1.00 → 2.51, `HDR on screen: yes`). Round 2 makes it a setting and removes
|
||||
round 1's big limitation (§10.4: no tone-mapping, effects/frame generation skipped, washed-out copies).
|
||||
The gate itself is unchanged (§10.1) apart from its first input.
|
||||
|
||||
### 11.1 The setting, and what the launch does with it
|
||||
|
||||
- `Container.isWaylandHdr()` (extraData `waylandHdr`) and the shortcut extra `waylandHdr` (`1`/`0`/unset
|
||||
= the container's) — one resolver, `display/WaylandHdr.effective()`, used by the three editors
|
||||
(container, game shortcut, XMB game settings) and the launch path. `BANNER_WAYLAND_HDR` in the
|
||||
environment still overrides it (`1` / `0` / `force`). Editors grey the row with the reason when the
|
||||
built-in screen does not list HDR10 (`WaylandHdr.unavailableReason`), and say it applies from the
|
||||
next launch.
|
||||
- HDR on for the session (setting resolved on AND HDR10 display, or `force`): `DXVK_HDR=1` is exported
|
||||
after the user's env merge unless the user set `DXVK_HDR` themselves.
|
||||
- Every Wayland session whose display lists **HDR10** exports `BANNER_WAYLAND_HDR_MAX_NITS`,
|
||||
`…_MAX_AVG_NITS`, `…_MIN_NITS` (decimal nits from `Display.getHdrCapabilities()`; unknown values and
|
||||
a max of 0 are left out) — the contract the Wayland layer from versionCode 10 turns into EDID HDR
|
||||
metadata for DXGI (checked by the Wine side against DXVK's own EDID parser: the Fold's 1351/1351/0 →
|
||||
DXGI max 1345.43, max full-frame 1345.43, min 0.01). Never on an SDR display, whose EDID would then
|
||||
claim PQ support. One `session environment:` line logs them. Android has no live absolute nits; the
|
||||
live evidence stays the HDR/SDR ratio.
|
||||
- A "DXVK before 3.0 needs layer v10" warning was built and then **removed**: its premise was wrong
|
||||
(Wine already exposes `VK_EXT_swapchain_colorspace` at instance level; DXVK ≥ 2.1 looks for it in the
|
||||
device list, logs 0 on every Mesa system — the working v3.1 run logs 0 too — and never uses it for the
|
||||
HDR decision). Why God of War offered no HDR option on DXVK 2.4.1 is open (Fold A/B).
|
||||
|
||||
### 11.2 HDR-aware composition (`hdr_compose.c`, `hdr_encode.frag`, compositor.c `hdr_plan`)
|
||||
|
||||
Every scene with an HDR draw takes one of four routes (logged on each change, with the reason):
|
||||
|
||||
| Route | When | What reaches the display |
|
||||
|---|---|---|
|
||||
| 0 | the HDR game alone fullscreen, zero-copy on, no effects, nothing above it (or one window the overlay layer can carry) | the game's own 10-bit gralloc frames on its layer, `BT2020_PQ` (round 1) |
|
||||
| 1 | effects on, a window above on a display that cannot take a second layer, a windowed game, zero-copy off | **the HDR picture**: every draw blitted 1:1 into a 10-bit "mixed" image (each pixel still in its own encoding), ONE encode pass to PQ BT.2020 (SDR pixels sRGB → linear → BT.2020, placed at 203 nits, `BANNER_WAYLAND_HDR_SDR_NITS` overrides), the effects chain run on it in 10-bit (`vkp_effects_set_formats`), copied into a 10-bit (`RGBA1010102`) layer buffer, tagged with the game's description; 8-bit buffers if gralloc refuses 10-bit (logged) |
|
||||
| 2 | frame generation on | composed into PQ in the 8-bit scene image, through the frame-generation engine, presented through an **HDR10 swapchain** (`VK_EXT_swapchain_colorspace` enabled on the compositor instance in HDR sessions only; first `A2B10G10R10` else FP16 pair the surface lists with `HDR10_ST2084`); where the surface lists none, **tone-mapped** into the ordinary swapchain. 8 bits through the engine: gradients may band |
|
||||
| 3 | an HDR frame the compositor could not import | layer only; effects/frame generation skipped for it (round 1's behaviour, now the rare case) |
|
||||
|
||||
The tone map (mode 1 of `hdr_encode.frag`): PQ → nits → BT.2020 → BT.709, relative to SDR white, maxRGB
|
||||
curve linear to a 0.8 knee then an exponential roll-off that puts the content peak (the game's max CLL,
|
||||
else mastering max, else 1000 nits) at 98 %, sRGB-encoded. Which pixels are HDR comes from up to six
|
||||
top-first scene rects + a mask in the push constants (more windows over the game → the lowest are
|
||||
treated as SDR, logged once). A composed frame that cannot reach the layer falls back to route 2 for as
|
||||
long as that lasts (logged once each way).
|
||||
|
||||
### 11.3 The live switch (lead's addition): drawer → Graphics → "HDR output"
|
||||
|
||||
Shown only while the gate is open (the activity's 1 s HDR sampler flips `waylandHdrAvailable`). Per
|
||||
session, starts on, nothing saved. Off (`banner_color_set_output(0)`, posted through the host queue
|
||||
to the compositor thread, logged, redraw): route 0 becomes route 1 with the tone map, the picture goes
|
||||
on the layer **untagged** on 8-bit buffers (the layer's dataspace returns to `UNKNOWN`); route 2
|
||||
rebuilds the swapchain as SDR and tone-maps; route 3 cannot (nothing can read those frames) and stays
|
||||
HDR, said in the log. The game is told nothing (its DXVK_HDR and colour-manager offer were decided at
|
||||
launch). The HUD reads `Wayland · HDR` while HDR frames are on screen (tagged in the last 1.5 s and
|
||||
ratio > 1.01 where reported), `Wayland · HDR off` while the switch is off. Frames tone-mapped by the
|
||||
switch are counted separately in the verdict.
|
||||
|
||||
### 11.4 Live headroom (lead's addition after the second Fold run)
|
||||
|
||||
The Fold's second run (brightness slider at maximum) showed the ratio at 3.23 for a minute and then
|
||||
**1.00 for 3+ minutes with HDR frames on screen the whole time**, while the verdict kept saying "rose to
|
||||
3.23". Android simply gave the layer no headroom (SDR white already at the panel's limit). Now, from the
|
||||
ratio samples the app already sends (1 s + the display listener): the time with HDR frames on screen and
|
||||
the part of it with ratio > 1.01; a no-headroom streak (HDR frames on screen, ratio <= 1.01) that after
|
||||
5 s writes `no HDR headroom for 5 s … the screen brightness is probably at maximum …` (and `HDR headroom
|
||||
is back …` when it ends), tags the 10 s line and the steady ratio line, puts the HUD on `Wayland · HDR
|
||||
(no headroom)` and the drawer row on the same hint (`banner_color_hdr_state` = 2); and the verdict
|
||||
reports `headroom above 1.00 for P% of the HDR time (a of b s), now R` plus the hint while the streak
|
||||
lasts. Cheap: no new sampling, a few integers under the existing lock.
|
||||
|
||||
**Round-2 Fold run (20:23, run 34911468350):** the first no-headroom streak was a **screen recording**,
|
||||
not the brightness: the user's recording (210.8 s, BT.709 SDR H.264, finalised 20:27:30, so started
|
||||
~20:23:59) lines up with the ratio falling 2.98 → 1.00 at 20:24:00.9 and staying there to the end. So
|
||||
Android (at least Samsung's) turns HDR headroom off while the screen is recorded. Every hint now names
|
||||
both causes; whether maximum brightness does it too is still unmeasured (tester note step H).
|
||||
|
||||
### 11.5 The HUD's HDR line (round 2b, the user's layout request)
|
||||
|
||||
`40.3ms · Wayland · HDR (no headroom)` ran off the pill's right edge (the capsule's ends curve in, and the
|
||||
latency line is the bottom of the stack). The display-server label is plain `Wayland` again, and the HDR
|
||||
state is a line of its own directly under it, fed as a `FusionHdr` code (`FusionHudView.setHdrState`):
|
||||
`HDR` / `HDR (no headroom)` / `HDR off` / `HDR tone-mapped` (switch on, frame generation without an HDR10
|
||||
swapchain) / `HDR ready` (gate open, no HDR frames right now). `NONE` - every session whose gate is
|
||||
closed - draws nothing, so those HUDs are unchanged to the pixel. Pill: the extra line makes the capsule
|
||||
taller and its ends rounder, so in HDR sessions `fitCapsule()` measures every glyph's ink against the
|
||||
two rounded ends (plus the outline and 2 sp) and shifts/widens the pill until nothing crosses. Full: an
|
||||
`HDR` row under `DISP`; Tiles: the *Display* tile's sub-line; Minimal: a line under the footer; Mega: a
|
||||
fragment after `DISP` in the bottom band. Only the Fusion HUD shows the display server at all; the
|
||||
classic, GameHub and GameNative HUDs never received it and are untouched.
|
||||
|
||||
### 11.6 Round 2d (Fold evidence from 2c)
|
||||
|
||||
- **The format scan was a false negative.** FG with the AIO HDR card logged `lists no HDR10 swapchain
|
||||
format (37/0 37/1000104001 … 37/1000104012)`: `swap_init` read the surface's list into
|
||||
`VkSurfaceFormatKHR fmts[32]`, and with `VK_EXT_swapchain_colorspace` the Android WSI lists every
|
||||
format once per colour space (11 on the Fold) - the 10-bit/FP16 rows were past entry 32, and the log's
|
||||
160-char buffer cut the list too. Now: all pairs read (heap), one line with the total, colour spaces
|
||||
per format and every HDR-capable pair (10-bit/FP16 first); HDR10 pick A2B10G10R10 → A2R10G10B10 →
|
||||
FP16 → 8-bit; a driver that refuses the HDR10 swapchain gets the SDR one at once. The only other
|
||||
fixed array near it (queue families, 16) does not hold surface formats or present modes; FIFO is the
|
||||
only present mode used, so no list is read.
|
||||
- **VK_EXT_hdr_metadata** enabled in HDR sessions where the device lists it; the HDR10 swapchain gets the
|
||||
game's SMPTE 2086 / CTA-861.3 once per swapchain and image description (none if the game sent none).
|
||||
- **FP16 frame generation for HDR.** The bridge and both engines already take a format (the chain,
|
||||
the ring); lsfg-vk itself runs HDR in `R16G16B16A16_SFLOAT`. With HDR frames through an HDR10
|
||||
swapchain the scene (`g_fgscene`), the encode pass (new FP16 output), the effects and the engine run
|
||||
in FP16 where `fge_format_ok` (storage + linear sampling) passes; the PQ signal is fed as-is (the
|
||||
shaders' own HDR flags stay off - PQ is already perceptual). A chain that fails to build in FP16 is
|
||||
sticky inside both engines, so the bridge refuses the format for the session and restarts the engine
|
||||
in 8 bits instead of marking frame generation failed.
|
||||
- **Evidence beside the headroom** (app, non-root): PowerManager thermal status (+ listener) and
|
||||
`getThermalHeadroom(10)` every 10 s, `Settings.System` brightness + mode (+ observer), screenshots
|
||||
(`registerScreenCaptureCallback`, API 34) and screen recording (`addScreenRecordingCallback`, API 35,
|
||||
reflection) with the normal `DETECT_SCREEN_CAPTURE` / `DETECT_SCREEN_RECORDING` permissions. Changes
|
||||
are logged; the no-headroom lines, the 10 s line and the verdict carry the values and name the likely
|
||||
cause (recording / hot / brightness at maximum) or say none is visible. The verdict lists only the
|
||||
paths that carried frames, to leave room for it.
|
||||
|
||||
### 11.7 Round 2e (headroom request, display ceiling, coverage)
|
||||
|
||||
2d on the Fold: all pass (68 surface pairs, HDR10 swapchain A2B10G10R10, FP16 FG at 120 fps, 0 tone-mapped,
|
||||
VK_EXT_hdr_metadata, headroom 3.00 at brightness 255 **auto**). A tester's ROG Phone 9 Pro (Adreno 830,
|
||||
API 36): correct HDR frames, composed path, HDR layer ~80% of the 2400x1080 screen (windowed card), not
|
||||
hot, not recording, brightness 8-223 manual - and the HDR/SDR ratio at **1.00 the whole session**.
|
||||
- `ASurfaceTransaction_setDesiredHdrHeadroom` (API 35) on the game layer, per HDR frame, only on change:
|
||||
content peak (max CLL, else mastering max, else the display's peak) / SDR white, capped at the display's
|
||||
highest ratio; 0 (no preference) when the layer stops carrying HDR; re-sent on a fresh SurfaceControl.
|
||||
The screen surface (HDR10 swapchain for frame generation) gets the same through
|
||||
`SurfaceView.setDesiredHdrHeadroom` (API 35, reflection; `SurfaceControl.Transaction` fallback), applied
|
||||
by the app from `banner_color_screen_headroom()`.
|
||||
- `Display.getHighestHdrSdrRatio()` (Android 16+, reflection) in the display line and the verdict; 1.00
|
||||
means no boost at all, and the request is then not made.
|
||||
- HDR layer coverage in the dataspace line, the composed-picture line and on geometry changes.
|
||||
- "brightness at maximum" only for MANUAL >= 250/255; no visible cause -> "this phone may not boost HDR
|
||||
from apps (the requested headroom was …, the display's highest ratio is …)".
|
||||
|
||||
### 11.8 What is still NOT done / not proven
|
||||
|
||||
- Round 2's composition, switch and HUD line were device-tested in parts on the Fold (setting-driven
|
||||
gate, auto environment, composed picture, headroom lines, HUD); 2d is CI only.
|
||||
- The engines' own HDR flags (lsfg `hdr_support` / FSR3 HDR input) stay off: the PQ signal is treated as
|
||||
perceptual SDR-like data. If interpolation artefacts show only in HDR, that is the next thing to try.
|
||||
- Colour effects (brightness/contrast/saturation/gamma, the "HDR" bloom) operate on the PQ signal in
|
||||
route 1 and look stronger than in SDR; sharpening/AA/CRT/upscalers are perceptually fine.
|
||||
- scRGB (FP16) swapchains (Phase C) — unchanged: needs FP16 gralloc and a layer change.
|
||||
@@ -0,0 +1,472 @@
|
||||
# Bannerlator Wayland runtime (feat/wayland-runtime)
|
||||
|
||||
Experimental **parallel** display runtime: run/launch games through Wine's
|
||||
`winewayland.drv` talking to our own embedded Wayland compositor, instead of the
|
||||
X11 path (pure-Java X11 server + `libwinlator.so`). The X11 runtime stays the
|
||||
default and is untouched — this is a separate flavor/branch.
|
||||
|
||||
## What's already proven (spike repo `bannerlator-wayland`, device-tested on Adreno 750)
|
||||
- Minimal libwayland-server compositor: globals + xdg-shell handshake + buffer commit.
|
||||
- **Turnip's Vulkan WSI exports real zero-copy dmabufs to our external compositor**
|
||||
(same Mesa path winewayland.drv uses for DXVK/VKD3D) — risk #1 retired.
|
||||
- Compositor imports that dmabuf into its own Turnip VkImage (`vk_import.c`).
|
||||
The staged `src/` here is that proven code, to grow into the app-embedded compositor.
|
||||
|
||||
## Dependencies
|
||||
1. **A Proton 11 arm64ec wcp that ships `winewayland.drv`** — built on branch
|
||||
`The412Banner/proton-wine:feat/winewayland` (task #1). Nothing runs end-to-end
|
||||
without it.
|
||||
2. **Wayland runtime libs in the imagefs** so `winewayland.so` (unixlib) loads:
|
||||
`libwayland-client.so`, `libwayland-egl.so`, `libxkbcommon.so`, `libxkbregistry.so`
|
||||
(bionic aarch64). The wcp bundles them in its `lib/` as a fallback; the clean home
|
||||
is the imagefs — add via `ImageFsInstaller` (new `installWaylandLibs()`), same
|
||||
pattern as `installFFmpeg8()`.
|
||||
|
||||
## Integration plan (M4)
|
||||
- **CMake**: add `waylandcomp` as a native lib (`libbannerwayland.so`) built with the
|
||||
NDK, linking the bionic `libwayland-server`/`libvulkan`. Generate protocol glue from
|
||||
`protocols/*.xml` at build time (host `wayland-scanner`).
|
||||
- **Surface**: a `WaylandDisplayActivity` (parallel to `XServerDisplayActivity`) hosts a
|
||||
`SurfaceView`; JNI hands the `ANativeWindow` to the compositor, which creates a Vulkan
|
||||
swapchain on it and blits the imported game VkImage each frame (the last un-proven
|
||||
render step; standard Vulkan once the window exists).
|
||||
- **Input**: Android `MotionEvent`/`KeyEvent` → `wl_seat`/`wl_pointer`/`wl_keyboard`.
|
||||
- **Launch wiring**: start the compositor, export `WAYLAND_DISPLAY`, select the wayland
|
||||
driver per-prefix (registry `Drivers\Graphics = winewayland`) instead of `winex11`,
|
||||
and point the container at the winewayland wcp.
|
||||
|
||||
## Status
|
||||
- ✅ **Native lib foundation done + compile-verified.** Compositor + vk_import + pre-generated
|
||||
protocol glue build as `libbannerwayland.so` (CMake target added), linking the vendored
|
||||
bionic `libwayland-server`. Verified: compiles/links clean as an aarch64 bionic `.so`,
|
||||
exports `banner_wayland_run`, NEEDED = libwayland-server + libvulkan. JNI entry
|
||||
(`waylandcomp_jni.c`) + `WaylandCompositor.java` bring it up on a thread. Compositor-process
|
||||
runtime deps (libwayland-server/libffi/libandroid-support) staged in `jniLibs/arm64-v8a`.
|
||||
- ⏭️ **Next phase (gated on the winewayland wcp landing green):** `WaylandDisplayActivity`
|
||||
(SurfaceView) + JNI `ANativeWindow`→Vulkan swapchain + blit the imported game VkImage to the
|
||||
window (last un-proven render step) + input + launch wiring (start compositor, `WAYLAND_DISPLAY`,
|
||||
per-prefix `Drivers\Graphics=winewayland`) + `ImageFsInstaller.installWaylandLibs()` (client/egl/xkb
|
||||
into the imagefs for winewayland.so).
|
||||
|
||||
## Pointer lock / relative mouse (zwp_pointer_constraints_v1 + zwp_relative_pointer_manager_v1)
|
||||
- Both globals are advertised (version 1); glue is pre-generated in `generated/` with
|
||||
`wayland-scanner server-header` / `private-code` from `protocols/*-unstable-v1.xml` (same
|
||||
scanner version as the rest, 1.24.0), no build-time scanner needed.
|
||||
- winewayland's use: `ClipCursor`/fullscreen + hidden cursor → `lock_pointer` (persistent);
|
||||
`SetCursorPos` → lock + `set_cursor_position_hint` + commit + unlock; visible cursor +
|
||||
`ClipCursor(rect)` → `confine_pointer` with a one-rectangle region. It only turns relative
|
||||
motion on for a window its `wl_pointer` has entered, so **pointer focus follows an active
|
||||
constraint** (the desktop surface gets `leave`, the constrained surface `enter`) and goes
|
||||
back to the desktop on the next motion after the constraint ends.
|
||||
- Lock: the pointer is frozen; every input delta becomes `relative_motion` (no `motion`).
|
||||
Confine: absolute motion is clamped to surface ∩ region. The position hint is applied on
|
||||
the surface's commit (pointer moves there) and is where the pointer stays when the lock ends.
|
||||
One constraint holds at a time (a newer request ends the older one); oneshot constraints
|
||||
are defunct after ending, persistent ones re-take hold on focus re-entry.
|
||||
- App side: input type 6 = relative delta (1/256 px); `banner_on_pointer_lock(locked, x, y)`
|
||||
tells Java to switch its touch/mouse path to deltas (`XServer.setExternalRelativeMode`) and,
|
||||
on unlock, to re-sync the X pointer (the absolute input's source) to x,y. With Wayland mode
|
||||
`WinHandler.mouseEvent` routes relative-mode input to the compositor instead of the guest.
|
||||
- Session log tag `pointer`: `lock requested by …`, `locked: … frozen at x,y`, `unlocked: … (why)`,
|
||||
`confined: …`, `unconfined: …`, `relative pointer created for …`, `position hint: …`.
|
||||
Test FIFO gained `rel DX DY`.
|
||||
|
||||
## Screen surface, swapchain recovery (vk_present.c)
|
||||
- The app's UI thread never waits on the renderer: `vk_present_set_window()` only leaves the new
|
||||
`ANativeWindow` (or NULL) in a request slot; the compositor thread applies it before its next
|
||||
frame and on every vsync tick (`vkp_apply_window_request`), tearing the old swapchain down and
|
||||
releasing the old window's reference. Acquire waits at most 1 s, never forever.
|
||||
- OUT_OF_DATE / SURFACE_LOST on acquire or present rebuild the swapchain (once inline on acquire, so
|
||||
the frame isn't lost). SUBOPTIMAL is presented as is: the swapchain uses IDENTITY preTransform on
|
||||
purpose, so a rotated panel reports it on every frame. DEVICE_LOST logs
|
||||
`GPU device lost … the compositor has stopped presenting` once and stops touching the device;
|
||||
clients keep being paced (`pace_without_output`) so they don't wedge.
|
||||
- A swapchain that can't be created is retried every 0.5 s and logged once per streak.
|
||||
|
||||
## Buffer lifetime, FPS limiter (compositor.c)
|
||||
- `struct dmabuf_buffer` is reference counted: one ref for the wl_buffer resource, one per surface
|
||||
showing it. Mesa destroys a swapchain's wl_buffers when the game rebuilds its swapchain, while the
|
||||
last committed one is still on screen; the surface keeps the import (`s->dmabuf_buf`) until its
|
||||
next commit, so the window neither blinks to black nor is unmapped/remapped ("closed"/"opened").
|
||||
- Surface destroy releases its buffer immediately (`drop_dmabuf(s, 0)`), replaced buffers go back on
|
||||
the limiter's cadence. The per-surface release schedule is bounded: a slot in the past is brought
|
||||
to now, and the schedule never runs further ahead than `(releases still pending + 1)` intervals.
|
||||
|
||||
## Fullscreen mode + screen alignment
|
||||
- `WaylandCompositor.nativeSetScaleMode(fullscreenMode, screenAlignment)` takes the app's
|
||||
`Container.FULLSCREEN_OFF/FIT/STRETCH/FILL/INTEGER` (0..4) and `ALIGN_CENTER/TOP/BOTTOM` (0..2),
|
||||
any thread, any time (the drawer changes it live). `update_map()` in vk_present.c is a line-for-line
|
||||
mirror of `ViewTransformation.update()`: OFF and FIT both letterbox (OFF only differs in the app's
|
||||
fullscreen gates), TOP/BOTTOM confine the picture to the top/bottom half of the output (the
|
||||
handheld split), FILL overflow is clipped to the region. The app maps touch through the same class
|
||||
(TouchpadView → X server → input sink → scene input), the overlay arrow through
|
||||
`waylandSceneToView`, and the SurfaceView's own INPUT_SPACE touches through `vkp_output_to_scene`.
|
||||
- Log tag `screen`: `<mode>, <alignment>: WxH scene shown WxH at x,y on the WxH output` whenever the
|
||||
mapping changes (mode, alignment, scene or output size).
|
||||
|
||||
## Clipboard, text input, window icons (feat/wayland-clipboard-ime)
|
||||
Three globals winewayland used to complain about at startup, each in its own file behind the
|
||||
small interface in `src/banner_ext.h` (compositor.c only gained hook calls + accessors):
|
||||
- **Clipboard** (`src/wl_clipboard.c`): `wl_data_device_manager` **v3** and
|
||||
`zwlr_data_control_manager_v1` **v1**, selection only (start_drag is refused with `cancelled`).
|
||||
Wine prefers data-control: its desktop process then owns the clipboard without needing keyboard
|
||||
focus and the "clipboard functionality will be limited" ERR goes away too. One shared selection:
|
||||
a program's source, or text from Android (`nativeSetClipboardText`), or nothing. Data-control
|
||||
devices hear every change; `wl_data_device`s only while their client holds keyboard focus (hook in
|
||||
`keyboard_focus()`), and on focus arrival. Guest → Android: a selection with a text mime is read
|
||||
once over a pipe on the event loop (1 MiB cap, 3 s timeout) → `banner_on_clipboard_text` →
|
||||
`WaylandClipboardSync` → `ClipboardManager`. Android → guest: `OnPrimaryClipChangedListener` plus a
|
||||
re-read on resume / window focus (Android hides clipboard changes from background apps); `receive`
|
||||
is served by a non-blocking writer. Echo guard on both sides. Log tag `clipboard`.
|
||||
- **Text input** (`src/wl_text_input.c`): `zwp_text_input_manager_v3` **v1**, double-buffered state,
|
||||
`done(serial)` only when we sent events. winewayland enables text input for whichever surface gets
|
||||
`enter` and posts IME updates inside *that window's process*, so text input can't follow keyboard
|
||||
focus (the desktop surface): it follows the last clicked program window (`g_ime_click`, set in
|
||||
`pointer_input`), else the topmost non-shell window. `set_cursor_rectangle` arrives when an edit
|
||||
control calls `ImmSetCompositionWindow`; the app (`WaylandTextInput`) shows the soft keyboard only
|
||||
then (and with no hardware keyboard), hides it on disable unless the user's own toggle opened it.
|
||||
Typed text: `SurfaceInputView`'s `InputConnection` → `commit_string` / `preedit_string` + `done`.
|
||||
Deletions become Backspace/Delete key presses — winewayland's `delete_surrounding_text` handler is
|
||||
empty. Log tag `text-input`.
|
||||
- **Window icons** (`src/wl_toplevel_icon.c`): `xdg_toplevel_icon_manager_v1` **v1**, accepts and
|
||||
drops icons (`done` at bind, no sizes).
|
||||
- Host → compositor text crosses as UTF-8 `byte[]` through `banner_ext.c`'s queue (mutex + wake
|
||||
pipe), drained on the compositor thread. Glue for the three protocols is pre-generated with
|
||||
wayland-scanner 1.24.0 from `protocols/`.
|
||||
|
||||
## Compressed (UBWC) game buffers (feat/wayland-ubwc)
|
||||
- `zwp_linux_dmabuf_v1` used to advertise `LINEAR` (+`INVALID`) only, so Turnip's Wayland WSI in the
|
||||
game allocated linear swapchain images and DXVK/VKD3D resolved every frame from their tiled/UBWC
|
||||
render targets into that linear copy, before the compositor's own blit. Now `bind_dmabuf` builds
|
||||
its table at the first bind from the renderer's driver (`vkp_dmabuf_modifiers`):
|
||||
`vkGetPhysicalDeviceFormatProperties2` + `VkDrmFormatModifierPropertiesListEXT` per fourcc
|
||||
(AR24/XR24/AB24/XB24), each modifier confirmed with `vkGetPhysicalDeviceImageFormatProperties2`
|
||||
for a dma-buf-backed `TRANSFER_SRC` image. Only `DRM_FORMAT_MOD_LINEAR` (0) and
|
||||
`DRM_FORMAT_MOD_QCOM_COMPRESSED` (`0x0500000000000001`, UBWC, single memory plane on Adreno) are
|
||||
ever advertised; anything else the driver reports goes to logcat as "not advertised".
|
||||
- Mesa's WSI hands every advertised+supported modifier to `vkCreateImage` as a modifier *list* and
|
||||
Turnip picks `QCOM_COMPRESSED` whenever it is in the list (`tu_image.cc`), so with the
|
||||
advertisement the game's swapchain is UBWC. The `wl_buffer` then arrives with that modifier and
|
||||
the pixel-plane pitch/offset from the game's `vkGetImageSubresourceLayout(MEMORY_PLANE_0)`;
|
||||
`vkp_image_import_dmabuf` creates the compositor's image with the explicit modifier and that one
|
||||
plane layout (`VkImageDrmFormatModifierExplicitCreateInfoEXT`), which Turnip validates
|
||||
(`INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT` if the pitch does not fit its `fdl6` alignment). The
|
||||
swapchain blit (`vkp_render`) and the layer-mode blit (`vkp_blit_image`) read it like any other
|
||||
source; nothing CPU-side ever touches a dma-buf. Layer mode still blits into its own gralloc pool.
|
||||
- **A/B switch:** `BANNER_WAYLAND_UBWC=0` (or `false`/`off`) in the container's/shortcut's
|
||||
environment variables → `nativeSetUbwc(false)` → linear-only advertisement, exactly the old
|
||||
behaviour. Default on. The driver is still queried, so the log shows what it could have done.
|
||||
- Log tag `dmabuf`: `formats: AR24 linear+qcom_compressed, XR24 …, AB24 …, XB24 …` at the first
|
||||
bind (with ` (BANNER_WAYLAND_UBWC=0: qcom_compressed not advertised)` when off, or a second line
|
||||
`the compositor's driver (…) reports no importable qcom_compressed layout: game swapchains stay
|
||||
linear` when the adrenotools Turnip lacks it). Per window, the existing `vulkan` line now names
|
||||
the modifier: `… is presenting GPU frames through Wayland: 1920x1080, format XB24, qcom_compressed
|
||||
(zero-copy)` vs `… linear (zero-copy)`. Import failures are `error` lines naming the stage,
|
||||
modifier, size, pitch and VkResult (`dmabuf: vkCreateImage(qcom_compressed, …) -> …`).
|
||||
- Caveat: both sides must agree on the UBWC encoding for the GPU. The game runs the wcp's Wayland
|
||||
Turnip, the compositor the user's adrenotools Turnip; the layout code (`fdl6`) is the same, but a
|
||||
very different Mesa version on one side is the first suspect if a compressed frame imports fine
|
||||
yet looks scrambled — `=0` is the workaround, and the `gpu` line names both the GPU and the
|
||||
compositor's driver.
|
||||
|
||||
## Phones with no DRM node (OpenGL) — `BANNER_WAYLAND_NO_RENDER_NODE=1`
|
||||
- The feedback's `main_device` is the first of `/dev/dri/renderD128`, `renderD129`, `card0` the app
|
||||
can `stat`; retail phones (Adreno 830/840 reports, 2026-09-14) expose none, so it is `0:0`.
|
||||
Vulkan games do not care. Mesa's EGL did: its Wayland DRM initialiser failed the display in
|
||||
`dri2_setup_device()` without a render node and fell back to a software path that has no
|
||||
rasteriser in these layers — native OpenGL black, sound playing. Wayland layer versionCode 9
|
||||
(Banners-Turnip `patches/wayland/egl_wayland_no_drm_node.py`) runs zink + kopper on the Vulkan
|
||||
device without a node instead; nothing app-side is needed for that.
|
||||
- `BANNER_WAYLAND_NO_RENDER_NODE=1` (container or shortcut env) makes the compositor advertise
|
||||
`main device 0:0` on a device that does have a node, to reproduce those phones here.
|
||||
- Log lines: `dmabuf` `… no display (DRM) device …: OpenGL games need Wayland layer versionCode 9
|
||||
or newer …` when the main device is 0:0; `opengl` `<program> asked for GPU buffers but has drawn
|
||||
only software (shared-memory) frames …` once per program that asked for dma-buf feedback (EGL's
|
||||
GPU path always does) and then committed 150 wl_shm frames without making a dma-buf buffer.
|
||||
|
||||
## Zero-copy window layers (spike, `BANNER_WAYLAND_ZERO_COPY=1`)
|
||||
Research + host-side prototype in `ZERO_COPY_SPIKE.md`: why a dma-buf can't become an
|
||||
`AHardwareBuffer` (the game's buffers are DMA-heap allocations, not gralloc's), why the interop
|
||||
must start from a gralloc buffer whose native-handle fd the drivers import (Turnip's own AHB path),
|
||||
and the WSI patch this needs in our Wayland Turnip. `src/sc_layer.c` implements the receive side:
|
||||
with the variable in the container's environment, one fullscreen game window is shown on its own
|
||||
`ASurfaceControl` child of the SurfaceView (pool of three compositor-allocated AHBs, one blit,
|
||||
release fences from `setOnComplete`, geometry from the fullscreen mode); any other scene falls back
|
||||
to the swapchain blit. Log tag `layer`. Off by default.
|
||||
|
||||
## Zero-copy game frames (`BANNER_WAYLAND_ZERO_COPY=1`, drawer switch live)
|
||||
Option (a') of `ZERO_COPY_SPIKE.md`, both halves:
|
||||
- **Guest (our Wayland Turnip, banners-turnip-wayland `patches/wayland/banner_ahb_wsi.py`, all
|
||||
variants):** while the compositor's mode is on (see the live switch below), the Wayland
|
||||
WSI allocates every swapchain image as a gralloc `AHardwareBuffer` (usage GPU_SAMPLED_IMAGE |
|
||||
GPU_FRAMEBUFFER | COMPOSER_OVERLAY; UBWC when gralloc picks it and a test `vkCreateImage` with the
|
||||
explicit `QCOM_COMPRESSED` layout succeeds, else linear via a CPU usage bit; `BANNER_WSI_AHB_LINEAR=1`
|
||||
forces linear), imports the handle's dma-buf with an explicit modifier + pitch (the compositor's own
|
||||
pool-import path; `vk_android.c` is not in a platforms=wayland build), shares it through
|
||||
`zwp_linux_dmabuf_v1` as before (blit fallback), and sends the `AHardwareBuffer` once per image:
|
||||
`socketpair` + `AHardwareBuffer_sendHandleToUnixSocket` + `banner_ahb_v1.attach(wl_buffer, fd, w, h,
|
||||
stride, modifier hi/lo, image_count)`. Surface formats are limited to `R8G8B8A8_UNORM/SRGB` (and
|
||||
`A2B10G10R10`) while the mode is on: gralloc has no BGRA (DXVK/Zink blit into the swapchain image
|
||||
anyway). Marker: `strings libvulkan_freedreno_wayland*.so | grep banner_ahb_v1`.
|
||||
- **Compositor (`src/ahb_swapchain.c`, protocol `protocols/banner-ahb-v1.xml`):** the global is
|
||||
advertised on every session where a display layer is possible at all (`sc_layer_available()`);
|
||||
whether gralloc buffers are WANTED right now is the `mode` event, not the global's presence.
|
||||
`attach` → `AHardwareBuffer_recvHandleFromUnixSocket`, record on the `dmabuf_buffer`.
|
||||
When that buffer is the one fullscreen frame (`layer_candidate`, or the layer-only candidate when
|
||||
this renderer could not import it), `sc_layer_present_ahb` sets it on the `banner_wayland_game`
|
||||
SurfaceControl as is. **Acquire fence** = `DMA_BUF_IOCTL_EXPORT_SYNC_FILE(READ)` of the dma-buf: Mesa
|
||||
imports the render fence into the dma-buf (`wsi_signal_dma_buf_from_semaphore`) *before* the
|
||||
`wl_surface.commit`, so the export always carries the frame; if the ioctl fails the compositor
|
||||
polls the dma-buf instead (logged once). **Release**: `setOnComplete` →
|
||||
`getPreviousReleaseFenceFd` → `DMA_BUF_IOCTL_IMPORT_SYNC_FILE(READ)` into the dma-buf → then
|
||||
`wl_buffer.release` (still on the FPS limiter's cadence); Mesa's acquire
|
||||
(`wsi_create_sync_for_dma_buf_wait`) exports every fence of the dma-buf, so the game waits for the
|
||||
display. If the import fails the release waits on the fence fd in the event loop instead. A hidden
|
||||
or retired layer gets a 16x16 blank buffer so SurfaceFlinger actually lets go of the game's buffer.
|
||||
- **App:** `BANNER_WAYLAND_ZERO_COPY=1` (container/shortcut env) is the session's STARTING state and
|
||||
also exports `BANNER_WSI_AHB=1` into the guest (`XServerDisplayActivity.isWaylandZeroCopyRequested`),
|
||||
which is what an older driver (bound at `banner_ahb_v1` version 1) needs.
|
||||
|
||||
### The live switch ("Zero-copy presentation", Graphics tab)
|
||||
`banner_ahb_v1` version 2 adds one event, `mode(enabled)`, sent to every bound client on bind and
|
||||
again on every flip. The compositor owns the state:
|
||||
- `WaylandCompositor.nativeSetZeroCopy(on)` is live and callable from any thread. Before the
|
||||
compositor starts it just seeds `g_zero_copy`; afterwards it posts through the `banner_ext.c` host
|
||||
queue (like the clipboard/IME setters) so `ahb_swapchain_set_mode()` runs on the compositor thread,
|
||||
which flips `g_zero_copy`, broadcasts `mode`, flushes the clients and redraws.
|
||||
- **Guest:** the WSI follows `display->banner_ahb_mode`, decided per swapchain at creation. When a
|
||||
live swapchain was built for the other mode, the next `vkAcquireNextImageKHR` /
|
||||
`vkQueuePresentKHR` returns `VK_ERROR_OUT_OF_DATE_KHR` (it reuses Mesa's own `chain->retired`
|
||||
early-outs), which DXVK, vkd3d-proton and Zink all answer by rebuilding the swapchain. The mode
|
||||
event is read with a non-blocking dispatch of the display queue on each acquire/present, because
|
||||
in MAILBOX that queue is otherwise only dispatched when the acquire loop runs out of images.
|
||||
- **Compatibility, both directions.** The registry bind clamps to `MIN(advertised, 2)` — binding
|
||||
above the advertised version is a fatal `wl_display` error, and a Bannerlator from before the live
|
||||
switch advertises version 1. On version 1, and on version 2 before the first `mode` event arrives,
|
||||
the driver keeps the original contract exactly: gralloc images iff `BANNER_WSI_AHB=1`, decided per
|
||||
swapchain, and no swapchain is ever retired. Once the mode is in play `BANNER_WSI_AHB=1` no longer
|
||||
forces it on (the app exports that on every zero-copy launch, which would freeze the switch);
|
||||
`BANNER_WSI_AHB=0` still forces the whole feature off.
|
||||
- **No black frame, either way.** Switching OFF does not tear down anything: the old gralloc chain's
|
||||
frames keep being shown — on the layer when this renderer could not import them, through the copy
|
||||
path when it could — until the game has rebuilt, and only then does `sc_layer_hide()` run. Buffers
|
||||
already on the layer keep their deferred release (`ahb_swapchain_defer_release` is no longer gated
|
||||
on `g_zero_copy`, or the display would be handed a buffer it is still scanning out). Switching ON,
|
||||
the layer path resumes as soon as the first `attach` of the new chain lands.
|
||||
- **Drawer:** the toggle applies live *and* writes the env as the next launch's default. Its status
|
||||
line follows the compositor, not the switch: `nativeZeroCopyLastFrameAgeMs()` (updated on every
|
||||
zero-copy present, unlike the 10 s counter) is what makes it say "Switching on…" / "Switching off…"
|
||||
only for as long as it really is.
|
||||
- **Log lines (tag `layer`):** `zero-copy: banner_ahb_v1 version 2 advertised …`, `zero-copy: <exe>
|
||||
bound banner_ahb_v1 version N …`, `zero-copy: on|off at launch …`, `zero-copy switched on|off from
|
||||
the drawer: N bound programs told to rebuild their swapchains …`, `zero-copy: AHB swapchain from <exe> (N images, WxH, UBWC (QCOM_COMPRESSED)|linear,
|
||||
stride S px)`, `zero-copy: presenting "<title>" (<exe>) without a copy`; the 10 s `stats` line ends
|
||||
with `| N zero-copy frames`. Guest side (Mesa log, stderr of the game): `banner-ahb: WxH swapchain
|
||||
(N images) on gralloc buffers: UBWC|linear, stride S px` or the reason it stayed on standard
|
||||
buffers, plus `banner-ahb: compositor wants gralloc|standard swapchain images` and `banner-ahb:
|
||||
zero-copy switched on|off: retiring the WxH swapchain …` on a live flip.
|
||||
|
||||
## Multi-layer presentation (feat/wayland-multilayer, `src/sc_layer.c`)
|
||||
Layer mode hands the scene to SurfaceFlinger as a small, deliberately ordered **set** of Android
|
||||
display layers instead of one. The whole model, top to bottom:
|
||||
|
||||
```
|
||||
app window ....... Compose UI, the in-game drawer, the perf HUD, the on-screen controls, the
|
||||
pointer arrow - ordinary Android views in the activity's window, ALWAYS on top
|
||||
+-- SurfaceView .. the compositor's Vulkan swapchain (black while layer mode is up)
|
||||
+-- z=1 "banner_wayland_game" ...... the one fullscreen game window
|
||||
+-- z=2 "banner_wayland_overlay" ... at most ONE window drawn above the game
|
||||
```
|
||||
|
||||
- **Two layers is the hard cap** (`SC_LAYER_COUNT`). HWC composes only a few layers before
|
||||
SurfaceFlinger falls back to GPU client composition, which would throw the whole benefit away, so
|
||||
the compositor never asks for a third: a scene with two or more windows above the game goes back
|
||||
to the copy path. The count is said out loud the first time the overlay goes up (`layer`: `2
|
||||
display layers in use: "banner_wayland_game" (z=1) and "banner_wayland_overlay" (z=2) above it …`).
|
||||
- **Who owns what.** Each layer has its own `ASurfaceControl`, its own gralloc buffer pool (3
|
||||
buffers each), its own geometry and its own lifetime; `struct layer`
|
||||
in `sc_layer.c` holds all of it and the z-order is fixed by the id (nothing is re-ordered at
|
||||
runtime). The SurfaceControls are children of the SurfaceView's surface, created on first use and
|
||||
retired together when the output window changes or goes away.
|
||||
- **What can be on the game layer**, cheapest first: the game's own gralloc buffer (zero-copy, no
|
||||
copy anywhere — `ahb_swapchain.c`); one blit of the game's frame into a compositor buffer
|
||||
(`sc_layer_present`); or, with screen effects on, the compositor pass's **result** blitted into
|
||||
such a buffer (`sc_layer_present_pass` → `vkp_pass_begin` / `vkp_pass_copy_to`). The last one is
|
||||
what keeps a Look from dropping the session back to the app's swapchain: the scene → output
|
||||
mapping (Fullscreen Mode / Alignment, and the scaling a mode like FSR asks for) is then done by
|
||||
the display through `setGeometry` instead of by a second full-screen GPU blit.
|
||||
- **Present order matters, and it was measured.** The layers go up first; the base surface's black
|
||||
frame is presented *after* the layer transaction, and the effects chain runs in its own submit
|
||||
with **no swapchain image acquired**. A present holds an acquired image and the acquire semaphore
|
||||
is a vblank gate: folding the chain into that submit (one command buffer, one present — the
|
||||
shape that looks cheaper) put the whole 13-pass chain behind a vblank and measured **72 fps**
|
||||
against **111 fps** for the split shape, on HL2 + Retro CRT at 1920x1080 on the Pocket FIT (the
|
||||
copy path is 129 fps on the same scene). Anyone tempted to "optimise" this into one submit should
|
||||
read this paragraph first.
|
||||
- **What goes on the overlay layer**: exactly one draw above the game — a second Wayland toplevel
|
||||
(a launcher or settings window, a message box), copied 1:1 into the overlay pool and then
|
||||
*cropped and placed* by the display through the same `vkp_map_draw` mapping the copy path uses.
|
||||
The point is what does **not** happen: the game's frames are no longer copied through the
|
||||
compositor's swapchain just because something small sits on top of them.
|
||||
- **Transparency.** The compositor composes with blits, which overwrite — it never alpha-blends,
|
||||
on either path — so every layer is marked `ASC_TRANSPARENCY_OPAQUE` and the overlay layer is
|
||||
cropped to the window it carries. There is no blending to get wrong: no black box over the game,
|
||||
no double-darkening, and the picture is the copy path's, pixel for pixel.
|
||||
- **Input is untouched.** An `ASurfaceControl` has no input channel, so neither layer can take a
|
||||
touch: everything still reaches the app's `SurfaceView` (and the views above it) exactly as
|
||||
before, and the scene mapping touch goes through (`vkp_output_to_scene` / `ViewTransformation`)
|
||||
is the same one the layers are placed with, so the cursor still lands where it is pointing. The
|
||||
SurfaceView is not Z-on-top, so its whole subtree — both layers included — stays under the
|
||||
activity's own window: the drawer, the HUD and every Compose dialog draw above them.
|
||||
- **What cannot be layered, and why.**
|
||||
- *Frame generation*: each generated frame needs a present of its own on consecutive vblanks, and
|
||||
a display layer latches one buffer per refresh — pacing that is the swapchain's job. While an
|
||||
engine is armed the whole scene takes the copy path (unchanged).
|
||||
- *Effects with a window above the game*: the chain has to see the whole scene to look the way it
|
||||
does on the copy path (and on X11), and the game layer only carries the game. Copy path.
|
||||
- *Two or more draws above the game* (several windows, or a window with subsurfaces): a third
|
||||
layer is not worth the client-composition risk. Copy path.
|
||||
- **Lifecycle.** Hiding is top-down so nothing is uncovered for a frame; a hidden or retired layer
|
||||
gets the shared 16x16 blank buffer so SurfaceFlinger really lets go of the game's buffer (and
|
||||
reports a release fence for it) instead of holding it while invisible. `sc_layer_hide()` takes
|
||||
every layer down (scene no longer a fullscreen game, zero-copy switched off live, session end),
|
||||
`sc_layer_hide_overlay()` is used when only the window above the game closed, and
|
||||
`sc_layer_window_gone()` retires both SurfaceControls and drains both pools on a surface loss /
|
||||
HOME / resume. **The overlay layer is always RETIRED, never merely hidden** (both paths) — see
|
||||
the HWC note below: a live second SurfaceControl keeps SurfaceFlinger composing on the GPU even
|
||||
when it is invisible. The game layer keeps its SurfaceControl through a hide, because it goes up
|
||||
and down with every effects / frame-generation toggle.
|
||||
- **The display frame-rate vote belongs to one layer.** The refresh-rate stream's
|
||||
`sc_layer_set_frame_rate()` (the game's cadence, the same value the app votes on its own surface)
|
||||
is carried **only** by the layer the game presents on — the game layer. The overlay layer is
|
||||
explicitly voted `0`, so a window that redraws once a second can never hold the panel at the
|
||||
game's cadence, nor drag the game's cadence down to its own. Each layer remembers what its live
|
||||
SurfaceControl carries (`fps_applied`) and re-applies on the next transaction, and a retired
|
||||
SurfaceControl resets it so a re-created layer is re-voted from scratch. Log: `display frame-rate
|
||||
vote on banner_wayland_game: 60.00 Hz`.
|
||||
- **Stats.** The 10 s `stats` line now ends with `| N zero-copy frames` (the game's own buffers) and
|
||||
`| N layer frames` (frames the compositor put on a layer through one of its own buffers — the
|
||||
plain layer blit or the effects result). Both are hardware-composed; only the first is copy-free.
|
||||
- **Measured on the Pocket FIT (Adreno 750, portrait panel, landscape session → every layer is
|
||||
ROT_90 + scaled), `dumpsys android.hardware.graphics.composer3.IComposer/default`:** one layer is
|
||||
`composition: DEVICE/DEVICE` (game's own gralloc buffer scanned out by the DPU), with effects on
|
||||
the layer it stays `DEVICE/DEVICE`, but **two** layers flip the whole frame to `DEVICE/CLIENT` —
|
||||
SurfaceFlinger composes it on the GPU — **and it does not come back when the overlay goes away**:
|
||||
retiring the overlay's SurfaceControl (which the compositor now does rather than merely hiding
|
||||
it) leaves the frame in client composition; only re-creating the *game* layer's SurfaceControl
|
||||
clears it (HOME + resume does, reproduced twice). Retiring is still right — one fewer live layer,
|
||||
and it leaves the HWC list — it is just not the whole cure; the open follow-up is to retire and
|
||||
immediately re-create the game layer when the overlay goes, which would cost one black frame
|
||||
unless the new SurfaceControl is shown before the old one is dropped. The likely mechanism is the
|
||||
DPU's rotator budget (one rotated+scaled layer), not the layer count as such, so a device or
|
||||
orientation that needs no rotation may well take both on the DPU. Even in client composition the
|
||||
overlay layer is not a loss (SurfaceFlinger does the one blit the compositor would have done), but
|
||||
the hardware-composition win is only real for the single-layer cases. Note `VRI[ScreenDecorHwcOverlay]`
|
||||
is always `DISPLAY_DECORATION/CLIENT` (the system's rounded corners) — that is why SurfaceFlinger's
|
||||
`clientCompositionFrames` counter reads 100 % on this device in every state and is useless here.
|
||||
- **Not done yet:** a second toplevel that is itself rendering into gralloc buffers could go on the
|
||||
overlay layer zero-copy too (the token machinery in `ahb_swapchain.c` is already per-buffer, not
|
||||
per-layer); today the overlay always costs one small blit.
|
||||
|
||||
## Screen effects (feat/wayland-effects, `src/effects_chain.c`)
|
||||
The X11 renderer's screen-effect chain, run by the compositor between the composited scene and the
|
||||
output. Same SPIR-V as the X11 Vulkan renderer (`winlator/*_frag.h`, made by `winlator/gen_shaders.sh`
|
||||
and committed — the NDK build compiles no GLSL, so there is no build-time shader tooling), same
|
||||
push-constant layouts, uniform ranges and pass order, so a saved preset looks the same on both backends.
|
||||
|
||||
**Present-pass hook order (`vk_present.c`, `vkp_render`):**
|
||||
```
|
||||
scene (every draw blitted 1:1 into a scene-sized R8G8B8A8 image; compositor pass only)
|
||||
-> vkp_effects_run() effects_chain.c: scaling -> effects (below)
|
||||
-> vkp_framegen_run() framegen_bridge.c: frame generation on the chain's result (next section)
|
||||
-> update_map / blit Fullscreen Mode + Screen Alignment map the result (and each generated
|
||||
frame) onto its own swapchain image
|
||||
-> present generated frames first, the real frame last, FIFO
|
||||
```
|
||||
The compositor pass runs when either stage needs it (`vkp_effects_active() || vkp_framegen_active()`).
|
||||
Effects operate on the scene; the mapping operates on the output — the chain's result stands for
|
||||
the whole scene and goes through the same `draw_to_blit` as a plain frame. With everything off the
|
||||
frame takes the old path unchanged (draws blitted straight through the mapping); only the blit filter
|
||||
follows the scaling mode (Nearest = `VK_FILTER_NEAREST`).
|
||||
|
||||
**Pass order (locked to the X11 Vulkan renderer, `VulkanRendererContext::recordUpscalePasses`):**
|
||||
scaling → FXAA → Toon → Colour (brightness/contrast/gamma/saturation) → CAS → HDR → NTSC → CRT →
|
||||
Debanding (terminal dither). Scaling modes: 0 None / 1 Linear / 2 Nearest = a filtered resize;
|
||||
3 SGSR, 8 SGSR HQ, 7 NIS = one pass; 4 FSR / 5 FSR Fit = EASU → RCAS (fill vs fit is the Fullscreen
|
||||
Mode's business here, both run the same pair); 6 Sharpen = RCAS 1:1 (nearest scale + sharpen, as X11).
|
||||
Render scale is "Not used on Wayland": the scaling modes resize the scene to its **mapped output size**
|
||||
(3/4/5/7/8 only when that is larger than the scene, the X11 "render below display" gate; 6 always).
|
||||
Every later pass runs at that resolution, ping-ponging between two targets (+ one EASU mid target).
|
||||
|
||||
**Settings** (`WaylandCompositor.nativeSetUpscaler / nativeSetUpscaleSharpness / nativeSetCas /
|
||||
nativeSetHdr / nativeSetDeband / nativeSetScreenEffects / nativeSetLookName`, 1:1 with
|
||||
`VulkanRenderer`'s): any thread; the compositor thread snapshots them per frame, redraws even a
|
||||
static scene, and writes one `effects` line per change:
|
||||
`effects scaling=SGSR HQ 75%, CAS on 55%, Look="Game Clarity", colour b=+2 c=+12 g=1.00 s=108%`
|
||||
(`effects all off: scaling=Linear (plain blit)` when nothing is on). The chain's Vulkan objects are
|
||||
built on the first active frame (`effects chain ready: 13 passes … on <GPU>`; a driver that refuses
|
||||
them logs an `error` and effects stay off for the session). The app wires the drawer's Vulkan
|
||||
post-chain block (`XServerDialogState.on*Apply`) to these in `XServerDisplayActivity.initWaylandEffects`
|
||||
and remembers the same per-game keys as the Vulkan path (#382).
|
||||
|
||||
**Zero-copy interplay:** the chain's result no longer has to land in the app's swapchain — with a
|
||||
fullscreen game alone on screen it is copied into the game layer's own gralloc buffer and the game
|
||||
**stays on its display layer** while a Look is applied (see "Multi-layer presentation" below). It
|
||||
still takes the copy path when a window is drawn above the game (the chain has to see the whole
|
||||
scene to look as it does on X11) — `effects zero-copy paused: a window above the game needs the
|
||||
compositor pass for the whole scene` — and always while frame generation is armed
|
||||
(`framegen zero-copy paused: frame generation needs the compositor pass`); the layer comes back with
|
||||
`effects zero-copy resumed: the game is back on its own display layer`. A frame this renderer could
|
||||
not import (layer-only candidate) still goes on the layer, effects/frame generation skipped, said once.
|
||||
|
||||
## Frame generation (feat/wayland-framegen, `src/framegen_bridge.c`)
|
||||
The two **native** engines the X11 renderer hosts inside `libwinlator`'s compositor run inside the
|
||||
Wayland compositor's own Turnip device: **LSFG Native** (the user's Lossless.dll chain,
|
||||
`winlator/lsfg`) and **Win-FG Native** (our FSR3-derived optical-flow chain, `winlator/winfg`).
|
||||
The engine sources are compiled into `libbannerwayland.so` unmodified (CMake, app build only; the
|
||||
standalone build gets `framegen_engine_stub.c`) and driven by `src/framegen_engine.cpp`, which fills
|
||||
their `VkTable` by name from the compositor's `vkGetInstanceProcAddr`/`vkGetDeviceProcAddr`.
|
||||
**bionic-fg** (the guest-side win-fg Vulkan layer) is X11-only: its frames are born inside the guest
|
||||
and have nothing to attach to here, so on Wayland the "bionic" engine is always Win-FG Native.
|
||||
- **Where it runs** (the hook order above): frame generation takes the effects chain's RESULT
|
||||
(`vkp_effects_run`'s output, at its size - the scene, or the mapped output size under a scaling
|
||||
mode - moved to GENERAL), so generated frames carry the same look as real ones. The ONE hook
|
||||
`vkp_framegen_run(cmd, image, view, w, h, fmt, gens[])` records the engine's chain into the same
|
||||
command buffer and returns 0..3 generated images. Each image is then blitted through the scene ->
|
||||
output mapping into its own acquired swapchain image and presented: **generated frames first, the
|
||||
real frame last** (interpolation produces frames between N-1 and N; that one output interval of
|
||||
latency is inherent). One acquire/render-done semaphore pair and command buffer per present
|
||||
(`MAX_PRESENTS` = 4), the frame fence on the last submit. With the FIFO swapchain the presentation
|
||||
engine shows them on consecutive vblanks: that is the pacing, there are no sleeps and no host pacer.
|
||||
The swapchain is rebuilt with `multiplier - 1` extra images while armed so every present of a frame
|
||||
queues without a vblank wait. Frame generation off and effects off = the direct path, byte-for-byte
|
||||
as before.
|
||||
- **Device**: `dev_init` asks the bridge for the LSFG feature chain (`VkPhysicalDeviceVulkan12Features`
|
||||
vulkanMemoryModel + `shaderStorageImageWriteWithoutFormat/ExtendedFormats`, the same chain
|
||||
`VulkanRendererContext::createLogicalDevice` uses; instance apiVersion is 1.3 for the probe) and
|
||||
retries device creation without it if the driver refuses. Win-FG needs only a storage-capable ring
|
||||
format (RGBA8). The generation ring (`STORAGE|SAMPLED|TRANSFER_SRC|DST`, GENERAL) and the engines'
|
||||
own history live for the session; arming/disarming is a flag, a multiplier change resizes the ring.
|
||||
- **FPS limiter / vsync**: untouched. The limiter still paces the game's buffer returns (real frames);
|
||||
`applyNativeFgLocks` forces it on while multiplying, exactly as on X11 (`pacedLimitWithSlack` still
|
||||
applies through `nativeSetFpsLimit`). Generated frames never touch the limiter, the frame callbacks
|
||||
or the `wp_presentation` feedback - the guest sees one present per real frame.
|
||||
- **Zero-copy**: the layer bypasses the compositor pass, so while frame generation is armed the
|
||||
fullscreen window takes the copy path (`render_scene`: `framegen zero-copy paused: frame generation
|
||||
needs the compositor pass`) and the layer resumes when both it and the effects are off (see the
|
||||
effects section's zero-copy interplay).
|
||||
- **App side**: `WaylandCompositor.nativeSetFrameGenEngine/Armed/Tuning`, `nativeSetLsfgCachePath`,
|
||||
`nativeSetWinFgTuning`, `nativeFrameGenProblem/CapsReason/Stats` (same codes and six-float shape
|
||||
as `VulkanRenderer`). `XServerDisplayActivity.applyWaylandFrameGen` is the single apply:
|
||||
`applyLsfgNative`/`applyWinFgNative` route to it in Wayland mode (launch and drawer), the drawer's
|
||||
`onBionicFgConfigChange` has a Wayland branch, `nativeFgProblemReason`/`startLsfgStatsReadout` read
|
||||
the bridge. Every native setter is a value store, so the launch code may arm before the compositor
|
||||
thread exists.
|
||||
- **Log tag `framegen`**: `engines ready on the compositor's device: LSFG Native available (supported),
|
||||
Win-FG Native available`, `<engine> engine ready (...)`, `<engine> x2 armed (flow scale 0.80, panel
|
||||
120 Hz): ...`, `generating: <engine> x2 at 1920x1080 (1 interpolated frame per game frame)`, the
|
||||
fallbacks (`... can't start: no shader cache`, `... failed to start on the compositor's driver`,
|
||||
`... could not build its chain at WxH`, `the driver refused the LSFG feature set`), `frame generation
|
||||
off (N frames generated this session)`, and the zero-copy pause/resume above. The 10 s `stats` line
|
||||
counts generated frames in `frames on screen` and ends with `| N generated frames`; `GPU frames from
|
||||
games` never includes them.
|
||||
@@ -0,0 +1,309 @@
|
||||
# Zero-copy window layers on Wayland — research spike + host-side prototype
|
||||
|
||||
Branch `spike/wayland-zero-copy-layers` (on `feat/wayland-phase2`). Written 2026-09-13.
|
||||
|
||||
**Question.** Today every game frame is a dma-buf the compositor imports as a `VkImage`
|
||||
(`vk_present.c: vkp_image_from_dmabuf`) and blits into its own swapchain (`vkp_render`), one
|
||||
full-screen copy per frame, and the FPS gap to X11 on the AIO is ~20 % for Vulkan/D3D12
|
||||
(596 vs 752, 336 vs 430 on the Adreno 750). Wayland lets each window buffer become its own
|
||||
Android layer (`ASurfaceControl` + `AHardwareBuffer`) so SurfaceFlinger/the DPU composites it
|
||||
with no copy. The blocker: dma-buf ↔ `AHardwareBuffer` interop on Turnip/KGSL/bionic/Android 14,
|
||||
with the game on the Wayland Turnip bundled in the Proton wcp and the compositor on the
|
||||
adrenotools Turnip.
|
||||
|
||||
**Answer in one paragraph.** A raw dma-buf can never become an `AHardwareBuffer` (option b is
|
||||
closed: no public API, and the game's buffers are `/dev/dma_heap/system` allocations, not
|
||||
gralloc buffers). The interop must go the other way: the buffer is a **gralloc `AHardwareBuffer`
|
||||
first**, and its dma-buf fd (`native_handle->data[0]`) is what the Vulkan drivers import — which is
|
||||
exactly how Turnip already imports every gralloc buffer on Android (`vk_android.c`). Both Turnips
|
||||
in play already have every extension needed; nothing is missing in the drivers. What is missing is
|
||||
a **WSI hook**: Mesa's Wayland WSI always allocates its own dma-bufs and has no way to receive or
|
||||
allocate compositor-visible buffers, so **option (a) or (c) each need a ~300-line patch to
|
||||
`wsi_common_wayland.c` in our own Wayland Turnip build** (banners-turnip-wayland
|
||||
`build_turnip_wayland_wsi.sh`, Mesa `7cda7850`) plus a small private Wayland protocol. Nothing in
|
||||
the app can remove the copy on its own. Recommended: **option (a′) — the game's WSI allocates its
|
||||
swapchain images as `AHardwareBuffer`s (gralloc-native, UBWC), imports them through the AHB path
|
||||
Turnip already has, and hands the compositor the AHB over a Unix socket (`AHardwareBuffer_send/
|
||||
recvHandleFromUnixSocket`, the same mechanism the X11 renderer already uses for `GPUImage`) plus
|
||||
the dma-buf fd through `zwp_linux_dmabuf_v1` as today (so the blit path stays as the fallback).**
|
||||
The host half — one `ASurfaceControl` layer per fullscreen window, geometry from the fullscreen
|
||||
mode, release fences from `ASurfaceTransaction_setOnComplete`, black base surface, HUD/pointer as
|
||||
Android views above — is implemented in this branch as a gated prototype (`sc_layer.c`,
|
||||
`BANNER_WAYLAND_ZERO_COPY=1`) with a compositor-owned AHB pool and one blit, so the
|
||||
SurfaceFlinger side can be measured on the device before the driver work starts.
|
||||
|
||||
---
|
||||
|
||||
## 1. Buffer path options
|
||||
|
||||
Facts the options rest on (Mesa `7cda7850`, the commit both Turnips are built from):
|
||||
|
||||
- **Game-side buffers today** are dma-bufs from a DMA heap: the KGSL winsys allocates exportable
|
||||
memory with `DMA_HEAP_IOCTL_ALLOC` on `/dev/dma_heap/system` (ION on older kernels) and imports
|
||||
the fd into KGSL with `IOCTL_KGSL_GPUOBJ_IMPORT` / `KGSL_USER_MEM_TYPE_DMABUF`
|
||||
(`tu_knl_kgsl.cc:84-107`, `279-296`, `375-436`, `1836-1856`); export is a `dup()` of that fd
|
||||
(`kgsl_bo_export_dmabuf`, `:438-442`). They are **not gralloc buffers**: no `private_handle_t`,
|
||||
no metadata fd, nothing SurfaceFlinger's mapper could import.
|
||||
- **Dma-buf import works on both Turnips**: `VK_KHR_external_memory_fd`,
|
||||
`VK_EXT_external_memory_dma_buf`, `VK_EXT_image_drm_format_modifier` are unconditional
|
||||
(`tu_device.cc:253, 354, 369`); the compositor proves it every frame. Only
|
||||
`VK_EXT_physical_device_drm` is off on KGSL (`:385`) — relevant to dmabuf-v4 feedback (§2).
|
||||
- **AHB import in Turnip is dma-buf import.** `VK_ANDROID_external_memory_android_hardware_buffer`
|
||||
is exposed whenever a u_gralloc backend exists (`tu_device.cc:219, 428`), and the fallback backend
|
||||
always exists. `vkGetAndroidHardwareBufferPropertiesANDROID` does
|
||||
`AHardwareBuffer_getNativeHandle(buffer)->data[0]` → `lseek` for the size →
|
||||
`GetMemoryFdPropertiesKHR(DMA_BUF, data[0])` (`vk_android.c:1225-1236`); the image is created with
|
||||
`VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT` from the gralloc layout
|
||||
(`vk_gralloc_to_drm_explicit_layout`, `vk_android.c:140-205`; `tu_image.cc:1006-1023`). The
|
||||
layout comes from `u_gralloc_fallback.c:145-156`: on a QTI handle (magic `'gmsm'` in the first
|
||||
int) the UBWC flag `0x08000000` in the next int selects `DRM_FORMAT_MOD_QCOM_COMPRESSED`, else
|
||||
`DRM_FORMAT_MOD_LINEAR`; pitch = `pixel_stride × bpp`, offset 0. The qcom backend
|
||||
(`u_gralloc_qcom.c`, `hw_get_module`) cannot load the vendor gralloc from an app process, so the
|
||||
fallback is the one in use — the local KGSL build imports exactly `AHardwareBuffer_allocate /
|
||||
describe / getNativeHandle / acquire / release / isSupported` and `hw_get_module`, NEEDED
|
||||
`libnativewindow.so` + `libhardware.so` (readelf on `turnip608/stg/libvulkan_freedreno.so`).
|
||||
So **the Wine process already loads `libnativewindow.so`** (as a dependency of the ICD), and
|
||||
the X11 renderer already receives AHBs allocated inside guest processes over a Unix socket
|
||||
(`DRI3Extension.java:141-150` → `GPUImage(fd)` → `gpu_image.c:74-86`
|
||||
`AHardwareBuffer_recvHandleFromUnixSocket`; the sender is the X11 `libvulkan_wrapper.so` WSI).
|
||||
|
||||
### (a) Game side: `AHardwareBuffer_allocate` in the guest, exported as a dma-buf
|
||||
|
||||
Feasible with the current drivers, **but only through a WSI patch** — the app cannot do it.
|
||||
Mesa's Wayland WSI creates every native swapchain image with `wsi_create_native_image_mem`
|
||||
(`wsi_common_drm.c:760-850`): `vkAllocateMemory` with `VkExportMemoryAllocateInfo{DMA_BUF}` →
|
||||
`vkGetMemoryFdKHR` → `zwp_linux_buffer_params_v1.add(fd, …)` + `create_immed`
|
||||
(`wsi_common_wayland.c:3558-3620`). Nothing in it allocates from gralloc, and `VkNativeBufferANDROID`
|
||||
(the Android-WSI import path, `tu_image.cc:880-925`) is only reachable from the Android swapchain.
|
||||
|
||||
The patch (in our Wayland Turnip build): a new `create_mem` for the Wayland chain, selected when the
|
||||
compositor advertises a private global `banner_layer_buffer_v1`:
|
||||
1. `AHardwareBuffer_allocate(w, h, R8G8B8A8, GPU_COLOR_OUTPUT | GPU_SAMPLED_IMAGE)`;
|
||||
`vkGetAndroidHardwareBufferPropertiesANDROID` → `vkAllocateMemory` with
|
||||
`VkImportAndroidHardwareBufferInfoANDROID` (Turnip: `tu_device.cc:3828`), bind — the image was
|
||||
created with the modifier/pitch gralloc reports, i.e. UBWC on Adreno gralloc (§2).
|
||||
2. `wsi_image.dma_buf_fd = dup(native_handle->data[0])`, `drm_modifier` / `row_pitches[0]` from
|
||||
the same layout → the existing `zwp_linux_dmabuf_v1` path stays untouched: the compositor keeps
|
||||
importing a dma-buf and can keep the blit path as the fallback.
|
||||
3. `banner_layer_buffer_v1.attach(wl_buffer, socket_fd)`: the WSI creates a `socketpair`, sends one
|
||||
end in the request, and calls `AHardwareBuffer_sendHandleToUnixSocket(ahb, other_end)`; the
|
||||
compositor's request handler does `AHardwareBuffer_recvHandleFromUnixSocket` and stores the AHB
|
||||
on `struct dmabuf_buffer`. Per swapchain image, once — not per frame.
|
||||
Extensions used by the game: `VK_ANDROID_external_memory_android_hardware_buffer` only (the
|
||||
dma-buf/modifier extensions are used internally by the same driver). Note winevulkan does not
|
||||
expose the AHB extension to PE code — irrelevant here, the WSI is unix-side inside the ICD.
|
||||
Effort: 2–3 days WSI + protocol + wcp rebuild (wine-compat-engineer for the packaging).
|
||||
|
||||
### (b) Import the game's existing dma-buf as an `AHardwareBuffer`
|
||||
|
||||
**No.** There is no public API: `AHardwareBuffer_createFromHandle` exists only in
|
||||
`vndk/hardware_buffer.h` (exported by `libnativewindow.so`, so `dlsym` finds it), but it takes a
|
||||
gralloc `native_handle_t` that the vendor mapper (`IMapper::importBuffer`) validates — on QTI a
|
||||
`private_handle_t` with the `'gmsm'` magic, a metadata dma-buf, and vendor-specific ints. The game's
|
||||
buffers are bare DMA-heap fds. Fabricating a vendor handle around a foreign fd is unversioned
|
||||
private ABI (differs across gralloc4 releases/OEMs) and is exactly the kind of thing that
|
||||
reboots non-Adreno/old SoCs. `AHardwareBuffer_createFromHandle` also requires the caller to be
|
||||
in the VNDK namespace for its stub; only `dlsym` reaches it. Rejected.
|
||||
|
||||
### (c) Compositor-owned pool offered to the game
|
||||
|
||||
Compositor allocates AHBs, gets the fd from the native handle, and the game imports them. On the
|
||||
game side this is the same driver path as (a) minus gralloc (`VK_EXT_external_memory_dma_buf` +
|
||||
explicit modifier/pitch from the compositor). It **still needs the same WSI patch** (a `create_mem`
|
||||
that imports instead of exports) and in addition a protocol to carry `fd + modifier + pitch + size`
|
||||
before the swapchain image is created, plus reallocation on `vkCreateSwapchainKHR` (size changes),
|
||||
plus fence plumbing in both directions. `zwp_linux_dmabuf_v1` v4 feedback cannot express this (it
|
||||
only steers format/modifier/device; the client still allocates), and on KGSL v4 is a trap anyway:
|
||||
the driver has no DRM `dev_t`, so `same_gpu` stays false (`wsi_common_wayland.c:1660-1686`) and
|
||||
Mesa takes the prime-blit path (one extra copy per frame). The one advantage over (a) — the
|
||||
compositor decides linear vs UBWC — is moot because gralloc's decision is the right one for the DPU.
|
||||
Effort: 3–4 days; strictly more moving parts than (a). Not recommended.
|
||||
|
||||
**Recommendation: (a).** It reuses two proven mechanisms (Turnip's AHB import, the X11 path's
|
||||
AHB-over-socket), keeps `zwp_linux_dmabuf_v1` as the fallback transport, and confines the new code
|
||||
to our own Mesa build plus one small protocol.
|
||||
|
||||
## 2. Modifiers / UBWC
|
||||
|
||||
- Turnip advertises exactly two modifiers: `DRM_FORMAT_MOD_LINEAR` and
|
||||
`DRM_FORMAT_MOD_QCOM_COMPRESSED` (UBWC), the latter whenever the format tiles and
|
||||
`ubwc_possible()` (`tu_formats.cc:416-443`); explicit-modifier images accept only these two
|
||||
(`:530-575`). `QCOM_COMPRESSED` forces UBWC (`tu_image.cc:723-727`); an explicit plane layout is
|
||||
validated by `fdl6_layout_image` and rejected with
|
||||
`VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT` if the pitch does not fit
|
||||
(`:762-806`). Export/import of both is symmetric (same driver, same `fdl6` layout).
|
||||
- The compositor advertises `LINEAR` and `INVALID` only (`compositor.c: bind_dmabuf`,
|
||||
`uint64_t mods[] = {MOD_LINEAR, MOD_INVALID}`); `INVALID` is dropped by the WSI
|
||||
(`wsi_common_wayland.c:449-451`), so every game swapchain is linear today. DXVK/VKD3D render to
|
||||
their own tiled/UBWC targets and copy into the linear swapchain image at present — a full-frame
|
||||
linear write per frame on the game side, on top of the compositor's blit. This is a real part of
|
||||
the 20 %.
|
||||
- Advertising `QCOM_COMPRESSED` as well: one line in `bind_dmabuf`. The WSI intersects the
|
||||
compositor's list with the driver's (`wsi_common_drm.c:686-733`) and Turnip prefers UBWC when
|
||||
offered; `vkp_image_from_dmabuf` already passes any modifier through. Two cautions: the pitch
|
||||
the game sends is the UBWC pixel-plane pitch (Mesa reports plane 0 of the modifier, `:817-830`)
|
||||
and both sides run the same `fdl6` code, so the import must succeed on the same GPU; and a
|
||||
UBWC buffer must never be read by the CPU path (`wl_shm` is unaffected). This is independent of
|
||||
layers and worth its own A/B (experiment plan step 0).
|
||||
- For layers the buffer is gralloc's, so UBWC is decided by gralloc: QTI allocates UBWC for
|
||||
`GPU_COLOR_OUTPUT` RGBA8 unless a CPU usage bit is set (the prototype exploits exactly that:
|
||||
`sc_layer.c: alloc_slot` retries with `CPU_READ_RARELY` when a UBWC import fails). The DPU
|
||||
scans out UBWC RGBA natively; a prior device experiment (GL native rendering, 2026-06-29)
|
||||
found the SDE pipes accepted both UBWC and linear layers — rotation+scale was the blocker, not
|
||||
UBWC.
|
||||
|
||||
## 3. Per-layer composition (design; the prototype implements the single-layer subset)
|
||||
|
||||
- **wl_surface → SurfaceControl.** One `ASurfaceControl_createFromWindow(surfaceView_window,
|
||||
name)` child per mapped toplevel (and per subsurface tree flattened per toplevel); the desktop
|
||||
surface is the base layer at z 0 (or, with `g_hide_shell`, a black base — the SurfaceView's own
|
||||
buffer); toplevels get `setZOrder` from the `g_toplevels` order (`apply_zorder`), with
|
||||
`INT_MAX` reserved for the app's cursor/HUD if they ever move native. Position/scale:
|
||||
`ASurfaceTransaction_setGeometry(src = buffer rect, dst = output rect, transform 0)`, with the
|
||||
output rect produced by the same `update_map()` / `draw_to_blit()` arithmetic the blit path uses
|
||||
(`vk_present.c: vkp_map_draw`) — letterbox/FILL crop/TOP-BOTTOM half all come out identical, so
|
||||
**input stays consistent by construction**: the app maps touch through `ViewTransformation`
|
||||
with the same inputs (see `WAYLAND_RUNTIME.md` "Fullscreen mode"), and the compositor's own
|
||||
`vkp_output_to_scene` keeps working because the map is still updated every frame.
|
||||
`setBufferTransparency(OPAQUE)` for XR24/XB24; `setBufferTransform` stays 0 — the DPU refuses
|
||||
rotation+scale on one pipe (prior experiment), so a rotated panel must be handled by the
|
||||
activity's orientation, not the layer.
|
||||
- **HUD.** Already a separate layer: `PerfHudView`/`FrameRating`/cursor are Android views in
|
||||
`rootView` above `waylandSurfaceView`, i.e. the ViewRoot's SurfaceFlinger layer above the
|
||||
SurfaceView and all its child SurfaceControls. Nothing to do; the prototype keeps it.
|
||||
- **Vsync / frame callbacks.** Keep the app's Choreographer tick (`nativeVsync`) as the pacing
|
||||
edge: on each tick the compositor applies **one transaction** containing every surface that
|
||||
committed since the last tick (`setBuffer` per changed layer, geometry/z for changed ones), then
|
||||
fires `wl_callback.done` for those surfaces (as today, `fire_all_frames`). `wp_presentation`
|
||||
feedback moves from "after our present" to the transaction's `ASurfaceTransaction_setOnComplete`
|
||||
→ `ASurfaceTransactionStats_getLatchTime` / `getPresentFenceFd` (API 29) give the real on-glass
|
||||
time — better than today's `now_ns()`; `setFrameTimeline` (API 33) can be added later for
|
||||
`VK_GOOGLE_display_timing` work. Without a window, `pace_without_output` stays as is.
|
||||
- **`wl_buffer.release` timing.** Today a replaced buffer is released on the limiter's cadence,
|
||||
which is safe because the blit was waited for. With layers the buffer is on the display until
|
||||
SurfaceFlinger says otherwise: keep the buffer un-released until the OnComplete callback of the
|
||||
transaction that **replaced** it delivers `ASurfaceTransactionStats_getPreviousReleaseFenceFd`
|
||||
(this is what `ASurfaceRendererContext::transactionCompleteCallback` does), wait that fence on
|
||||
the compositor thread (or, better, hand it to the game: with option (a) the WSI can import it as
|
||||
the `WSI_ES_RELEASE` point — Turnip/KGSL implements `vk_sync.import_sync_file`,
|
||||
`tu_knl_kgsl.cc:1261-1303`), then `wl_buffer_send_release`. The FPS limiter keeps working: it only
|
||||
delays the release further. Android 16's `setBufferWithRelease` is not available on 14.
|
||||
- **Acquire fence.** Two sources: (1) if the kernel supports `DMA_BUF_IOCTL_EXPORT_SYNC_FILE`
|
||||
(6.x GKI), the WSI already attaches its present semaphore to the dma-buf as a sync_file
|
||||
(`wsi_drm_init_swapchain_implicit_sync`, `wsi_common_drm.c:368-395`, gated on the driver
|
||||
exporting `SYNC_FD` semaphores — KGSL does, `:1278-1303`), and the compositor can
|
||||
`EXPORT_SYNC_FILE(READ)` it and pass the fd to `setBuffer` — the prototype probes this on the
|
||||
first frame and logs the answer; (2) otherwise the option-(a) protocol carries a sync_fd per
|
||||
present (`vkGetSemaphoreFdKHR`), which is what the X11 wrapper does. Never `-1` for a real
|
||||
zero-copy frame.
|
||||
- **Lifecycle.** SurfaceView destroyed/recreated (background, rotation): `vkp_apply_window_request`
|
||||
already serialises window changes on the compositor thread; the layer code retires its
|
||||
SurfaceControls (hide + `reparent(NULL)` + release in the OnComplete callback) and recreates
|
||||
them on the new window. Buffers stay valid across that (gralloc buffers are process-independent
|
||||
refcounted objects), so the first frame after resume is the last committed one.
|
||||
|
||||
## 4. Risks
|
||||
|
||||
- **HWC fallback to GPU composition** (the whole point is DEVICE composition). Known from the
|
||||
2026-06-29 experiments on the Adreno 750 device: a layer with `transform 90` **and** scale went
|
||||
CLIENT and dragged the base layer with it; the same layer pre-rotated at panel resolution with
|
||||
src == dst was DEVICE on every layer, GPU_TARGET empty. So: no SurfaceControl rotation ever; on
|
||||
a landscape-native panel (handheld) the identity-transform game layer with a DPU scale should
|
||||
promote; on a portrait phone in landscape it will not, and the base swapchain path is the better
|
||||
one there — decide per device by measurement, not by assumption. Measure with
|
||||
`dumpsys SurfaceFlinger` (layer `composition: DEVICE/DEVICE` vs `DEVICE/CLIENT`, and the SDE pipe
|
||||
table `GPU_TARGET` line) with the app foreground and the drawer closed.
|
||||
- **Layer count.** The DPU has a handful of pipes (4–8 usable RGB pipes on SDM/SM8xxx); 2–3 game
|
||||
layers + base + HUD + cursor is fine, a desktop with 10 windows is not — SurfaceFlinger then
|
||||
composites the overflow on the GPU (still correct, just no gain). Policy: layers only for
|
||||
fullscreen/topmost windows, everything else stays in the base swapchain (the prototype's rule).
|
||||
- **Buffer ownership across processes.** The game's `AHardwareBuffer` is alive in the guest; the
|
||||
compositor's received copy holds its own gralloc reference, SurfaceFlinger a third. A guest crash
|
||||
mid-present leaves SurfaceFlinger with a valid buffer (no black flash). Fds: one dma-buf fd + one
|
||||
socket per swapchain image; clean up on `wl_buffer` destroy (today's `dmabuf_buffer_unref`).
|
||||
- **Fences.** Passing `-1` acquire fences with a buffer the GPU is still writing shows tearing or
|
||||
stale content; KGSL has no BO implicit sync, so the sync_file path in §3 is mandatory for the
|
||||
real thing (the prototype waits on the CPU instead, which is safe).
|
||||
- **Background / rotation / device lost.** Covered by the window-request serialisation; a device
|
||||
loss in the compositor's Turnip does not affect layers already on screen (SurfaceFlinger owns
|
||||
them) — the old path's `device_lost` message stays.
|
||||
- **Non-Adreno / old SoCs.** Everything here is NDK API 29 + gralloc-allocated buffers; the only
|
||||
vendor-specific piece is the `'gmsm'` handle sniff, which degrades to "linear with a CPU bit".
|
||||
Same risk class as the X11 ASR renderer; keep it opt-in until proven on a second SoC.
|
||||
- **`vk_present.c` stays.** Fallback for: no `ASurfaceControl` API, multi-window scenes, popups
|
||||
above the game, the first frames before the layer is up, and any device where composition goes
|
||||
CLIENT. The prototype switches per frame (`layer_candidate` in `compositor.c`).
|
||||
|
||||
## 5. Experiment plan (each step ≤ 1 hour on the device, in order)
|
||||
|
||||
Prerequisite: a build of this branch, container on Wayland, the AIO Graphics Test (Vulkan and
|
||||
D3D12 tabs) as the workload, session log in `Download/Wayland-logs/`.
|
||||
|
||||
0. **UBWC modifier A/B (no layers).** Done on `feat/wayland-ubwc` (advertised when the compositor's
|
||||
driver imports it, `BANNER_WAYLAND_UBWC=0` = old linear-only list; see `WAYLAND_RUNTIME.md`
|
||||
"Compressed (UBWC) game buffers"). Run the AIO Vulkan/D3D12 with and without. Expect
|
||||
`vulkan: … is presenting GPU frames through Wayland: WxH, format XB24, tiled (zero-copy)` and
|
||||
no `dmabuf import failed`. Records how much of the 20 % is the linear swapchain alone.
|
||||
1. **Layer mode smoke.** Put `BANNER_WAYLAND_ZERO_COPY=1` in the container's environment
|
||||
variables, launch the AIO fullscreen. Expected log lines (tag `layer`):
|
||||
`SurfaceControl "banner_wayland_game" created as a child of the screen surface`,
|
||||
`pool buffer 1920x1080 UBWC (QCOM_COMPRESSED), stride 1920 px (gralloc handle 2 fds / N ints)`
|
||||
(or `linear` after `import of a UBWC … failed` — also a result: it tells whether the compositor
|
||||
Turnip accepts gralloc's UBWC pitch), `geometry: buffer 0,0-1920,1080 -> screen …`,
|
||||
`presenting 1920x1080 game frames on their own SurfaceControl layer (UBWC pool, 3 buffers)`,
|
||||
and the probe line `kernel exports sync_file fences from the game's dma-buf …` or
|
||||
`DMA_BUF_IOCTL_EXPORT_SYNC_FILE … failed (…)`. Picture correct, HUD and pointer on top, fullscreen
|
||||
mode changes move the layer (`geometry:` lines).
|
||||
2. **Composition type.** With the AIO running: `dumpsys SurfaceFlinger | grep -A3 banner_wayland_game`
|
||||
and the `GPU_TARGET` line of the pipe table. DEVICE/DEVICE on the game layer with an empty GPU
|
||||
target = the DPU does the scaling; CLIENT = no gain on this panel orientation → try the
|
||||
handheld's native orientation / a resolution equal to the panel's.
|
||||
3. **Cost of the host copy.** AIO Vulkan fps with the flag on vs off (same cost expected ± noise,
|
||||
since the blit only changed its destination) and `dumpsys gfxinfo`/battery for 5 min each. This
|
||||
is the baseline the WSI patch is measured against.
|
||||
4. **Fence probe outcome → choose the acquire-fence design** (§3) before starting the WSI patch.
|
||||
5. **WSI patch (option a) in banners-turnip-wayland**, wcp rebuild, then the same steps 1–3 with
|
||||
the AHB arriving from the guest: log line to add on the compositor side `layer: buffer N of
|
||||
"<window>" received from the game (AHardwareBuffer WxH, UBWC)` and the fps delta vs X11.
|
||||
|
||||
Work estimates: step 0 = 0.5 day incl. A/B; host layer prototype = done (this branch, ~1 day to
|
||||
harden: async fence instead of CPU wait, per-window layers, presentation feedback from
|
||||
`getLatchTime`); option (a) WSI + protocol + wcp = 2–3 days + 1 day device proving; option (c) =
|
||||
3–4 days + the same proving; (b) = not buildable.
|
||||
|
||||
## 6. What the prototype in this branch does (`BANNER_WAYLAND_ZERO_COPY=1`)
|
||||
|
||||
Files: `src/sc_layer.{c,h}` (new), `src/vk_present.{c,h}` (`vkp_image_import_dmabuf` with a
|
||||
blit-destination role, `vkp_blit_image`, `vkp_update_map`, `vkp_map_draw`, `vkp_window`,
|
||||
`vkp_signal_first_frame`; the layer is retired on window changes), `src/compositor.c`
|
||||
(`g_zero_copy`, `layer_candidate`, the `render_scene` branch, the dma-buf sync_file probe),
|
||||
`src/waylandcomp_jni.c` + `WaylandCompositor.java` (`nativeSetZeroCopy`),
|
||||
`XServerDisplayActivity.startWaylandCompositor` (reads the flag from the container's / shortcut's
|
||||
environment variables before the compositor starts).
|
||||
|
||||
Behaviour: when the topmost draw is a client GPU frame covering the whole scene (one fullscreen
|
||||
game, nothing above it), the screen swapchain is presented black and the frame is blitted (1:1,
|
||||
`vkCmdBlitImage`, CPU-waited) into one of three compositor-allocated `AHardwareBuffer`s
|
||||
(R8G8B8A8, `GPU_COLOR_OUTPUT | GPU_SAMPLED_IMAGE`, imported into the compositor's Turnip through
|
||||
its native-handle dma-buf fd with the modifier from the `'gmsm'` sniff, linear fallback), which
|
||||
is set on a child `ASurfaceControl` of the SurfaceView with the fullscreen-mode geometry, z 1,
|
||||
opaque. `setOnComplete` returns the previous buffer's release fence, which is waited on before
|
||||
that pool slot is reused; no free slot = frame dropped (logged at most every 5 s). Any other scene
|
||||
hides the layer and draws the old way; the layer is retired when the SurfaceView goes away.
|
||||
Everything else (frame callbacks, presentation feedback, FPS limiter, HUD counting, input) is
|
||||
unchanged. Off by default: with the variable unset no new code runs.
|
||||
|
||||
Not zero-copy yet — it is the receive side. The copy disappears when step 5 lands and
|
||||
`sc_layer_present` is handed the game's own `AHardwareBuffer` instead of a pool slot.
|
||||
|
||||
## 7. Step 5 implemented (feat/wayland-zero-copy-wsi + banners-turnip-wayland `banner_ahb_wsi.py`)
|
||||
|
||||
Option (a′) as recommended, with one deviation forced by the build: the Wayland Turnip is a
|
||||
`platforms=wayland` build with Android detection off, so `VK_ANDROID_external_memory_android_hardware_buffer`
|
||||
/ `vk_android.c` do not exist in it. The WSI therefore allocates the `AHardwareBuffer` itself
|
||||
(`libnativewindow.so` dlopen'd), sniffs the gralloc handle for UBWC exactly like `u_gralloc_fallback.c`,
|
||||
and imports `native_handle->data[0]` as a dma-buf with an explicit modifier + pitch — the same path
|
||||
this compositor's pool uses (`vkp_image_import_dmabuf`) — after a test `vkCreateImage` proves the
|
||||
driver accepts that layout (linear retry otherwise). Fences: implicit via the dma-buf in both
|
||||
directions (§3's option 1, proven by the probe; the compositor imports SurfaceFlinger's release
|
||||
fence back into the dma-buf before `wl_buffer.release`). Details in `WAYLAND_RUNTIME.md`.
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright 2026 The412Banner
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_buffer_interface;
|
||||
|
||||
static const struct wl_interface *banner_ahb_v1_types[] = {
|
||||
NULL,
|
||||
&wl_buffer_interface,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message banner_ahb_v1_requests[] = {
|
||||
{ "destroy", "", banner_ahb_v1_types + 0 },
|
||||
{ "attach", "ohuuuuuu", banner_ahb_v1_types + 1 },
|
||||
};
|
||||
|
||||
static const struct wl_message banner_ahb_v1_events[] = {
|
||||
{ "mode", "2u", banner_ahb_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface banner_ahb_v1_interface = {
|
||||
"banner_ahb_v1", 2,
|
||||
2, banner_ahb_v1_requests,
|
||||
1, banner_ahb_v1_events,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,214 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef BANNER_AHB_V1_SERVER_PROTOCOL_H
|
||||
#define BANNER_AHB_V1_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_banner_ahb_v1 The banner_ahb_v1 protocol
|
||||
* @section page_ifaces_banner_ahb_v1 Interfaces
|
||||
* - @subpage page_iface_banner_ahb_v1 - Android gralloc buffers behind dma-buf wl_buffers
|
||||
* @section page_copyright_banner_ahb_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright 2026 The412Banner
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct banner_ahb_v1;
|
||||
struct wl_buffer;
|
||||
|
||||
#ifndef BANNER_AHB_V1_INTERFACE
|
||||
#define BANNER_AHB_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_banner_ahb_v1 banner_ahb_v1
|
||||
* @section page_iface_banner_ahb_v1_desc Description
|
||||
*
|
||||
* Zero-copy window layers on Android. A Vulkan swapchain image that the
|
||||
* client allocated as an Android AHardwareBuffer (gralloc) is still shared
|
||||
* as a dma-buf through zwp_linux_dmabuf_v1, so the compositor can import
|
||||
* and draw it the usual way. This interface additionally hands the
|
||||
* compositor the AHardwareBuffer itself, once per wl_buffer, so the
|
||||
* compositor can put the buffer straight on an Android SurfaceControl
|
||||
* layer (SurfaceFlinger / the display hardware composite it) without
|
||||
* copying it.
|
||||
*
|
||||
* The AHardwareBuffer travels over a Unix socket: the client creates a
|
||||
* socketpair, writes the buffer's handle into one end with
|
||||
* AHardwareBuffer_sendHandleToUnixSocket, then sends the other end in the
|
||||
* attach request. The compositor reads it with
|
||||
* AHardwareBuffer_recvHandleFromUnixSocket and closes the socket. Its
|
||||
* reference to the AHardwareBuffer lives as long as the wl_buffer (plus
|
||||
* whatever the display still holds).
|
||||
*
|
||||
* The compositor advertises this global whenever it can put buffers on a
|
||||
* display layer at all; whether it WANTS gralloc buffers right now is the
|
||||
* mode event (version 2), sent on bind and every time the user switches
|
||||
* zero-copy on or off during the session. A client decides per swapchain,
|
||||
* when it creates the swapchain, from the last mode it received, and a
|
||||
* client whose live swapchain was built for the other mode retires it
|
||||
* (VK_ERROR_OUT_OF_DATE_KHR on its next acquire or present) so the program
|
||||
* rebuilds it for the new mode. Buffers of the old swapchain stay fully
|
||||
* presentable until then: an attached AHardwareBuffer keeps its association
|
||||
* for the wl_buffer's lifetime whatever the mode is now. A version 1
|
||||
* client (no mode event) keeps deciding from its own environment. A
|
||||
* client that does not see the global (or does not want it) allocates
|
||||
* swapchain images the standard way; nothing else changes.
|
||||
*
|
||||
* Synchronisation stays implicit: the dma-buf carries the client's render
|
||||
* fence (DMA_BUF_IOCTL_IMPORT_SYNC_FILE by the client's driver), the
|
||||
* compositor exports it as the layer's acquire fence, and the compositor
|
||||
* imports the display's release fence into the dma-buf before it sends
|
||||
* wl_buffer.release, so the client's next acquire waits on it.
|
||||
* @section page_iface_banner_ahb_v1_api API
|
||||
* See @ref iface_banner_ahb_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_banner_ahb_v1 The banner_ahb_v1 interface
|
||||
*
|
||||
* Zero-copy window layers on Android. A Vulkan swapchain image that the
|
||||
* client allocated as an Android AHardwareBuffer (gralloc) is still shared
|
||||
* as a dma-buf through zwp_linux_dmabuf_v1, so the compositor can import
|
||||
* and draw it the usual way. This interface additionally hands the
|
||||
* compositor the AHardwareBuffer itself, once per wl_buffer, so the
|
||||
* compositor can put the buffer straight on an Android SurfaceControl
|
||||
* layer (SurfaceFlinger / the display hardware composite it) without
|
||||
* copying it.
|
||||
*
|
||||
* The AHardwareBuffer travels over a Unix socket: the client creates a
|
||||
* socketpair, writes the buffer's handle into one end with
|
||||
* AHardwareBuffer_sendHandleToUnixSocket, then sends the other end in the
|
||||
* attach request. The compositor reads it with
|
||||
* AHardwareBuffer_recvHandleFromUnixSocket and closes the socket. Its
|
||||
* reference to the AHardwareBuffer lives as long as the wl_buffer (plus
|
||||
* whatever the display still holds).
|
||||
*
|
||||
* The compositor advertises this global whenever it can put buffers on a
|
||||
* display layer at all; whether it WANTS gralloc buffers right now is the
|
||||
* mode event (version 2), sent on bind and every time the user switches
|
||||
* zero-copy on or off during the session. A client decides per swapchain,
|
||||
* when it creates the swapchain, from the last mode it received, and a
|
||||
* client whose live swapchain was built for the other mode retires it
|
||||
* (VK_ERROR_OUT_OF_DATE_KHR on its next acquire or present) so the program
|
||||
* rebuilds it for the new mode. Buffers of the old swapchain stay fully
|
||||
* presentable until then: an attached AHardwareBuffer keeps its association
|
||||
* for the wl_buffer's lifetime whatever the mode is now. A version 1
|
||||
* client (no mode event) keeps deciding from its own environment. A
|
||||
* client that does not see the global (or does not want it) allocates
|
||||
* swapchain images the standard way; nothing else changes.
|
||||
*
|
||||
* Synchronisation stays implicit: the dma-buf carries the client's render
|
||||
* fence (DMA_BUF_IOCTL_IMPORT_SYNC_FILE by the client's driver), the
|
||||
* compositor exports it as the layer's acquire fence, and the compositor
|
||||
* imports the display's release fence into the dma-buf before it sends
|
||||
* wl_buffer.release, so the client's next acquire waits on it.
|
||||
*/
|
||||
extern const struct wl_interface banner_ahb_v1_interface;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup iface_banner_ahb_v1
|
||||
* @struct banner_ahb_v1_interface
|
||||
*/
|
||||
struct banner_ahb_v1_interface {
|
||||
/**
|
||||
* destroy the object
|
||||
*
|
||||
* Buffers already attached keep their AHardwareBuffer
|
||||
* association.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* hand the compositor a buffer's AHardwareBuffer
|
||||
*
|
||||
* Associates the AHardwareBuffer readable from socket with the
|
||||
* (already created) dma-buf wl_buffer. width, height and stride
|
||||
* (pixels) describe the gralloc allocation; modifier_hi/lo is the
|
||||
* DRM format modifier the dma-buf was shared with (the same value
|
||||
* passed to zwp_linux_buffer_params_v1.add); image_count is the
|
||||
* number of images in the swapchain this buffer belongs to (for
|
||||
* the compositor's log). Sent once per wl_buffer, before the
|
||||
* buffer is first attached to a surface.
|
||||
* @param buffer the dma-buf wl_buffer
|
||||
* @param socket socket the AHardwareBuffer handle was written to
|
||||
* @param width buffer width in pixels
|
||||
* @param height buffer height in pixels
|
||||
* @param stride gralloc row stride in pixels
|
||||
* @param modifier_hi high 32 bits of the DRM format modifier
|
||||
* @param modifier_lo low 32 bits of the DRM format modifier
|
||||
* @param image_count images in the client's swapchain
|
||||
*/
|
||||
void (*attach)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *buffer,
|
||||
int32_t socket,
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint32_t stride,
|
||||
uint32_t modifier_hi,
|
||||
uint32_t modifier_lo,
|
||||
uint32_t image_count);
|
||||
};
|
||||
|
||||
#define BANNER_AHB_V1_MODE 0
|
||||
|
||||
/**
|
||||
* @ingroup iface_banner_ahb_v1
|
||||
*/
|
||||
#define BANNER_AHB_V1_MODE_SINCE_VERSION 2
|
||||
|
||||
/**
|
||||
* @ingroup iface_banner_ahb_v1
|
||||
*/
|
||||
#define BANNER_AHB_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_banner_ahb_v1
|
||||
*/
|
||||
#define BANNER_AHB_V1_ATTACH_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_banner_ahb_v1
|
||||
* Sends an mode event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param enabled 1 = gralloc swapchain images wanted, 0 = not
|
||||
*/
|
||||
static inline void
|
||||
banner_ahb_v1_send_mode(struct wl_resource *resource_, uint32_t enabled)
|
||||
{
|
||||
wl_resource_post_event(resource_, BANNER_AHB_V1_MODE, enabled);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright 2026 The412Banner
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
|
||||
static const struct wl_interface *banner_desktop_v1_types[] = {
|
||||
NULL,
|
||||
&wl_surface_interface,
|
||||
&wl_surface_interface,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message banner_desktop_v1_requests[] = {
|
||||
{ "destroy", "", banner_desktop_v1_types + 0 },
|
||||
{ "set_desktop", "o", banner_desktop_v1_types + 1 },
|
||||
{ "set_window", "ouii", banner_desktop_v1_types + 2 },
|
||||
{ "set_zorder", "a", banner_desktop_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface banner_desktop_v1_interface = {
|
||||
"banner_desktop_v1", 1,
|
||||
4, banner_desktop_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef BANNER_DESKTOP_V1_SERVER_PROTOCOL_H
|
||||
#define BANNER_DESKTOP_V1_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_banner_desktop_v1 The banner_desktop_v1 protocol
|
||||
* @section page_ifaces_banner_desktop_v1 Interfaces
|
||||
* - @subpage page_iface_banner_desktop_v1 - Windows virtual desktop layout
|
||||
* @section page_copyright_banner_desktop_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright 2026 The412Banner
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct banner_desktop_v1;
|
||||
struct wl_surface;
|
||||
|
||||
#ifndef BANNER_DESKTOP_V1_INTERFACE
|
||||
#define BANNER_DESKTOP_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_banner_desktop_v1 banner_desktop_v1
|
||||
* @section page_iface_banner_desktop_v1_desc Description
|
||||
*
|
||||
* Each Wine process is a separate Wayland client, so a Windows virtual
|
||||
* desktop can't be built from subsurfaces. Instead the process that owns
|
||||
* the desktop window marks one surface as the desktop, and every process
|
||||
* reports where its top-level windows sit on that desktop and the global
|
||||
* window stacking order. The compositor draws the desktop at the bottom,
|
||||
* the windows at the reported positions, and sends pointer and keyboard
|
||||
* input to the desktop surface; Wine routes it to the right window.
|
||||
* @section page_iface_banner_desktop_v1_api API
|
||||
* See @ref iface_banner_desktop_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_banner_desktop_v1 The banner_desktop_v1 interface
|
||||
*
|
||||
* Each Wine process is a separate Wayland client, so a Windows virtual
|
||||
* desktop can't be built from subsurfaces. Instead the process that owns
|
||||
* the desktop window marks one surface as the desktop, and every process
|
||||
* reports where its top-level windows sit on that desktop and the global
|
||||
* window stacking order. The compositor draws the desktop at the bottom,
|
||||
* the windows at the reported positions, and sends pointer and keyboard
|
||||
* input to the desktop surface; Wine routes it to the right window.
|
||||
*/
|
||||
extern const struct wl_interface banner_desktop_v1_interface;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup iface_banner_desktop_v1
|
||||
* @struct banner_desktop_v1_interface
|
||||
*/
|
||||
struct banner_desktop_v1_interface {
|
||||
/**
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* mark a surface as the virtual desktop
|
||||
*
|
||||
* The surface is drawn at the origin, below every window, and
|
||||
* sets the size of the desktop.
|
||||
*/
|
||||
void (*set_desktop)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *surface);
|
||||
/**
|
||||
* place a top-level window on the desktop
|
||||
*
|
||||
* Position of the top-left corner of the surface in desktop
|
||||
* coordinates, and the window handle used by set_zorder.
|
||||
*/
|
||||
void (*set_window)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *surface,
|
||||
uint32_t hwnd,
|
||||
int32_t x,
|
||||
int32_t y);
|
||||
/**
|
||||
* report the desktop's window stacking order
|
||||
*
|
||||
* Visible top-level window handles as 32-bit values, topmost
|
||||
* first.
|
||||
*/
|
||||
void (*set_zorder)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_array *hwnds);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_banner_desktop_v1
|
||||
*/
|
||||
#define BANNER_DESKTOP_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_banner_desktop_v1
|
||||
*/
|
||||
#define BANNER_DESKTOP_V1_SET_DESKTOP_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_banner_desktop_v1
|
||||
*/
|
||||
#define BANNER_DESKTOP_V1_SET_WINDOW_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_banner_desktop_v1
|
||||
*/
|
||||
#define BANNER_DESKTOP_V1_SET_ZORDER_SINCE_VERSION 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,216 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright 2019 Sebastian Wick
|
||||
* Copyright 2019 Erwin Burema
|
||||
* Copyright 2020 AMD
|
||||
* Copyright 2020-2024 Collabora, Ltd.
|
||||
* Copyright 2024 Xaver Hugl
|
||||
* Copyright 2022-2025 Red Hat, Inc.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_output_interface;
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
extern const struct wl_interface wp_color_management_output_v1_interface;
|
||||
extern const struct wl_interface wp_color_management_surface_feedback_v1_interface;
|
||||
extern const struct wl_interface wp_color_management_surface_v1_interface;
|
||||
extern const struct wl_interface wp_image_description_creator_icc_v1_interface;
|
||||
extern const struct wl_interface wp_image_description_creator_params_v1_interface;
|
||||
extern const struct wl_interface wp_image_description_info_v1_interface;
|
||||
extern const struct wl_interface wp_image_description_v1_interface;
|
||||
|
||||
static const struct wl_interface *color_management_v1_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&wp_color_management_output_v1_interface,
|
||||
&wl_output_interface,
|
||||
&wp_color_management_surface_v1_interface,
|
||||
&wl_surface_interface,
|
||||
&wp_color_management_surface_feedback_v1_interface,
|
||||
&wl_surface_interface,
|
||||
&wp_image_description_creator_icc_v1_interface,
|
||||
&wp_image_description_creator_params_v1_interface,
|
||||
&wp_image_description_v1_interface,
|
||||
&wp_image_description_v1_interface,
|
||||
&wp_image_description_v1_interface,
|
||||
NULL,
|
||||
&wp_image_description_v1_interface,
|
||||
&wp_image_description_v1_interface,
|
||||
&wp_image_description_v1_interface,
|
||||
&wp_image_description_v1_interface,
|
||||
&wp_image_description_info_v1_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_manager_v1_requests[] = {
|
||||
{ "destroy", "", color_management_v1_types + 0 },
|
||||
{ "get_output", "no", color_management_v1_types + 8 },
|
||||
{ "get_surface", "no", color_management_v1_types + 10 },
|
||||
{ "get_surface_feedback", "no", color_management_v1_types + 12 },
|
||||
{ "create_icc_creator", "n", color_management_v1_types + 14 },
|
||||
{ "create_parametric_creator", "n", color_management_v1_types + 15 },
|
||||
{ "create_windows_scrgb", "n", color_management_v1_types + 16 },
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_manager_v1_events[] = {
|
||||
{ "supported_intent", "u", color_management_v1_types + 0 },
|
||||
{ "supported_feature", "u", color_management_v1_types + 0 },
|
||||
{ "supported_tf_named", "u", color_management_v1_types + 0 },
|
||||
{ "supported_primaries_named", "u", color_management_v1_types + 0 },
|
||||
{ "done", "", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_color_manager_v1_interface = {
|
||||
"wp_color_manager_v1", 1,
|
||||
7, wp_color_manager_v1_requests,
|
||||
5, wp_color_manager_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_management_output_v1_requests[] = {
|
||||
{ "destroy", "", color_management_v1_types + 0 },
|
||||
{ "get_image_description", "n", color_management_v1_types + 17 },
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_management_output_v1_events[] = {
|
||||
{ "image_description_changed", "", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_color_management_output_v1_interface = {
|
||||
"wp_color_management_output_v1", 1,
|
||||
2, wp_color_management_output_v1_requests,
|
||||
1, wp_color_management_output_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_management_surface_v1_requests[] = {
|
||||
{ "destroy", "", color_management_v1_types + 0 },
|
||||
{ "set_image_description", "ou", color_management_v1_types + 18 },
|
||||
{ "unset_image_description", "", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_color_management_surface_v1_interface = {
|
||||
"wp_color_management_surface_v1", 1,
|
||||
3, wp_color_management_surface_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_management_surface_feedback_v1_requests[] = {
|
||||
{ "destroy", "", color_management_v1_types + 0 },
|
||||
{ "get_preferred", "n", color_management_v1_types + 20 },
|
||||
{ "get_preferred_parametric", "n", color_management_v1_types + 21 },
|
||||
};
|
||||
|
||||
static const struct wl_message wp_color_management_surface_feedback_v1_events[] = {
|
||||
{ "preferred_changed", "u", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_color_management_surface_feedback_v1_interface = {
|
||||
"wp_color_management_surface_feedback_v1", 1,
|
||||
3, wp_color_management_surface_feedback_v1_requests,
|
||||
1, wp_color_management_surface_feedback_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_image_description_creator_icc_v1_requests[] = {
|
||||
{ "create", "n", color_management_v1_types + 22 },
|
||||
{ "set_icc_file", "huu", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_image_description_creator_icc_v1_interface = {
|
||||
"wp_image_description_creator_icc_v1", 1,
|
||||
2, wp_image_description_creator_icc_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_image_description_creator_params_v1_requests[] = {
|
||||
{ "create", "n", color_management_v1_types + 23 },
|
||||
{ "set_tf_named", "u", color_management_v1_types + 0 },
|
||||
{ "set_tf_power", "u", color_management_v1_types + 0 },
|
||||
{ "set_primaries_named", "u", color_management_v1_types + 0 },
|
||||
{ "set_primaries", "iiiiiiii", color_management_v1_types + 0 },
|
||||
{ "set_luminances", "uuu", color_management_v1_types + 0 },
|
||||
{ "set_mastering_display_primaries", "iiiiiiii", color_management_v1_types + 0 },
|
||||
{ "set_mastering_luminance", "uu", color_management_v1_types + 0 },
|
||||
{ "set_max_cll", "u", color_management_v1_types + 0 },
|
||||
{ "set_max_fall", "u", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_image_description_creator_params_v1_interface = {
|
||||
"wp_image_description_creator_params_v1", 1,
|
||||
10, wp_image_description_creator_params_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_image_description_v1_requests[] = {
|
||||
{ "destroy", "", color_management_v1_types + 0 },
|
||||
{ "get_information", "n", color_management_v1_types + 24 },
|
||||
};
|
||||
|
||||
static const struct wl_message wp_image_description_v1_events[] = {
|
||||
{ "failed", "us", color_management_v1_types + 0 },
|
||||
{ "ready", "u", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_image_description_v1_interface = {
|
||||
"wp_image_description_v1", 1,
|
||||
2, wp_image_description_v1_requests,
|
||||
2, wp_image_description_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_image_description_info_v1_events[] = {
|
||||
{ "done", "", color_management_v1_types + 0 },
|
||||
{ "icc_file", "hu", color_management_v1_types + 0 },
|
||||
{ "primaries", "iiiiiiii", color_management_v1_types + 0 },
|
||||
{ "primaries_named", "u", color_management_v1_types + 0 },
|
||||
{ "tf_power", "u", color_management_v1_types + 0 },
|
||||
{ "tf_named", "u", color_management_v1_types + 0 },
|
||||
{ "luminances", "uuu", color_management_v1_types + 0 },
|
||||
{ "target_primaries", "iiiiiiii", color_management_v1_types + 0 },
|
||||
{ "target_luminance", "uu", color_management_v1_types + 0 },
|
||||
{ "target_max_cll", "u", color_management_v1_types + 0 },
|
||||
{ "target_max_fall", "u", color_management_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_image_description_info_v1_interface = {
|
||||
"wp_image_description_info_v1", 1,
|
||||
0, NULL,
|
||||
11, wp_image_description_info_v1_events,
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,121 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2014, 2015 Collabora, Ltd.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_buffer_interface;
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
extern const struct wl_interface zwp_linux_buffer_params_v1_interface;
|
||||
extern const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface;
|
||||
|
||||
static const struct wl_interface *linux_dmabuf_v1_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&zwp_linux_buffer_params_v1_interface,
|
||||
&zwp_linux_dmabuf_feedback_v1_interface,
|
||||
&zwp_linux_dmabuf_feedback_v1_interface,
|
||||
&wl_surface_interface,
|
||||
&wl_buffer_interface,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&wl_buffer_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_linux_dmabuf_v1_requests[] = {
|
||||
{ "destroy", "", linux_dmabuf_v1_types + 0 },
|
||||
{ "create_params", "n", linux_dmabuf_v1_types + 6 },
|
||||
{ "get_default_feedback", "4n", linux_dmabuf_v1_types + 7 },
|
||||
{ "get_surface_feedback", "4no", linux_dmabuf_v1_types + 8 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_linux_dmabuf_v1_events[] = {
|
||||
{ "format", "u", linux_dmabuf_v1_types + 0 },
|
||||
{ "modifier", "3uuu", linux_dmabuf_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_linux_dmabuf_v1_interface = {
|
||||
"zwp_linux_dmabuf_v1", 6,
|
||||
4, zwp_linux_dmabuf_v1_requests,
|
||||
2, zwp_linux_dmabuf_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_linux_buffer_params_v1_requests[] = {
|
||||
{ "destroy", "", linux_dmabuf_v1_types + 0 },
|
||||
{ "add", "huuuuu", linux_dmabuf_v1_types + 0 },
|
||||
{ "create", "iiuu", linux_dmabuf_v1_types + 0 },
|
||||
{ "create_immed", "2niiuu", linux_dmabuf_v1_types + 10 },
|
||||
{ "set_sampling_device", "6a", linux_dmabuf_v1_types + 0 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_linux_buffer_params_v1_events[] = {
|
||||
{ "created", "n", linux_dmabuf_v1_types + 15 },
|
||||
{ "failed", "", linux_dmabuf_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_linux_buffer_params_v1_interface = {
|
||||
"zwp_linux_buffer_params_v1", 6,
|
||||
5, zwp_linux_buffer_params_v1_requests,
|
||||
2, zwp_linux_buffer_params_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_linux_dmabuf_feedback_v1_requests[] = {
|
||||
{ "destroy", "", linux_dmabuf_v1_types + 0 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_linux_dmabuf_feedback_v1_events[] = {
|
||||
{ "done", "", linux_dmabuf_v1_types + 0 },
|
||||
{ "format_table", "hu", linux_dmabuf_v1_types + 0 },
|
||||
{ "main_device", "a", linux_dmabuf_v1_types + 0 },
|
||||
{ "tranche_done", "", linux_dmabuf_v1_types + 0 },
|
||||
{ "tranche_target_device", "a", linux_dmabuf_v1_types + 0 },
|
||||
{ "tranche_formats", "a", linux_dmabuf_v1_types + 0 },
|
||||
{ "tranche_flags", "u", linux_dmabuf_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface = {
|
||||
"zwp_linux_dmabuf_feedback_v1", 6,
|
||||
1, zwp_linux_dmabuf_feedback_v1_requests,
|
||||
7, zwp_linux_dmabuf_feedback_v1_events,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,996 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef LINUX_DMABUF_V1_SERVER_PROTOCOL_H
|
||||
#define LINUX_DMABUF_V1_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_linux_dmabuf_v1 The linux_dmabuf_v1 protocol
|
||||
* @section page_ifaces_linux_dmabuf_v1 Interfaces
|
||||
* - @subpage page_iface_zwp_linux_dmabuf_v1 - factory for creating dmabuf-based wl_buffers
|
||||
* - @subpage page_iface_zwp_linux_buffer_params_v1 - parameters for creating a dmabuf-based wl_buffer
|
||||
* - @subpage page_iface_zwp_linux_dmabuf_feedback_v1 - dmabuf feedback
|
||||
* @section page_copyright_linux_dmabuf_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright © 2014, 2015 Collabora, Ltd.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct wl_buffer;
|
||||
struct wl_surface;
|
||||
struct zwp_linux_buffer_params_v1;
|
||||
struct zwp_linux_dmabuf_feedback_v1;
|
||||
struct zwp_linux_dmabuf_v1;
|
||||
|
||||
#ifndef ZWP_LINUX_DMABUF_V1_INTERFACE
|
||||
#define ZWP_LINUX_DMABUF_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_linux_dmabuf_v1 zwp_linux_dmabuf_v1
|
||||
* @section page_iface_zwp_linux_dmabuf_v1_desc Description
|
||||
*
|
||||
* This interface offers ways to create generic dmabuf-based wl_buffers.
|
||||
*
|
||||
* For more information about dmabuf, see:
|
||||
* https://www.kernel.org/doc/html/next/userspace-api/dma-buf-alloc-exchange.html
|
||||
*
|
||||
* Clients can use the get_surface_feedback request to get dmabuf feedback
|
||||
* for a particular surface. If the client wants to retrieve feedback not
|
||||
* tied to a surface, they can use the get_default_feedback request.
|
||||
*
|
||||
* The following are required from clients:
|
||||
*
|
||||
* - Clients must ensure that either all data in the dma-buf is
|
||||
* coherent for all subsequent read access or that coherency is
|
||||
* correctly handled by the underlying kernel-side dma-buf
|
||||
* implementation.
|
||||
*
|
||||
* - Don't make any more attachments after sending the buffer to the
|
||||
* compositor. Making more attachments later increases the risk of
|
||||
* the compositor not being able to use (re-import) an existing
|
||||
* dmabuf-based wl_buffer.
|
||||
*
|
||||
* The underlying graphics stack must ensure the following:
|
||||
*
|
||||
* - The dmabuf file descriptors relayed to the server will stay valid
|
||||
* for the whole lifetime of the wl_buffer. This means the server may
|
||||
* at any time use those fds to import the dmabuf into any kernel
|
||||
* sub-system that might accept it.
|
||||
*
|
||||
* However, when the underlying graphics stack fails to deliver the
|
||||
* promise, because of e.g. a device hot-unplug which raises internal
|
||||
* errors, after the wl_buffer has been successfully created the
|
||||
* compositor must not raise protocol errors to the client when dmabuf
|
||||
* import later fails.
|
||||
*
|
||||
* To create a wl_buffer from one or more dmabufs, a client creates a
|
||||
* zwp_linux_buffer_params_v1 object with a zwp_linux_dmabuf_v1.create_params
|
||||
* request. All planes required by the intended format are added with
|
||||
* the 'add' request. Finally, a 'create' or 'create_immed' request is
|
||||
* issued, which has the following outcome depending on the import success.
|
||||
*
|
||||
* The 'create' request,
|
||||
* - on success, triggers a 'created' event which provides the final
|
||||
* wl_buffer to the client.
|
||||
* - on failure, triggers a 'failed' event to convey that the server
|
||||
* cannot use the dmabufs received from the client.
|
||||
*
|
||||
* For the 'create_immed' request,
|
||||
* - on success, the server immediately imports the added dmabufs to
|
||||
* create a wl_buffer. No event is sent from the server in this case.
|
||||
* - on failure, the server can choose to either:
|
||||
* - terminate the client by raising a fatal error.
|
||||
* - mark the wl_buffer as failed, and send a 'failed' event to the
|
||||
* client. If the client uses a failed wl_buffer as an argument to any
|
||||
* request, the behaviour is compositor implementation-defined.
|
||||
*
|
||||
* For all DRM formats and unless specified in another protocol extension,
|
||||
* pre-multiplied alpha is used for pixel values.
|
||||
*
|
||||
* Unless specified otherwise in another protocol extension, implicit
|
||||
* synchronization is used. In other words, compositors and clients must
|
||||
* wait and signal fences implicitly passed via the DMA-BUF's reservation
|
||||
* mechanism.
|
||||
* @section page_iface_zwp_linux_dmabuf_v1_api API
|
||||
* See @ref iface_zwp_linux_dmabuf_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_linux_dmabuf_v1 The zwp_linux_dmabuf_v1 interface
|
||||
*
|
||||
* This interface offers ways to create generic dmabuf-based wl_buffers.
|
||||
*
|
||||
* For more information about dmabuf, see:
|
||||
* https://www.kernel.org/doc/html/next/userspace-api/dma-buf-alloc-exchange.html
|
||||
*
|
||||
* Clients can use the get_surface_feedback request to get dmabuf feedback
|
||||
* for a particular surface. If the client wants to retrieve feedback not
|
||||
* tied to a surface, they can use the get_default_feedback request.
|
||||
*
|
||||
* The following are required from clients:
|
||||
*
|
||||
* - Clients must ensure that either all data in the dma-buf is
|
||||
* coherent for all subsequent read access or that coherency is
|
||||
* correctly handled by the underlying kernel-side dma-buf
|
||||
* implementation.
|
||||
*
|
||||
* - Don't make any more attachments after sending the buffer to the
|
||||
* compositor. Making more attachments later increases the risk of
|
||||
* the compositor not being able to use (re-import) an existing
|
||||
* dmabuf-based wl_buffer.
|
||||
*
|
||||
* The underlying graphics stack must ensure the following:
|
||||
*
|
||||
* - The dmabuf file descriptors relayed to the server will stay valid
|
||||
* for the whole lifetime of the wl_buffer. This means the server may
|
||||
* at any time use those fds to import the dmabuf into any kernel
|
||||
* sub-system that might accept it.
|
||||
*
|
||||
* However, when the underlying graphics stack fails to deliver the
|
||||
* promise, because of e.g. a device hot-unplug which raises internal
|
||||
* errors, after the wl_buffer has been successfully created the
|
||||
* compositor must not raise protocol errors to the client when dmabuf
|
||||
* import later fails.
|
||||
*
|
||||
* To create a wl_buffer from one or more dmabufs, a client creates a
|
||||
* zwp_linux_buffer_params_v1 object with a zwp_linux_dmabuf_v1.create_params
|
||||
* request. All planes required by the intended format are added with
|
||||
* the 'add' request. Finally, a 'create' or 'create_immed' request is
|
||||
* issued, which has the following outcome depending on the import success.
|
||||
*
|
||||
* The 'create' request,
|
||||
* - on success, triggers a 'created' event which provides the final
|
||||
* wl_buffer to the client.
|
||||
* - on failure, triggers a 'failed' event to convey that the server
|
||||
* cannot use the dmabufs received from the client.
|
||||
*
|
||||
* For the 'create_immed' request,
|
||||
* - on success, the server immediately imports the added dmabufs to
|
||||
* create a wl_buffer. No event is sent from the server in this case.
|
||||
* - on failure, the server can choose to either:
|
||||
* - terminate the client by raising a fatal error.
|
||||
* - mark the wl_buffer as failed, and send a 'failed' event to the
|
||||
* client. If the client uses a failed wl_buffer as an argument to any
|
||||
* request, the behaviour is compositor implementation-defined.
|
||||
*
|
||||
* For all DRM formats and unless specified in another protocol extension,
|
||||
* pre-multiplied alpha is used for pixel values.
|
||||
*
|
||||
* Unless specified otherwise in another protocol extension, implicit
|
||||
* synchronization is used. In other words, compositors and clients must
|
||||
* wait and signal fences implicitly passed via the DMA-BUF's reservation
|
||||
* mechanism.
|
||||
*/
|
||||
extern const struct wl_interface zwp_linux_dmabuf_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_INTERFACE
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_linux_buffer_params_v1 zwp_linux_buffer_params_v1
|
||||
* @section page_iface_zwp_linux_buffer_params_v1_desc Description
|
||||
*
|
||||
* This temporary object is a collection of dmabufs and other
|
||||
* parameters that together form a single logical buffer. The temporary
|
||||
* object may eventually create one wl_buffer unless cancelled by
|
||||
* destroying it before requesting 'create'.
|
||||
*
|
||||
* Single-planar formats only require one dmabuf, however
|
||||
* multi-planar formats may require more than one dmabuf. For all
|
||||
* formats, an 'add' request must be called once per plane (even if the
|
||||
* underlying dmabuf fd is identical).
|
||||
*
|
||||
* You must use consecutive plane indices ('plane_idx' argument for 'add')
|
||||
* from zero to the number of planes used by the drm_fourcc format code.
|
||||
* All planes required by the format must be given exactly once, but can
|
||||
* be given in any order. Each plane index can only be set once; subsequent
|
||||
* calls with a plane index which has already been set will result in a
|
||||
* plane_set error being generated.
|
||||
* @section page_iface_zwp_linux_buffer_params_v1_api API
|
||||
* See @ref iface_zwp_linux_buffer_params_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_linux_buffer_params_v1 The zwp_linux_buffer_params_v1 interface
|
||||
*
|
||||
* This temporary object is a collection of dmabufs and other
|
||||
* parameters that together form a single logical buffer. The temporary
|
||||
* object may eventually create one wl_buffer unless cancelled by
|
||||
* destroying it before requesting 'create'.
|
||||
*
|
||||
* Single-planar formats only require one dmabuf, however
|
||||
* multi-planar formats may require more than one dmabuf. For all
|
||||
* formats, an 'add' request must be called once per plane (even if the
|
||||
* underlying dmabuf fd is identical).
|
||||
*
|
||||
* You must use consecutive plane indices ('plane_idx' argument for 'add')
|
||||
* from zero to the number of planes used by the drm_fourcc format code.
|
||||
* All planes required by the format must be given exactly once, but can
|
||||
* be given in any order. Each plane index can only be set once; subsequent
|
||||
* calls with a plane index which has already been set will result in a
|
||||
* plane_set error being generated.
|
||||
*/
|
||||
extern const struct wl_interface zwp_linux_buffer_params_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWP_LINUX_DMABUF_FEEDBACK_V1_INTERFACE
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_linux_dmabuf_feedback_v1 zwp_linux_dmabuf_feedback_v1
|
||||
* @section page_iface_zwp_linux_dmabuf_feedback_v1_desc Description
|
||||
*
|
||||
* This object advertises dmabuf parameters feedback. This includes the
|
||||
* preferred devices and the supported formats/modifiers.
|
||||
*
|
||||
* The parameters are sent once when this object is created and whenever they
|
||||
* change. The done event is always sent once after all parameters have been
|
||||
* sent. When a single parameter changes, all parameters are re-sent by the
|
||||
* compositor.
|
||||
*
|
||||
* Compositors can re-send the parameters when the current client buffer
|
||||
* allocations are sub-optimal. Compositors should not re-send the
|
||||
* parameters if re-allocating the buffers would not result in a more optimal
|
||||
* configuration. In particular, compositors should avoid sending the exact
|
||||
* same parameters multiple times in a row.
|
||||
*
|
||||
* The tranche_target_device and tranche_formats events are grouped by
|
||||
* tranches of preference. For each tranche, a tranche_target_device, one
|
||||
* tranche_flags and one or more tranche_formats events are sent, followed
|
||||
* by a tranche_done event finishing the list. The tranches are sent in
|
||||
* descending order of preference. All formats and modifiers in the same
|
||||
* tranche have the same preference.
|
||||
*
|
||||
* To send parameters, the compositor sends one main_device event (unless
|
||||
* the client bound version 6 or above), tranches (each consisting of one
|
||||
* tranche_target_device event, one tranche_flags event, tranche_formats
|
||||
* events and then a tranche_done event), then one done event.
|
||||
*
|
||||
* With version 6 and above, the compositor must always advertise at least
|
||||
* one tranche with the sampling flag set.
|
||||
*
|
||||
* The compositor sends a format_table event at least once for each dmabuf
|
||||
* parameters feedback object, before any tranche events. Unless the format
|
||||
* table contents change later, the compositor is free not to send another
|
||||
* format_table event for the same dmabuf parameters feedback object.
|
||||
* @section page_iface_zwp_linux_dmabuf_feedback_v1_api API
|
||||
* See @ref iface_zwp_linux_dmabuf_feedback_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_linux_dmabuf_feedback_v1 The zwp_linux_dmabuf_feedback_v1 interface
|
||||
*
|
||||
* This object advertises dmabuf parameters feedback. This includes the
|
||||
* preferred devices and the supported formats/modifiers.
|
||||
*
|
||||
* The parameters are sent once when this object is created and whenever they
|
||||
* change. The done event is always sent once after all parameters have been
|
||||
* sent. When a single parameter changes, all parameters are re-sent by the
|
||||
* compositor.
|
||||
*
|
||||
* Compositors can re-send the parameters when the current client buffer
|
||||
* allocations are sub-optimal. Compositors should not re-send the
|
||||
* parameters if re-allocating the buffers would not result in a more optimal
|
||||
* configuration. In particular, compositors should avoid sending the exact
|
||||
* same parameters multiple times in a row.
|
||||
*
|
||||
* The tranche_target_device and tranche_formats events are grouped by
|
||||
* tranches of preference. For each tranche, a tranche_target_device, one
|
||||
* tranche_flags and one or more tranche_formats events are sent, followed
|
||||
* by a tranche_done event finishing the list. The tranches are sent in
|
||||
* descending order of preference. All formats and modifiers in the same
|
||||
* tranche have the same preference.
|
||||
*
|
||||
* To send parameters, the compositor sends one main_device event (unless
|
||||
* the client bound version 6 or above), tranches (each consisting of one
|
||||
* tranche_target_device event, one tranche_flags event, tranche_formats
|
||||
* events and then a tranche_done event), then one done event.
|
||||
*
|
||||
* With version 6 and above, the compositor must always advertise at least
|
||||
* one tranche with the sampling flag set.
|
||||
*
|
||||
* The compositor sends a format_table event at least once for each dmabuf
|
||||
* parameters feedback object, before any tranche events. Unless the format
|
||||
* table contents change later, the compositor is free not to send another
|
||||
* format_table event for the same dmabuf parameters feedback object.
|
||||
*/
|
||||
extern const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
* @struct zwp_linux_dmabuf_v1_interface
|
||||
*/
|
||||
struct zwp_linux_dmabuf_v1_interface {
|
||||
/**
|
||||
* unbind the factory
|
||||
*
|
||||
* Objects created through this interface, especially wl_buffers,
|
||||
* will remain valid.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* create a temporary object for buffer parameters
|
||||
*
|
||||
* This temporary object is used to collect multiple dmabuf
|
||||
* handles into a single batch to create a wl_buffer. It can only
|
||||
* be used once and should be destroyed after a 'created' or
|
||||
* 'failed' event has been received.
|
||||
* @param params_id id for the newly created zwp_linux_buffer_params_v1
|
||||
*/
|
||||
void (*create_params)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t params_id);
|
||||
/**
|
||||
* get default feedback
|
||||
*
|
||||
* This request creates a new zwp_linux_dmabuf_feedback_v1 object
|
||||
* not bound to a particular surface. This object will deliver
|
||||
* feedback about dmabuf parameters to use if the client doesn't
|
||||
* support per-surface feedback (see get_surface_feedback).
|
||||
* @since 4
|
||||
*/
|
||||
void (*get_default_feedback)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id);
|
||||
/**
|
||||
* get feedback for a surface
|
||||
*
|
||||
* This request creates a new zwp_linux_dmabuf_feedback_v1 object
|
||||
* for the specified wl_surface. This object will deliver feedback
|
||||
* about dmabuf parameters to use for buffers attached to this
|
||||
* surface.
|
||||
*
|
||||
* If the surface is destroyed before the
|
||||
* zwp_linux_dmabuf_feedback_v1 object, the feedback object becomes
|
||||
* inert.
|
||||
* @since 4
|
||||
*/
|
||||
void (*get_surface_feedback)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id,
|
||||
struct wl_resource *surface);
|
||||
};
|
||||
|
||||
#define ZWP_LINUX_DMABUF_V1_FORMAT 0
|
||||
#define ZWP_LINUX_DMABUF_V1_MODIFIER 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_V1_FORMAT_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_V1_MODIFIER_SINCE_VERSION 3
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_V1_CREATE_PARAMS_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_V1_GET_DEFAULT_FEEDBACK_SINCE_VERSION 4
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_V1_GET_SURFACE_FEEDBACK_SINCE_VERSION 4
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
* Sends an format event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param format DRM_FORMAT code
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_v1_send_format(struct wl_resource *resource_, uint32_t format)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_V1_FORMAT, format);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_v1
|
||||
* Sends an modifier event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param format DRM_FORMAT code
|
||||
* @param modifier_hi high 32 bits of layout modifier
|
||||
* @param modifier_lo low 32 bits of layout modifier
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_v1_send_modifier(struct wl_resource *resource_, uint32_t format, uint32_t modifier_hi, uint32_t modifier_lo)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_V1_MODIFIER, format, modifier_hi, modifier_lo);
|
||||
}
|
||||
|
||||
#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM
|
||||
enum zwp_linux_buffer_params_v1_error {
|
||||
/**
|
||||
* the zwp_linux_buffer_params_v1 object has already been used to create a wl_buffer
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ALREADY_USED = 0,
|
||||
/**
|
||||
* plane index out of bounds
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_PLANE_IDX = 1,
|
||||
/**
|
||||
* the plane index was already set
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_PLANE_SET = 2,
|
||||
/**
|
||||
* missing or too many planes to create a buffer
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INCOMPLETE = 3,
|
||||
/**
|
||||
* format not supported
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_FORMAT = 4,
|
||||
/**
|
||||
* invalid width or height
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_DIMENSIONS = 5,
|
||||
/**
|
||||
* offset + stride * height goes out of dmabuf bounds
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_OUT_OF_BOUNDS = 6,
|
||||
/**
|
||||
* invalid wl_buffer resulted from importing dmabufs via the create_immed request on given buffer_params
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_WL_BUFFER = 7,
|
||||
/**
|
||||
* an array with mismatching size for a dev_t was used
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_DEV_T_SIZE = 8,
|
||||
};
|
||||
#endif /* ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM */
|
||||
|
||||
#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM_IS_VALID
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
* Validate a zwp_linux_buffer_params_v1 error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwp_linux_buffer_params_v1_error
|
||||
*/
|
||||
static inline bool
|
||||
zwp_linux_buffer_params_v1_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ALREADY_USED:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_PLANE_IDX:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_PLANE_SET:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INCOMPLETE:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_FORMAT:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_DIMENSIONS:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_OUT_OF_BOUNDS:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_WL_BUFFER:
|
||||
return version >= 1;
|
||||
case ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_DEV_T_SIZE:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM_IS_VALID */
|
||||
|
||||
#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM
|
||||
enum zwp_linux_buffer_params_v1_flags {
|
||||
/**
|
||||
* contents are y-inverted
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_Y_INVERT = 1,
|
||||
/**
|
||||
* content is interlaced
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_INTERLACED = 2,
|
||||
/**
|
||||
* bottom field first
|
||||
*/
|
||||
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_BOTTOM_FIRST = 4,
|
||||
};
|
||||
#endif /* ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM */
|
||||
|
||||
#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM_IS_VALID
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
* Validate a zwp_linux_buffer_params_v1 flags value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwp_linux_buffer_params_v1_flags
|
||||
*/
|
||||
static inline bool
|
||||
zwp_linux_buffer_params_v1_flags_is_valid(uint32_t value, uint32_t version) {
|
||||
uint32_t valid = 0;
|
||||
if (version >= 1)
|
||||
valid |= ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_Y_INVERT;
|
||||
if (version >= 1)
|
||||
valid |= ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_INTERLACED;
|
||||
if (version >= 1)
|
||||
valid |= ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_BOTTOM_FIRST;
|
||||
return (value & ~valid) == 0;
|
||||
}
|
||||
#endif /* ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
* @struct zwp_linux_buffer_params_v1_interface
|
||||
*/
|
||||
struct zwp_linux_buffer_params_v1_interface {
|
||||
/**
|
||||
* delete this object, used or not
|
||||
*
|
||||
* Cleans up the temporary data sent to the server for
|
||||
* dmabuf-based wl_buffer creation.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* add a dmabuf to the temporary set
|
||||
*
|
||||
* This request adds one dmabuf to the set in this
|
||||
* zwp_linux_buffer_params_v1.
|
||||
*
|
||||
* The 64-bit unsigned value combined from modifier_hi and
|
||||
* modifier_lo is the dmabuf layout modifier. DRM AddFB2 ioctl
|
||||
* calls this the fb modifier, which is defined in drm_mode.h of
|
||||
* Linux UAPI. This is an opaque token. Drivers use this token to
|
||||
* express tiling, compression, etc. driver-specific modifications
|
||||
* to the base format defined by the DRM fourcc code.
|
||||
*
|
||||
* Starting from version 4, the invalid_format protocol error is
|
||||
* sent if the format + modifier pair was not advertised as
|
||||
* supported.
|
||||
*
|
||||
* Starting from version 5, the invalid_format protocol error is
|
||||
* sent if all planes don't use the same modifier.
|
||||
*
|
||||
* This request raises the PLANE_IDX error if plane_idx is too
|
||||
* large. The error PLANE_SET is raised if attempting to set a
|
||||
* plane that was already set.
|
||||
* @param fd dmabuf fd
|
||||
* @param plane_idx plane index
|
||||
* @param offset offset in bytes
|
||||
* @param stride stride in bytes
|
||||
* @param modifier_hi high 32 bits of layout modifier
|
||||
* @param modifier_lo low 32 bits of layout modifier
|
||||
*/
|
||||
void (*add)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
int32_t fd,
|
||||
uint32_t plane_idx,
|
||||
uint32_t offset,
|
||||
uint32_t stride,
|
||||
uint32_t modifier_hi,
|
||||
uint32_t modifier_lo);
|
||||
/**
|
||||
* create a wl_buffer from the given dmabufs
|
||||
*
|
||||
* This asks for creation of a wl_buffer from the added dmabuf
|
||||
* buffers. The wl_buffer is not created immediately but returned
|
||||
* via the 'created' event if the dmabuf sharing succeeds. The
|
||||
* sharing may fail at runtime for reasons a client cannot predict,
|
||||
* in which case the 'failed' event is triggered.
|
||||
*
|
||||
* The 'format' argument is a DRM_FORMAT code, as defined by the
|
||||
* libdrm's drm_fourcc.h. The Linux kernel's DRM sub-system is the
|
||||
* authoritative source on how the format codes should work.
|
||||
*
|
||||
* The 'flags' is a bitfield of the flags defined in enum "flags".
|
||||
* 'y_invert' means that the image needs to be y-flipped.
|
||||
*
|
||||
* Flag 'interlaced' means that the frame in the buffer is not
|
||||
* progressive as usual, but interlaced. An interlaced buffer as
|
||||
* supported here must always contain both top and bottom fields.
|
||||
* The top field always begins on the first pixel row. The temporal
|
||||
* ordering between the two fields is top field first, unless
|
||||
* 'bottom_first' is specified. It is undefined whether
|
||||
* 'bottom_first' is ignored if 'interlaced' is not set.
|
||||
*
|
||||
* This protocol does not convey any information about field rate,
|
||||
* duration, or timing, other than the relative ordering between
|
||||
* the two fields in one buffer. A compositor may have to estimate
|
||||
* the intended field rate from the incoming buffer rate. It is
|
||||
* undefined whether the time of receiving wl_surface.commit with a
|
||||
* new buffer attached, applying the wl_surface state,
|
||||
* wl_surface.frame callback trigger, presentation, or any other
|
||||
* point in the compositor cycle is used to measure the frame or
|
||||
* field times. There is no support for detecting missed or late
|
||||
* frames/fields/buffers either, and there is no support whatsoever
|
||||
* for cooperating with interlaced compositor output.
|
||||
*
|
||||
* The composited image quality resulting from the use of
|
||||
* interlaced buffers is explicitly undefined. A compositor may use
|
||||
* elaborate hardware features or software to deinterlace and
|
||||
* create progressive output frames from a sequence of interlaced
|
||||
* input buffers, or it may produce substandard image quality.
|
||||
* However, compositors that cannot guarantee reasonable image
|
||||
* quality in all cases are recommended to just reject all
|
||||
* interlaced buffers.
|
||||
*
|
||||
* Any argument errors, including non-positive width or height,
|
||||
* mismatch between the number of planes and the format, bad
|
||||
* format, bad offset or stride, may be indicated by fatal protocol
|
||||
* errors: INCOMPLETE, INVALID_FORMAT, INVALID_DIMENSIONS,
|
||||
* OUT_OF_BOUNDS.
|
||||
*
|
||||
* Dmabuf import errors in the server that are not obvious client
|
||||
* bugs are returned via the 'failed' event as non-fatal. This
|
||||
* allows attempting dmabuf sharing and falling back in the client
|
||||
* if it fails.
|
||||
*
|
||||
* This request can be sent only once in the object's lifetime,
|
||||
* after which the only legal request is destroy. This object
|
||||
* should be destroyed after issuing a 'create' request. Attempting
|
||||
* to use this object after issuing 'create' raises the
|
||||
* ALREADY_USED protocol error.
|
||||
*
|
||||
* It is not mandatory to issue 'create'. If a client wants to
|
||||
* cancel the buffer creation, it can just destroy this object.
|
||||
* @param width base plane width in pixels
|
||||
* @param height base plane height in pixels
|
||||
* @param format DRM_FORMAT code
|
||||
* @param flags see enum flags
|
||||
*/
|
||||
void (*create)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
int32_t width,
|
||||
int32_t height,
|
||||
uint32_t format,
|
||||
uint32_t flags);
|
||||
/**
|
||||
* immediately create a wl_buffer from the given dmabufs
|
||||
*
|
||||
* This asks for immediate creation of a wl_buffer by importing
|
||||
* the added dmabufs.
|
||||
*
|
||||
* In case of import success, no event is sent from the server, and
|
||||
* the wl_buffer is ready to be used by the client.
|
||||
*
|
||||
* Upon import failure, either of the following may happen, as seen
|
||||
* fit by the implementation: - the client is terminated with one
|
||||
* of the following fatal protocol errors: - INCOMPLETE,
|
||||
* INVALID_FORMAT, INVALID_DIMENSIONS, OUT_OF_BOUNDS, in case of
|
||||
* argument errors such as mismatch between the number of planes
|
||||
* and the format, bad format, non-positive width or height, or bad
|
||||
* offset or stride. - INVALID_WL_BUFFER, in case the cause for
|
||||
* failure is unknown or platform specific. - the server creates an
|
||||
* invalid wl_buffer, marks it as failed and sends a 'failed' event
|
||||
* to the client. The result of using this invalid wl_buffer as an
|
||||
* argument in any request by the client is defined by the
|
||||
* compositor implementation.
|
||||
*
|
||||
* This takes the same arguments as a 'create' request, and obeys
|
||||
* the same restrictions.
|
||||
* @param buffer_id id for the newly created wl_buffer
|
||||
* @param width base plane width in pixels
|
||||
* @param height base plane height in pixels
|
||||
* @param format DRM_FORMAT code
|
||||
* @param flags see enum flags
|
||||
* @since 2
|
||||
*/
|
||||
void (*create_immed)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t buffer_id,
|
||||
int32_t width,
|
||||
int32_t height,
|
||||
uint32_t format,
|
||||
uint32_t flags);
|
||||
/**
|
||||
* set the target device of the wl_buffer
|
||||
*
|
||||
* Set the device the compositor should import the dmabufs to for
|
||||
* sampling in the next create or create_immed request.
|
||||
*
|
||||
* To avoid race conditions when the compositor removes a device
|
||||
* from the tranches, it is not a protocol error if the device
|
||||
* hasn't been advertised by the compositor in a tranche with the
|
||||
* sampling flag, but the import is likely to fail in that case.
|
||||
*
|
||||
* If the client doesn't know a suitable target device, it
|
||||
* shouldn't set one, and the compositor should attempt import on
|
||||
* all devices it supports.
|
||||
*
|
||||
* If the array is too small to contain a dev_t or larger than
|
||||
* required, the invalid_dev_t_size error will be emitted.
|
||||
* @param device device dev_t value
|
||||
* @since 6
|
||||
*/
|
||||
void (*set_sampling_device)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_array *device);
|
||||
};
|
||||
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATED 0
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_FAILED 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATED_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_FAILED_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_ADD_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATE_IMMED_SINCE_VERSION 2
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
*/
|
||||
#define ZWP_LINUX_BUFFER_PARAMS_V1_SET_SAMPLING_DEVICE_SINCE_VERSION 6
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
* Sends an created event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param buffer id for the the newly created wl_buffer
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_buffer_params_v1_send_created(struct wl_resource *resource_, struct wl_resource *buffer)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_BUFFER_PARAMS_V1_CREATED, buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_buffer_params_v1
|
||||
* Sends an failed event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_buffer_params_v1_send_failed(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_BUFFER_PARAMS_V1_FAILED);
|
||||
}
|
||||
|
||||
#ifndef ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM
|
||||
enum zwp_linux_dmabuf_feedback_v1_tranche_flags {
|
||||
/**
|
||||
* direct scan-out tranche
|
||||
*
|
||||
* The scanout flag is a hint that direct scan-out may be
|
||||
* attempted by the compositor on the target device if the client
|
||||
* appropriately allocates a buffer. How to allocate a buffer that
|
||||
* can be scanned out on the target device is
|
||||
* implementation-defined.
|
||||
* @since 4
|
||||
*/
|
||||
ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SCANOUT = 1,
|
||||
/**
|
||||
* sampling tranche
|
||||
*
|
||||
* The sampling flag describes that the compositor is able to
|
||||
* efficiently sample from buffers imported to the target device if
|
||||
* the client appropriately allocates a buffer. How to allocate a
|
||||
* buffer that can be efficiently sampled on the target device is
|
||||
* implementation defined.
|
||||
* @since 6
|
||||
*/
|
||||
ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SAMPLING = 2,
|
||||
};
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SCANOUT_SINCE_VERSION 4
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SAMPLING_SINCE_VERSION 6
|
||||
#endif /* ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM */
|
||||
|
||||
#ifndef ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM_IS_VALID
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Validate a zwp_linux_dmabuf_feedback_v1 tranche_flags value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwp_linux_dmabuf_feedback_v1_tranche_flags
|
||||
*/
|
||||
static inline bool
|
||||
zwp_linux_dmabuf_feedback_v1_tranche_flags_is_valid(uint32_t value, uint32_t version) {
|
||||
uint32_t valid = 0;
|
||||
if (version >= 4)
|
||||
valid |= ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SCANOUT;
|
||||
if (version >= 6)
|
||||
valid |= ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SAMPLING;
|
||||
return (value & ~valid) == 0;
|
||||
}
|
||||
#endif /* ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* @struct zwp_linux_dmabuf_feedback_v1_interface
|
||||
*/
|
||||
struct zwp_linux_dmabuf_feedback_v1_interface {
|
||||
/**
|
||||
* destroy the feedback object
|
||||
*
|
||||
* Using this request a client can tell the server that it is not
|
||||
* going to use the zwp_linux_dmabuf_feedback_v1 object anymore.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
};
|
||||
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_DONE 0
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_FORMAT_TABLE 1
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_MAIN_DEVICE 2
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_DONE 3
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_TARGET_DEVICE 4
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FORMATS 5
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS 6
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_DONE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_FORMAT_TABLE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_MAIN_DEVICE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_DONE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_TARGET_DEVICE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FORMATS_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
*/
|
||||
#define ZWP_LINUX_DMABUF_FEEDBACK_V1_DESTROY_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an done event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_done(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an format_table event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param fd table file descriptor
|
||||
* @param size table size, in bytes
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_format_table(struct wl_resource *resource_, int32_t fd, uint32_t size)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_FORMAT_TABLE, fd, size);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an main_device event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param device device dev_t value
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_main_device(struct wl_resource *resource_, struct wl_array *device)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_MAIN_DEVICE, device);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an tranche_done event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_tranche_done(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an tranche_target_device event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param device device dev_t value
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_tranche_target_device(struct wl_resource *resource_, struct wl_array *device)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_TARGET_DEVICE, device);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an tranche_formats event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param indices array of 16-bit indexes
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_tranche_formats(struct wl_resource *resource_, struct wl_array *indices)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FORMATS, indices);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_linux_dmabuf_feedback_v1
|
||||
* Sends an tranche_flags event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param flags tranche flags
|
||||
*/
|
||||
static inline void
|
||||
zwp_linux_dmabuf_feedback_v1_send_tranche_flags(struct wl_resource *resource_, uint32_t flags)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS, flags);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,109 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2014 Jonas Ådahl
|
||||
* Copyright © 2015 Red Hat Inc.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_pointer_interface;
|
||||
extern const struct wl_interface wl_region_interface;
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
extern const struct wl_interface zwp_confined_pointer_v1_interface;
|
||||
extern const struct wl_interface zwp_locked_pointer_v1_interface;
|
||||
|
||||
static const struct wl_interface *pointer_constraints_unstable_v1_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
&zwp_locked_pointer_v1_interface,
|
||||
&wl_surface_interface,
|
||||
&wl_pointer_interface,
|
||||
&wl_region_interface,
|
||||
NULL,
|
||||
&zwp_confined_pointer_v1_interface,
|
||||
&wl_surface_interface,
|
||||
&wl_pointer_interface,
|
||||
&wl_region_interface,
|
||||
NULL,
|
||||
&wl_region_interface,
|
||||
&wl_region_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_pointer_constraints_v1_requests[] = {
|
||||
{ "destroy", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
{ "lock_pointer", "noo?ou", pointer_constraints_unstable_v1_types + 2 },
|
||||
{ "confine_pointer", "noo?ou", pointer_constraints_unstable_v1_types + 7 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_pointer_constraints_v1_interface = {
|
||||
"zwp_pointer_constraints_v1", 1,
|
||||
3, zwp_pointer_constraints_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_locked_pointer_v1_requests[] = {
|
||||
{ "destroy", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
{ "set_cursor_position_hint", "ff", pointer_constraints_unstable_v1_types + 0 },
|
||||
{ "set_region", "?o", pointer_constraints_unstable_v1_types + 12 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_locked_pointer_v1_events[] = {
|
||||
{ "locked", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
{ "unlocked", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_locked_pointer_v1_interface = {
|
||||
"zwp_locked_pointer_v1", 1,
|
||||
3, zwp_locked_pointer_v1_requests,
|
||||
2, zwp_locked_pointer_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_confined_pointer_v1_requests[] = {
|
||||
{ "destroy", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
{ "set_region", "?o", pointer_constraints_unstable_v1_types + 13 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_confined_pointer_v1_events[] = {
|
||||
{ "confined", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
{ "unconfined", "", pointer_constraints_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_confined_pointer_v1_interface = {
|
||||
"zwp_confined_pointer_v1", 1,
|
||||
2, zwp_confined_pointer_v1_requests,
|
||||
2, zwp_confined_pointer_v1_events,
|
||||
};
|
||||
|
||||
+619
@@ -0,0 +1,619 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef POINTER_CONSTRAINTS_UNSTABLE_V1_SERVER_PROTOCOL_H
|
||||
#define POINTER_CONSTRAINTS_UNSTABLE_V1_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_pointer_constraints_unstable_v1 The pointer_constraints_unstable_v1 protocol
|
||||
* protocol for constraining pointer motions
|
||||
*
|
||||
* @section page_desc_pointer_constraints_unstable_v1 Description
|
||||
*
|
||||
* This protocol specifies a set of interfaces used for adding constraints to
|
||||
* the motion of a pointer. Possible constraints include confining pointer
|
||||
* motions to a given region, or locking it to its current position.
|
||||
*
|
||||
* In order to constrain the pointer, a client must first bind the global
|
||||
* interface "wp_pointer_constraints" which, if a compositor supports pointer
|
||||
* constraints, is exposed by the registry. Using the bound global object, the
|
||||
* client uses the request that corresponds to the type of constraint it wants
|
||||
* to make. See wp_pointer_constraints for more details.
|
||||
*
|
||||
* Warning! The protocol described in this file is experimental and backward
|
||||
* incompatible changes may be made. Backward compatible changes may be added
|
||||
* together with the corresponding interface version bump. Backward
|
||||
* incompatible changes are done by bumping the version number in the protocol
|
||||
* and interface names and resetting the interface version. Once the protocol
|
||||
* is to be declared stable, the 'z' prefix and the version number in the
|
||||
* protocol and interface names are removed and the interface version number is
|
||||
* reset.
|
||||
*
|
||||
* @section page_ifaces_pointer_constraints_unstable_v1 Interfaces
|
||||
* - @subpage page_iface_zwp_pointer_constraints_v1 - constrain the movement of a pointer
|
||||
* - @subpage page_iface_zwp_locked_pointer_v1 - receive relative pointer motion events
|
||||
* - @subpage page_iface_zwp_confined_pointer_v1 - confined pointer object
|
||||
* @section page_copyright_pointer_constraints_unstable_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright © 2014 Jonas Ådahl
|
||||
* Copyright © 2015 Red Hat Inc.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct wl_pointer;
|
||||
struct wl_region;
|
||||
struct wl_surface;
|
||||
struct zwp_confined_pointer_v1;
|
||||
struct zwp_locked_pointer_v1;
|
||||
struct zwp_pointer_constraints_v1;
|
||||
|
||||
#ifndef ZWP_POINTER_CONSTRAINTS_V1_INTERFACE
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_pointer_constraints_v1 zwp_pointer_constraints_v1
|
||||
* @section page_iface_zwp_pointer_constraints_v1_desc Description
|
||||
*
|
||||
* The global interface exposing pointer constraining functionality. It
|
||||
* exposes two requests: lock_pointer for locking the pointer to its
|
||||
* position, and confine_pointer for locking the pointer to a region.
|
||||
*
|
||||
* The lock_pointer and confine_pointer requests create the objects
|
||||
* wp_locked_pointer and wp_confined_pointer respectively, and the client can
|
||||
* use these objects to interact with the lock.
|
||||
*
|
||||
* For any surface, only one lock or confinement may be active across all
|
||||
* wl_pointer objects of the same seat. If a lock or confinement is requested
|
||||
* when another lock or confinement is active or requested on the same surface
|
||||
* and with any of the wl_pointer objects of the same seat, an
|
||||
* 'already_constrained' error will be raised.
|
||||
* @section page_iface_zwp_pointer_constraints_v1_api API
|
||||
* See @ref iface_zwp_pointer_constraints_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_pointer_constraints_v1 The zwp_pointer_constraints_v1 interface
|
||||
*
|
||||
* The global interface exposing pointer constraining functionality. It
|
||||
* exposes two requests: lock_pointer for locking the pointer to its
|
||||
* position, and confine_pointer for locking the pointer to a region.
|
||||
*
|
||||
* The lock_pointer and confine_pointer requests create the objects
|
||||
* wp_locked_pointer and wp_confined_pointer respectively, and the client can
|
||||
* use these objects to interact with the lock.
|
||||
*
|
||||
* For any surface, only one lock or confinement may be active across all
|
||||
* wl_pointer objects of the same seat. If a lock or confinement is requested
|
||||
* when another lock or confinement is active or requested on the same surface
|
||||
* and with any of the wl_pointer objects of the same seat, an
|
||||
* 'already_constrained' error will be raised.
|
||||
*/
|
||||
extern const struct wl_interface zwp_pointer_constraints_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWP_LOCKED_POINTER_V1_INTERFACE
|
||||
#define ZWP_LOCKED_POINTER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_locked_pointer_v1 zwp_locked_pointer_v1
|
||||
* @section page_iface_zwp_locked_pointer_v1_desc Description
|
||||
*
|
||||
* The wp_locked_pointer interface represents a locked pointer state.
|
||||
*
|
||||
* While the lock of this object is active, the wl_pointer objects of the
|
||||
* associated seat will not emit any wl_pointer.motion events.
|
||||
*
|
||||
* This object will send the event 'locked' when the lock is activated.
|
||||
* Whenever the lock is activated, it is guaranteed that the locked surface
|
||||
* will already have received pointer focus and that the pointer will be
|
||||
* within the region passed to the request creating this object.
|
||||
*
|
||||
* To unlock the pointer, send the destroy request. This will also destroy
|
||||
* the wp_locked_pointer object.
|
||||
*
|
||||
* If the compositor decides to unlock the pointer the unlocked event is
|
||||
* sent. See wp_locked_pointer.unlock for details.
|
||||
*
|
||||
* When unlocking, the compositor may warp the cursor position to the set
|
||||
* cursor position hint. If it does, it will not result in any relative
|
||||
* motion events emitted via wp_relative_pointer.
|
||||
*
|
||||
* If the surface the lock was requested on is destroyed and the lock is not
|
||||
* yet activated, the wp_locked_pointer object is now defunct and must be
|
||||
* destroyed.
|
||||
* @section page_iface_zwp_locked_pointer_v1_api API
|
||||
* See @ref iface_zwp_locked_pointer_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_locked_pointer_v1 The zwp_locked_pointer_v1 interface
|
||||
*
|
||||
* The wp_locked_pointer interface represents a locked pointer state.
|
||||
*
|
||||
* While the lock of this object is active, the wl_pointer objects of the
|
||||
* associated seat will not emit any wl_pointer.motion events.
|
||||
*
|
||||
* This object will send the event 'locked' when the lock is activated.
|
||||
* Whenever the lock is activated, it is guaranteed that the locked surface
|
||||
* will already have received pointer focus and that the pointer will be
|
||||
* within the region passed to the request creating this object.
|
||||
*
|
||||
* To unlock the pointer, send the destroy request. This will also destroy
|
||||
* the wp_locked_pointer object.
|
||||
*
|
||||
* If the compositor decides to unlock the pointer the unlocked event is
|
||||
* sent. See wp_locked_pointer.unlock for details.
|
||||
*
|
||||
* When unlocking, the compositor may warp the cursor position to the set
|
||||
* cursor position hint. If it does, it will not result in any relative
|
||||
* motion events emitted via wp_relative_pointer.
|
||||
*
|
||||
* If the surface the lock was requested on is destroyed and the lock is not
|
||||
* yet activated, the wp_locked_pointer object is now defunct and must be
|
||||
* destroyed.
|
||||
*/
|
||||
extern const struct wl_interface zwp_locked_pointer_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWP_CONFINED_POINTER_V1_INTERFACE
|
||||
#define ZWP_CONFINED_POINTER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_confined_pointer_v1 zwp_confined_pointer_v1
|
||||
* @section page_iface_zwp_confined_pointer_v1_desc Description
|
||||
*
|
||||
* The wp_confined_pointer interface represents a confined pointer state.
|
||||
*
|
||||
* This object will send the event 'confined' when the confinement is
|
||||
* activated. Whenever the confinement is activated, it is guaranteed that
|
||||
* the surface the pointer is confined to will already have received pointer
|
||||
* focus and that the pointer will be within the region passed to the request
|
||||
* creating this object. It is up to the compositor to decide whether this
|
||||
* requires some user interaction and if the pointer will warp to within the
|
||||
* passed region if outside.
|
||||
*
|
||||
* To unconfine the pointer, send the destroy request. This will also destroy
|
||||
* the wp_confined_pointer object.
|
||||
*
|
||||
* If the compositor decides to unconfine the pointer the unconfined event is
|
||||
* sent. The wp_confined_pointer object is at this point defunct and should
|
||||
* be destroyed.
|
||||
* @section page_iface_zwp_confined_pointer_v1_api API
|
||||
* See @ref iface_zwp_confined_pointer_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_confined_pointer_v1 The zwp_confined_pointer_v1 interface
|
||||
*
|
||||
* The wp_confined_pointer interface represents a confined pointer state.
|
||||
*
|
||||
* This object will send the event 'confined' when the confinement is
|
||||
* activated. Whenever the confinement is activated, it is guaranteed that
|
||||
* the surface the pointer is confined to will already have received pointer
|
||||
* focus and that the pointer will be within the region passed to the request
|
||||
* creating this object. It is up to the compositor to decide whether this
|
||||
* requires some user interaction and if the pointer will warp to within the
|
||||
* passed region if outside.
|
||||
*
|
||||
* To unconfine the pointer, send the destroy request. This will also destroy
|
||||
* the wp_confined_pointer object.
|
||||
*
|
||||
* If the compositor decides to unconfine the pointer the unconfined event is
|
||||
* sent. The wp_confined_pointer object is at this point defunct and should
|
||||
* be destroyed.
|
||||
*/
|
||||
extern const struct wl_interface zwp_confined_pointer_v1_interface;
|
||||
#endif
|
||||
|
||||
#ifndef ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
* wp_pointer_constraints error values
|
||||
*
|
||||
* These errors can be emitted in response to wp_pointer_constraints
|
||||
* requests.
|
||||
*/
|
||||
enum zwp_pointer_constraints_v1_error {
|
||||
/**
|
||||
* pointer constraint already requested on that surface
|
||||
*/
|
||||
ZWP_POINTER_CONSTRAINTS_V1_ERROR_ALREADY_CONSTRAINED = 1,
|
||||
};
|
||||
#endif /* ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM */
|
||||
|
||||
#ifndef ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM_IS_VALID
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
* Validate a zwp_pointer_constraints_v1 error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwp_pointer_constraints_v1_error
|
||||
*/
|
||||
static inline bool
|
||||
zwp_pointer_constraints_v1_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case ZWP_POINTER_CONSTRAINTS_V1_ERROR_ALREADY_CONSTRAINED:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM_IS_VALID */
|
||||
|
||||
#ifndef ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
* constraint lifetime
|
||||
*
|
||||
* These values represent different lifetime semantics. They are passed
|
||||
* as arguments to the factory requests to specify how the constraint
|
||||
* lifetimes should be managed.
|
||||
*/
|
||||
enum zwp_pointer_constraints_v1_lifetime {
|
||||
/**
|
||||
* the pointer constraint is defunct once deactivated
|
||||
*
|
||||
* A oneshot pointer constraint will never reactivate once it has
|
||||
* been deactivated. See the corresponding deactivation event
|
||||
* (wp_locked_pointer.unlocked and wp_confined_pointer.unconfined)
|
||||
* for details.
|
||||
*/
|
||||
ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT = 1,
|
||||
/**
|
||||
* the pointer constraint may reactivate
|
||||
*
|
||||
* A persistent pointer constraint may again reactivate once it
|
||||
* has been deactivated. See the corresponding deactivation event
|
||||
* (wp_locked_pointer.unlocked and wp_confined_pointer.unconfined)
|
||||
* for details.
|
||||
*/
|
||||
ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT = 2,
|
||||
};
|
||||
#endif /* ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM */
|
||||
|
||||
#ifndef ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM_IS_VALID
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
* Validate a zwp_pointer_constraints_v1 lifetime value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwp_pointer_constraints_v1_lifetime
|
||||
*/
|
||||
static inline bool
|
||||
zwp_pointer_constraints_v1_lifetime_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT:
|
||||
return version >= 1;
|
||||
case ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
* @struct zwp_pointer_constraints_v1_interface
|
||||
*/
|
||||
struct zwp_pointer_constraints_v1_interface {
|
||||
/**
|
||||
* destroy the pointer constraints manager object
|
||||
*
|
||||
* Used by the client to notify the server that it will no longer
|
||||
* use this pointer constraints object.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* lock pointer to a position
|
||||
*
|
||||
* The lock_pointer request lets the client request to disable
|
||||
* movements of the virtual pointer (i.e. the cursor), effectively
|
||||
* locking the pointer to a position. This request may not take
|
||||
* effect immediately; in the future, when the compositor deems
|
||||
* implementation-specific constraints are satisfied, the pointer
|
||||
* lock will be activated and the compositor sends a locked event.
|
||||
*
|
||||
* The protocol provides no guarantee that the constraints are ever
|
||||
* satisfied, and does not require the compositor to send an error
|
||||
* if the constraints cannot ever be satisfied. It is thus possible
|
||||
* to request a lock that will never activate.
|
||||
*
|
||||
* There may not be another pointer constraint of any kind
|
||||
* requested or active on the surface for any of the wl_pointer
|
||||
* objects of the seat of the passed pointer when requesting a
|
||||
* lock. If there is, an error will be raised. See general pointer
|
||||
* lock documentation for more details.
|
||||
*
|
||||
* The intersection of the region passed with this request and the
|
||||
* input region of the surface is used to determine where the
|
||||
* pointer must be in order for the lock to activate. It is up to
|
||||
* the compositor whether to warp the pointer or require some kind
|
||||
* of user interaction for the lock to activate. If the region is
|
||||
* null the surface input region is used.
|
||||
*
|
||||
* A surface may receive pointer focus without the lock being
|
||||
* activated.
|
||||
*
|
||||
* The request creates a new object wp_locked_pointer which is used
|
||||
* to interact with the lock as well as receive updates about its
|
||||
* state. See the the description of wp_locked_pointer for further
|
||||
* information.
|
||||
*
|
||||
* Note that while a pointer is locked, the wl_pointer objects of
|
||||
* the corresponding seat will not emit any wl_pointer.motion
|
||||
* events, but relative motion events will still be emitted via
|
||||
* wp_relative_pointer objects of the same seat. wl_pointer.axis
|
||||
* and wl_pointer.button events are unaffected.
|
||||
* @param surface surface to lock pointer to
|
||||
* @param pointer the pointer that should be locked
|
||||
* @param region region of surface
|
||||
* @param lifetime lock lifetime
|
||||
*/
|
||||
void (*lock_pointer)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id,
|
||||
struct wl_resource *surface,
|
||||
struct wl_resource *pointer,
|
||||
struct wl_resource *region,
|
||||
uint32_t lifetime);
|
||||
/**
|
||||
* confine pointer to a region
|
||||
*
|
||||
* The confine_pointer request lets the client request to confine
|
||||
* the pointer cursor to a given region. This request may not take
|
||||
* effect immediately; in the future, when the compositor deems
|
||||
* implementation- specific constraints are satisfied, the pointer
|
||||
* confinement will be activated and the compositor sends a
|
||||
* confined event.
|
||||
*
|
||||
* The intersection of the region passed with this request and the
|
||||
* input region of the surface is used to determine where the
|
||||
* pointer must be in order for the confinement to activate. It is
|
||||
* up to the compositor whether to warp the pointer or require some
|
||||
* kind of user interaction for the confinement to activate. If the
|
||||
* region is null the surface input region is used.
|
||||
*
|
||||
* The request will create a new object wp_confined_pointer which
|
||||
* is used to interact with the confinement as well as receive
|
||||
* updates about its state. See the the description of
|
||||
* wp_confined_pointer for further information.
|
||||
* @param surface surface to lock pointer to
|
||||
* @param pointer the pointer that should be confined
|
||||
* @param region region of surface
|
||||
* @param lifetime confinement lifetime
|
||||
*/
|
||||
void (*confine_pointer)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id,
|
||||
struct wl_resource *surface,
|
||||
struct wl_resource *pointer,
|
||||
struct wl_resource *region,
|
||||
uint32_t lifetime);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
*/
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
*/
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_pointer_constraints_v1
|
||||
*/
|
||||
#define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
* @struct zwp_locked_pointer_v1_interface
|
||||
*/
|
||||
struct zwp_locked_pointer_v1_interface {
|
||||
/**
|
||||
* destroy the locked pointer object
|
||||
*
|
||||
* Destroy the locked pointer object. If applicable, the
|
||||
* compositor will unlock the pointer.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* set the pointer cursor position hint
|
||||
*
|
||||
* Set the cursor position hint relative to the top left corner
|
||||
* of the surface.
|
||||
*
|
||||
* If the client is drawing its own cursor, it should update the
|
||||
* position hint to the position of its own cursor. A compositor
|
||||
* may use this information to warp the pointer upon unlock in
|
||||
* order to avoid pointer jumps.
|
||||
*
|
||||
* The cursor position hint is double buffered. The new hint will
|
||||
* only take effect when the associated surface gets it pending
|
||||
* state applied. See wl_surface.commit for details.
|
||||
* @param surface_x surface-local x coordinate
|
||||
* @param surface_y surface-local y coordinate
|
||||
*/
|
||||
void (*set_cursor_position_hint)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
wl_fixed_t surface_x,
|
||||
wl_fixed_t surface_y);
|
||||
/**
|
||||
* set a new lock region
|
||||
*
|
||||
* Set a new region used to lock the pointer.
|
||||
*
|
||||
* The new lock region is double-buffered. The new lock region will
|
||||
* only take effect when the associated surface gets its pending
|
||||
* state applied. See wl_surface.commit for details.
|
||||
*
|
||||
* For details about the lock region, see wp_locked_pointer.
|
||||
* @param region region of surface
|
||||
*/
|
||||
void (*set_region)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *region);
|
||||
};
|
||||
|
||||
#define ZWP_LOCKED_POINTER_V1_LOCKED 0
|
||||
#define ZWP_LOCKED_POINTER_V1_UNLOCKED 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
*/
|
||||
#define ZWP_LOCKED_POINTER_V1_LOCKED_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
*/
|
||||
#define ZWP_LOCKED_POINTER_V1_UNLOCKED_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
*/
|
||||
#define ZWP_LOCKED_POINTER_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
*/
|
||||
#define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
*/
|
||||
#define ZWP_LOCKED_POINTER_V1_SET_REGION_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
* Sends an locked event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_locked_pointer_v1_send_locked(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LOCKED_POINTER_V1_LOCKED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_locked_pointer_v1
|
||||
* Sends an unlocked event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_locked_pointer_v1_send_unlocked(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_LOCKED_POINTER_V1_UNLOCKED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
* @struct zwp_confined_pointer_v1_interface
|
||||
*/
|
||||
struct zwp_confined_pointer_v1_interface {
|
||||
/**
|
||||
* destroy the confined pointer object
|
||||
*
|
||||
* Destroy the confined pointer object. If applicable, the
|
||||
* compositor will unconfine the pointer.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* set a new confine region
|
||||
*
|
||||
* Set a new region used to confine the pointer.
|
||||
*
|
||||
* The new confine region is double-buffered. The new confine
|
||||
* region will only take effect when the associated surface gets
|
||||
* its pending state applied. See wl_surface.commit for details.
|
||||
*
|
||||
* If the confinement is active when the new confinement region is
|
||||
* applied and the pointer ends up outside of newly applied region,
|
||||
* the pointer may warped to a position within the new confinement
|
||||
* region. If warped, a wl_pointer.motion event will be emitted,
|
||||
* but no wp_relative_pointer.relative_motion event.
|
||||
*
|
||||
* The compositor may also, instead of using the new region,
|
||||
* unconfine the pointer.
|
||||
*
|
||||
* For details about the confine region, see wp_confined_pointer.
|
||||
* @param region region of surface
|
||||
*/
|
||||
void (*set_region)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *region);
|
||||
};
|
||||
|
||||
#define ZWP_CONFINED_POINTER_V1_CONFINED 0
|
||||
#define ZWP_CONFINED_POINTER_V1_UNCONFINED 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
*/
|
||||
#define ZWP_CONFINED_POINTER_V1_CONFINED_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
*/
|
||||
#define ZWP_CONFINED_POINTER_V1_UNCONFINED_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
*/
|
||||
#define ZWP_CONFINED_POINTER_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
*/
|
||||
#define ZWP_CONFINED_POINTER_V1_SET_REGION_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
* Sends an confined event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_confined_pointer_v1_send_confined(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_CONFINED_POINTER_V1_CONFINED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_confined_pointer_v1
|
||||
* Sends an unconfined event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwp_confined_pointer_v1_send_unconfined(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_CONFINED_POINTER_V1_UNCONFINED);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,84 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2013-2014 Collabora, Ltd.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_output_interface;
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
extern const struct wl_interface wp_presentation_feedback_interface;
|
||||
|
||||
static const struct wl_interface *presentation_time_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&wl_surface_interface,
|
||||
&wp_presentation_feedback_interface,
|
||||
&wl_output_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_presentation_requests[] = {
|
||||
{ "destroy", "", presentation_time_types + 0 },
|
||||
{ "feedback", "on", presentation_time_types + 7 },
|
||||
};
|
||||
|
||||
static const struct wl_message wp_presentation_events[] = {
|
||||
{ "clock_id", "u", presentation_time_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_presentation_interface = {
|
||||
"wp_presentation", 2,
|
||||
2, wp_presentation_requests,
|
||||
1, wp_presentation_events,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_presentation_feedback_events[] = {
|
||||
{ "sync_output", "o", presentation_time_types + 9 },
|
||||
{ "presented", "uuuuuuu", presentation_time_types + 0 },
|
||||
{ "discarded", "", presentation_time_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_presentation_feedback_interface = {
|
||||
"wp_presentation_feedback", 2,
|
||||
0, NULL,
|
||||
3, wp_presentation_feedback_events,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,395 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef PRESENTATION_TIME_SERVER_PROTOCOL_H
|
||||
#define PRESENTATION_TIME_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_presentation_time The presentation_time protocol
|
||||
* @section page_ifaces_presentation_time Interfaces
|
||||
* - @subpage page_iface_wp_presentation - timed presentation related wl_surface requests
|
||||
* - @subpage page_iface_wp_presentation_feedback - presentation time feedback event
|
||||
* @section page_copyright_presentation_time Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright © 2013-2014 Collabora, Ltd.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct wl_output;
|
||||
struct wl_surface;
|
||||
struct wp_presentation;
|
||||
struct wp_presentation_feedback;
|
||||
|
||||
#ifndef WP_PRESENTATION_INTERFACE
|
||||
#define WP_PRESENTATION_INTERFACE
|
||||
/**
|
||||
* @page page_iface_wp_presentation wp_presentation
|
||||
* @section page_iface_wp_presentation_desc Description
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* The main feature of this interface is accurate presentation
|
||||
* timing feedback to ensure smooth video playback while maintaining
|
||||
* audio/video synchronization. Some features use the concept of a
|
||||
* presentation clock, which is defined in the
|
||||
* presentation.clock_id event.
|
||||
*
|
||||
* A content update for a wl_surface is submitted by a
|
||||
* wl_surface.commit request. Request 'feedback' associates with
|
||||
* the wl_surface.commit and provides feedback on the content
|
||||
* update, particularly the final realized presentation time.
|
||||
*
|
||||
*
|
||||
*
|
||||
* When the final realized presentation time is available, e.g.
|
||||
* after a framebuffer flip completes, the requested
|
||||
* presentation_feedback.presented events are sent. The final
|
||||
* presentation time can differ from the compositor's predicted
|
||||
* display update time and the update's target time, especially
|
||||
* when the compositor misses its target vertical blanking period.
|
||||
* @section page_iface_wp_presentation_api API
|
||||
* See @ref iface_wp_presentation.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_wp_presentation The wp_presentation interface
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* The main feature of this interface is accurate presentation
|
||||
* timing feedback to ensure smooth video playback while maintaining
|
||||
* audio/video synchronization. Some features use the concept of a
|
||||
* presentation clock, which is defined in the
|
||||
* presentation.clock_id event.
|
||||
*
|
||||
* A content update for a wl_surface is submitted by a
|
||||
* wl_surface.commit request. Request 'feedback' associates with
|
||||
* the wl_surface.commit and provides feedback on the content
|
||||
* update, particularly the final realized presentation time.
|
||||
*
|
||||
*
|
||||
*
|
||||
* When the final realized presentation time is available, e.g.
|
||||
* after a framebuffer flip completes, the requested
|
||||
* presentation_feedback.presented events are sent. The final
|
||||
* presentation time can differ from the compositor's predicted
|
||||
* display update time and the update's target time, especially
|
||||
* when the compositor misses its target vertical blanking period.
|
||||
*/
|
||||
extern const struct wl_interface wp_presentation_interface;
|
||||
#endif
|
||||
#ifndef WP_PRESENTATION_FEEDBACK_INTERFACE
|
||||
#define WP_PRESENTATION_FEEDBACK_INTERFACE
|
||||
/**
|
||||
* @page page_iface_wp_presentation_feedback wp_presentation_feedback
|
||||
* @section page_iface_wp_presentation_feedback_desc Description
|
||||
*
|
||||
* A presentation_feedback object returns an indication that a
|
||||
* wl_surface content update has become visible to the user.
|
||||
* One object corresponds to one content update submission
|
||||
* (wl_surface.commit). There are two possible outcomes: the
|
||||
* content update is presented to the user, and a presentation
|
||||
* timestamp delivered; or, the user did not see the content
|
||||
* update because it was superseded or its surface destroyed,
|
||||
* and the content update is discarded.
|
||||
*
|
||||
* Once a presentation_feedback object has delivered a 'presented'
|
||||
* or 'discarded' event it is automatically destroyed.
|
||||
* @section page_iface_wp_presentation_feedback_api API
|
||||
* See @ref iface_wp_presentation_feedback.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_wp_presentation_feedback The wp_presentation_feedback interface
|
||||
*
|
||||
* A presentation_feedback object returns an indication that a
|
||||
* wl_surface content update has become visible to the user.
|
||||
* One object corresponds to one content update submission
|
||||
* (wl_surface.commit). There are two possible outcomes: the
|
||||
* content update is presented to the user, and a presentation
|
||||
* timestamp delivered; or, the user did not see the content
|
||||
* update because it was superseded or its surface destroyed,
|
||||
* and the content update is discarded.
|
||||
*
|
||||
* Once a presentation_feedback object has delivered a 'presented'
|
||||
* or 'discarded' event it is automatically destroyed.
|
||||
*/
|
||||
extern const struct wl_interface wp_presentation_feedback_interface;
|
||||
#endif
|
||||
|
||||
#ifndef WP_PRESENTATION_ERROR_ENUM
|
||||
#define WP_PRESENTATION_ERROR_ENUM
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
* fatal presentation errors
|
||||
*
|
||||
* These fatal protocol errors may be emitted in response to
|
||||
* illegal presentation requests.
|
||||
*/
|
||||
enum wp_presentation_error {
|
||||
/**
|
||||
* invalid value in tv_nsec
|
||||
*/
|
||||
WP_PRESENTATION_ERROR_INVALID_TIMESTAMP = 0,
|
||||
/**
|
||||
* invalid flag
|
||||
*/
|
||||
WP_PRESENTATION_ERROR_INVALID_FLAG = 1,
|
||||
};
|
||||
#endif /* WP_PRESENTATION_ERROR_ENUM */
|
||||
|
||||
#ifndef WP_PRESENTATION_ERROR_ENUM_IS_VALID
|
||||
#define WP_PRESENTATION_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
* Validate a wp_presentation error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref wp_presentation_error
|
||||
*/
|
||||
static inline bool
|
||||
wp_presentation_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case WP_PRESENTATION_ERROR_INVALID_TIMESTAMP:
|
||||
return version >= 1;
|
||||
case WP_PRESENTATION_ERROR_INVALID_FLAG:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* WP_PRESENTATION_ERROR_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
* @struct wp_presentation_interface
|
||||
*/
|
||||
struct wp_presentation_interface {
|
||||
/**
|
||||
* unbind from the presentation interface
|
||||
*
|
||||
* Informs the server that the client will no longer be using
|
||||
* this protocol object. Existing objects created by this object
|
||||
* are not affected.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* request presentation feedback information
|
||||
*
|
||||
* Request presentation feedback for the current content
|
||||
* submission on the given surface. This creates a new
|
||||
* presentation_feedback object, which will deliver the feedback
|
||||
* information once. If multiple presentation_feedback objects are
|
||||
* created for the same submission, they will all deliver the same
|
||||
* information.
|
||||
*
|
||||
* For details on what information is returned, see the
|
||||
* presentation_feedback interface.
|
||||
* @param surface target surface
|
||||
* @param callback new feedback object
|
||||
*/
|
||||
void (*feedback)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *surface,
|
||||
uint32_t callback);
|
||||
};
|
||||
|
||||
#define WP_PRESENTATION_CLOCK_ID 0
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
*/
|
||||
#define WP_PRESENTATION_CLOCK_ID_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
*/
|
||||
#define WP_PRESENTATION_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
*/
|
||||
#define WP_PRESENTATION_FEEDBACK_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation
|
||||
* Sends an clock_id event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param clk_id platform clock identifier
|
||||
*/
|
||||
static inline void
|
||||
wp_presentation_send_clock_id(struct wl_resource *resource_, uint32_t clk_id)
|
||||
{
|
||||
wl_resource_post_event(resource_, WP_PRESENTATION_CLOCK_ID, clk_id);
|
||||
}
|
||||
|
||||
#ifndef WP_PRESENTATION_FEEDBACK_KIND_ENUM
|
||||
#define WP_PRESENTATION_FEEDBACK_KIND_ENUM
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
* bitmask of flags in presented event
|
||||
*
|
||||
* These flags provide information about how the presentation of
|
||||
* the related content update was done. The intent is to help
|
||||
* clients assess the reliability of the feedback and the visual
|
||||
* quality with respect to possible tearing and timings.
|
||||
*/
|
||||
enum wp_presentation_feedback_kind {
|
||||
/**
|
||||
* presentation was vsync'd
|
||||
*
|
||||
* The presentation was synchronized to the "vertical retrace" by
|
||||
* the display hardware such that tearing does not happen. Relying
|
||||
* on software scheduling is not acceptable for this flag. If
|
||||
* presentation is done by a copy to the active frontbuffer, then
|
||||
* it must guarantee that tearing cannot happen.
|
||||
*/
|
||||
WP_PRESENTATION_FEEDBACK_KIND_VSYNC = 0x1,
|
||||
/**
|
||||
* hardware provided the presentation timestamp
|
||||
*
|
||||
* The display hardware provided measurements that the hardware
|
||||
* driver converted into a presentation timestamp. Sampling a clock
|
||||
* in software is not acceptable for this flag.
|
||||
*/
|
||||
WP_PRESENTATION_FEEDBACK_KIND_HW_CLOCK = 0x2,
|
||||
/**
|
||||
* hardware signalled the start of the presentation
|
||||
*
|
||||
* The display hardware signalled that it started using the new
|
||||
* image content. The opposite of this is e.g. a timer being used
|
||||
* to guess when the display hardware has switched to the new image
|
||||
* content.
|
||||
*/
|
||||
WP_PRESENTATION_FEEDBACK_KIND_HW_COMPLETION = 0x4,
|
||||
/**
|
||||
* presentation was done zero-copy
|
||||
*
|
||||
* The presentation of this update was done zero-copy. This means
|
||||
* the buffer from the client was given to display hardware as is,
|
||||
* without copying it. Compositing with OpenGL counts as copying,
|
||||
* even if textured directly from the client buffer. Possible
|
||||
* zero-copy cases include direct scanout of a fullscreen surface
|
||||
* and a surface on a hardware overlay.
|
||||
*/
|
||||
WP_PRESENTATION_FEEDBACK_KIND_ZERO_COPY = 0x8,
|
||||
};
|
||||
#endif /* WP_PRESENTATION_FEEDBACK_KIND_ENUM */
|
||||
|
||||
#ifndef WP_PRESENTATION_FEEDBACK_KIND_ENUM_IS_VALID
|
||||
#define WP_PRESENTATION_FEEDBACK_KIND_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
* Validate a wp_presentation_feedback kind value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref wp_presentation_feedback_kind
|
||||
*/
|
||||
static inline bool
|
||||
wp_presentation_feedback_kind_is_valid(uint32_t value, uint32_t version) {
|
||||
uint32_t valid = 0;
|
||||
if (version >= 1)
|
||||
valid |= WP_PRESENTATION_FEEDBACK_KIND_VSYNC;
|
||||
if (version >= 1)
|
||||
valid |= WP_PRESENTATION_FEEDBACK_KIND_HW_CLOCK;
|
||||
if (version >= 1)
|
||||
valid |= WP_PRESENTATION_FEEDBACK_KIND_HW_COMPLETION;
|
||||
if (version >= 1)
|
||||
valid |= WP_PRESENTATION_FEEDBACK_KIND_ZERO_COPY;
|
||||
return (value & ~valid) == 0;
|
||||
}
|
||||
#endif /* WP_PRESENTATION_FEEDBACK_KIND_ENUM_IS_VALID */
|
||||
|
||||
#define WP_PRESENTATION_FEEDBACK_SYNC_OUTPUT 0
|
||||
#define WP_PRESENTATION_FEEDBACK_PRESENTED 1
|
||||
#define WP_PRESENTATION_FEEDBACK_DISCARDED 2
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
*/
|
||||
#define WP_PRESENTATION_FEEDBACK_SYNC_OUTPUT_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
*/
|
||||
#define WP_PRESENTATION_FEEDBACK_PRESENTED_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
*/
|
||||
#define WP_PRESENTATION_FEEDBACK_DISCARDED_SINCE_VERSION 1
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
* Sends an sync_output event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param output presentation output
|
||||
*/
|
||||
static inline void
|
||||
wp_presentation_feedback_send_sync_output(struct wl_resource *resource_, struct wl_resource *output)
|
||||
{
|
||||
wl_resource_post_event(resource_, WP_PRESENTATION_FEEDBACK_SYNC_OUTPUT, output);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
* Sends an presented event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param tv_sec_hi high 32 bits of the seconds part of the presentation timestamp
|
||||
* @param tv_sec_lo low 32 bits of the seconds part of the presentation timestamp
|
||||
* @param tv_nsec nanoseconds part of the presentation timestamp
|
||||
* @param refresh nanoseconds till next refresh
|
||||
* @param seq_hi high 32 bits of refresh counter
|
||||
* @param seq_lo low 32 bits of refresh counter
|
||||
* @param flags combination of 'kind' values
|
||||
*/
|
||||
static inline void
|
||||
wp_presentation_feedback_send_presented(struct wl_resource *resource_, uint32_t tv_sec_hi, uint32_t tv_sec_lo, uint32_t tv_nsec, uint32_t refresh, uint32_t seq_hi, uint32_t seq_lo, uint32_t flags)
|
||||
{
|
||||
wl_resource_post_event(resource_, WP_PRESENTATION_FEEDBACK_PRESENTED, tv_sec_hi, tv_sec_lo, tv_nsec, refresh, seq_hi, seq_lo, flags);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_presentation_feedback
|
||||
* Sends an discarded event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
wp_presentation_feedback_send_discarded(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, WP_PRESENTATION_FEEDBACK_DISCARDED);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2014 Jonas Ådahl
|
||||
* Copyright © 2015 Red Hat Inc.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_pointer_interface;
|
||||
extern const struct wl_interface zwp_relative_pointer_v1_interface;
|
||||
|
||||
static const struct wl_interface *relative_pointer_unstable_v1_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&zwp_relative_pointer_v1_interface,
|
||||
&wl_pointer_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_relative_pointer_manager_v1_requests[] = {
|
||||
{ "destroy", "", relative_pointer_unstable_v1_types + 0 },
|
||||
{ "get_relative_pointer", "no", relative_pointer_unstable_v1_types + 6 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_relative_pointer_manager_v1_interface = {
|
||||
"zwp_relative_pointer_manager_v1", 1,
|
||||
2, zwp_relative_pointer_manager_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_relative_pointer_v1_requests[] = {
|
||||
{ "destroy", "", relative_pointer_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_relative_pointer_v1_events[] = {
|
||||
{ "relative_motion", "uuffff", relative_pointer_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_relative_pointer_v1_interface = {
|
||||
"zwp_relative_pointer_v1", 1,
|
||||
1, zwp_relative_pointer_v1_requests,
|
||||
1, zwp_relative_pointer_v1_events,
|
||||
};
|
||||
|
||||
+204
@@ -0,0 +1,204 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef RELATIVE_POINTER_UNSTABLE_V1_SERVER_PROTOCOL_H
|
||||
#define RELATIVE_POINTER_UNSTABLE_V1_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_relative_pointer_unstable_v1 The relative_pointer_unstable_v1 protocol
|
||||
* protocol for relative pointer motion events
|
||||
*
|
||||
* @section page_desc_relative_pointer_unstable_v1 Description
|
||||
*
|
||||
* This protocol specifies a set of interfaces used for making clients able to
|
||||
* receive relative pointer events not obstructed by barriers (such as the
|
||||
* monitor edge or other pointer barriers).
|
||||
*
|
||||
* To start receiving relative pointer events, a client must first bind the
|
||||
* global interface "wp_relative_pointer_manager" which, if a compositor
|
||||
* supports relative pointer motion events, is exposed by the registry. After
|
||||
* having created the relative pointer manager proxy object, the client uses
|
||||
* it to create the actual relative pointer object using the
|
||||
* "get_relative_pointer" request given a wl_pointer. The relative pointer
|
||||
* motion events will then, when applicable, be transmitted via the proxy of
|
||||
* the newly created relative pointer object. See the documentation of the
|
||||
* relative pointer interface for more details.
|
||||
*
|
||||
* Warning! The protocol described in this file is experimental and backward
|
||||
* incompatible changes may be made. Backward compatible changes may be added
|
||||
* together with the corresponding interface version bump. Backward
|
||||
* incompatible changes are done by bumping the version number in the protocol
|
||||
* and interface names and resetting the interface version. Once the protocol
|
||||
* is to be declared stable, the 'z' prefix and the version number in the
|
||||
* protocol and interface names are removed and the interface version number is
|
||||
* reset.
|
||||
*
|
||||
* @section page_ifaces_relative_pointer_unstable_v1 Interfaces
|
||||
* - @subpage page_iface_zwp_relative_pointer_manager_v1 - get relative pointer objects
|
||||
* - @subpage page_iface_zwp_relative_pointer_v1 - relative pointer object
|
||||
* @section page_copyright_relative_pointer_unstable_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright © 2014 Jonas Ådahl
|
||||
* Copyright © 2015 Red Hat Inc.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct wl_pointer;
|
||||
struct zwp_relative_pointer_manager_v1;
|
||||
struct zwp_relative_pointer_v1;
|
||||
|
||||
#ifndef ZWP_RELATIVE_POINTER_MANAGER_V1_INTERFACE
|
||||
#define ZWP_RELATIVE_POINTER_MANAGER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_relative_pointer_manager_v1 zwp_relative_pointer_manager_v1
|
||||
* @section page_iface_zwp_relative_pointer_manager_v1_desc Description
|
||||
*
|
||||
* A global interface used for getting the relative pointer object for a
|
||||
* given pointer.
|
||||
* @section page_iface_zwp_relative_pointer_manager_v1_api API
|
||||
* See @ref iface_zwp_relative_pointer_manager_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_relative_pointer_manager_v1 The zwp_relative_pointer_manager_v1 interface
|
||||
*
|
||||
* A global interface used for getting the relative pointer object for a
|
||||
* given pointer.
|
||||
*/
|
||||
extern const struct wl_interface zwp_relative_pointer_manager_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWP_RELATIVE_POINTER_V1_INTERFACE
|
||||
#define ZWP_RELATIVE_POINTER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwp_relative_pointer_v1 zwp_relative_pointer_v1
|
||||
* @section page_iface_zwp_relative_pointer_v1_desc Description
|
||||
*
|
||||
* A wp_relative_pointer object is an extension to the wl_pointer interface
|
||||
* used for emitting relative pointer events. It shares the same focus as
|
||||
* wl_pointer objects of the same seat and will only emit events when it has
|
||||
* focus.
|
||||
* @section page_iface_zwp_relative_pointer_v1_api API
|
||||
* See @ref iface_zwp_relative_pointer_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwp_relative_pointer_v1 The zwp_relative_pointer_v1 interface
|
||||
*
|
||||
* A wp_relative_pointer object is an extension to the wl_pointer interface
|
||||
* used for emitting relative pointer events. It shares the same focus as
|
||||
* wl_pointer objects of the same seat and will only emit events when it has
|
||||
* focus.
|
||||
*/
|
||||
extern const struct wl_interface zwp_relative_pointer_v1_interface;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_manager_v1
|
||||
* @struct zwp_relative_pointer_manager_v1_interface
|
||||
*/
|
||||
struct zwp_relative_pointer_manager_v1_interface {
|
||||
/**
|
||||
* destroy the relative pointer manager object
|
||||
*
|
||||
* Used by the client to notify the server that it will no longer
|
||||
* use this relative pointer manager object.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* get a relative pointer object
|
||||
*
|
||||
* Create a relative pointer interface given a wl_pointer object.
|
||||
* See the wp_relative_pointer interface for more details.
|
||||
*/
|
||||
void (*get_relative_pointer)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id,
|
||||
struct wl_resource *pointer);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_manager_v1
|
||||
*/
|
||||
#define ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_manager_v1
|
||||
*/
|
||||
#define ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_v1
|
||||
* @struct zwp_relative_pointer_v1_interface
|
||||
*/
|
||||
struct zwp_relative_pointer_v1_interface {
|
||||
/**
|
||||
* release the relative pointer object
|
||||
*
|
||||
*
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
};
|
||||
|
||||
#define ZWP_RELATIVE_POINTER_V1_RELATIVE_MOTION 0
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_v1
|
||||
*/
|
||||
#define ZWP_RELATIVE_POINTER_V1_RELATIVE_MOTION_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_v1
|
||||
*/
|
||||
#define ZWP_RELATIVE_POINTER_V1_DESTROY_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwp_relative_pointer_v1
|
||||
* Sends an relative_motion event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param utime_hi high 32 bits of a 64 bit timestamp with microsecond granularity
|
||||
* @param utime_lo low 32 bits of a 64 bit timestamp with microsecond granularity
|
||||
* @param dx the x component of the motion vector
|
||||
* @param dy the y component of the motion vector
|
||||
* @param dx_unaccel the x component of the unaccelerated motion vector
|
||||
* @param dy_unaccel the y component of the unaccelerated motion vector
|
||||
*/
|
||||
static inline void
|
||||
zwp_relative_pointer_v1_send_relative_motion(struct wl_resource *resource_, uint32_t utime_hi, uint32_t utime_lo, wl_fixed_t dx, wl_fixed_t dy, wl_fixed_t dx_unaccel, wl_fixed_t dy_unaccel)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWP_RELATIVE_POINTER_V1_RELATIVE_MOTION, utime_hi, utime_lo, dx, dy, dx_unaccel, dy_unaccel);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2012, 2013 Intel Corporation
|
||||
* Copyright © 2015, 2016 Jan Arne Petersen
|
||||
* Copyright © 2017, 2018 Red Hat, Inc.
|
||||
* Copyright © 2018 Purism SPC
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this
|
||||
* software and its documentation for any purpose is hereby granted
|
||||
* without fee, provided that the above copyright notice appear in
|
||||
* all copies and that both that copyright notice and this permission
|
||||
* notice appear in supporting documentation, and that the name of
|
||||
* the copyright holders not be used in advertising or publicity
|
||||
* pertaining to distribution of the software without specific,
|
||||
* written prior permission. The copyright holders make no
|
||||
* representations about the suitability of this software for any
|
||||
* purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
||||
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
* SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
* THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_seat_interface;
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
extern const struct wl_interface zwp_text_input_v3_interface;
|
||||
|
||||
static const struct wl_interface *text_input_unstable_v3_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&wl_surface_interface,
|
||||
&wl_surface_interface,
|
||||
&zwp_text_input_v3_interface,
|
||||
&wl_seat_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_text_input_v3_requests[] = {
|
||||
{ "destroy", "", text_input_unstable_v3_types + 0 },
|
||||
{ "enable", "", text_input_unstable_v3_types + 0 },
|
||||
{ "disable", "", text_input_unstable_v3_types + 0 },
|
||||
{ "set_surrounding_text", "sii", text_input_unstable_v3_types + 0 },
|
||||
{ "set_text_change_cause", "u", text_input_unstable_v3_types + 0 },
|
||||
{ "set_content_type", "uu", text_input_unstable_v3_types + 0 },
|
||||
{ "set_cursor_rectangle", "iiii", text_input_unstable_v3_types + 0 },
|
||||
{ "commit", "", text_input_unstable_v3_types + 0 },
|
||||
{ "set_available_actions", "2a", text_input_unstable_v3_types + 0 },
|
||||
{ "show_input_panel", "2", text_input_unstable_v3_types + 0 },
|
||||
{ "hide_input_panel", "2", text_input_unstable_v3_types + 0 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_text_input_v3_events[] = {
|
||||
{ "enter", "o", text_input_unstable_v3_types + 4 },
|
||||
{ "leave", "o", text_input_unstable_v3_types + 5 },
|
||||
{ "preedit_string", "?sii", text_input_unstable_v3_types + 0 },
|
||||
{ "commit_string", "?s", text_input_unstable_v3_types + 0 },
|
||||
{ "delete_surrounding_text", "uu", text_input_unstable_v3_types + 0 },
|
||||
{ "done", "u", text_input_unstable_v3_types + 0 },
|
||||
{ "action", "2uu", text_input_unstable_v3_types + 0 },
|
||||
{ "language", "2s", text_input_unstable_v3_types + 0 },
|
||||
{ "preedit_hint", "2uuu", text_input_unstable_v3_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_text_input_v3_interface = {
|
||||
"zwp_text_input_v3", 2,
|
||||
11, zwp_text_input_v3_requests,
|
||||
9, zwp_text_input_v3_events,
|
||||
};
|
||||
|
||||
static const struct wl_message zwp_text_input_manager_v3_requests[] = {
|
||||
{ "destroy", "", text_input_unstable_v3_types + 0 },
|
||||
{ "get_text_input", "no", text_input_unstable_v3_types + 6 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwp_text_input_manager_v3_interface = {
|
||||
"zwp_text_input_manager_v3", 2,
|
||||
2, zwp_text_input_manager_v3_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,75 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2013-2016 Collabora, Ltd.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_surface_interface;
|
||||
extern const struct wl_interface wp_viewport_interface;
|
||||
|
||||
static const struct wl_interface *viewporter_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&wp_viewport_interface,
|
||||
&wl_surface_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_viewporter_requests[] = {
|
||||
{ "destroy", "", viewporter_types + 0 },
|
||||
{ "get_viewport", "no", viewporter_types + 4 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_viewporter_interface = {
|
||||
"wp_viewporter", 1,
|
||||
2, wp_viewporter_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_viewport_requests[] = {
|
||||
{ "destroy", "", viewporter_types + 0 },
|
||||
{ "set_source", "ffff", viewporter_types + 0 },
|
||||
{ "set_destination", "ii", viewporter_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_viewport_interface = {
|
||||
"wp_viewport", 1,
|
||||
3, wp_viewport_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,401 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef VIEWPORTER_SERVER_PROTOCOL_H
|
||||
#define VIEWPORTER_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_viewporter The viewporter protocol
|
||||
* @section page_ifaces_viewporter Interfaces
|
||||
* - @subpage page_iface_wp_viewporter - surface cropping and scaling
|
||||
* - @subpage page_iface_wp_viewport - crop and scale interface to a wl_surface
|
||||
* @section page_copyright_viewporter Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright © 2013-2016 Collabora, Ltd.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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.
|
||||
* </pre>
|
||||
*/
|
||||
struct wl_surface;
|
||||
struct wp_viewport;
|
||||
struct wp_viewporter;
|
||||
|
||||
#ifndef WP_VIEWPORTER_INTERFACE
|
||||
#define WP_VIEWPORTER_INTERFACE
|
||||
/**
|
||||
* @page page_iface_wp_viewporter wp_viewporter
|
||||
* @section page_iface_wp_viewporter_desc Description
|
||||
*
|
||||
* The global interface exposing surface cropping and scaling
|
||||
* capabilities is used to instantiate an interface extension for a
|
||||
* wl_surface object. This extended interface will then allow
|
||||
* cropping and scaling the surface contents, effectively
|
||||
* disconnecting the direct relationship between the buffer and the
|
||||
* surface size.
|
||||
* @section page_iface_wp_viewporter_api API
|
||||
* See @ref iface_wp_viewporter.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_wp_viewporter The wp_viewporter interface
|
||||
*
|
||||
* The global interface exposing surface cropping and scaling
|
||||
* capabilities is used to instantiate an interface extension for a
|
||||
* wl_surface object. This extended interface will then allow
|
||||
* cropping and scaling the surface contents, effectively
|
||||
* disconnecting the direct relationship between the buffer and the
|
||||
* surface size.
|
||||
*/
|
||||
extern const struct wl_interface wp_viewporter_interface;
|
||||
#endif
|
||||
#ifndef WP_VIEWPORT_INTERFACE
|
||||
#define WP_VIEWPORT_INTERFACE
|
||||
/**
|
||||
* @page page_iface_wp_viewport wp_viewport
|
||||
* @section page_iface_wp_viewport_desc Description
|
||||
*
|
||||
* An additional interface to a wl_surface object, which allows the
|
||||
* client to specify the cropping and scaling of the surface
|
||||
* contents.
|
||||
*
|
||||
* This interface works with two concepts: the source rectangle (src_x,
|
||||
* src_y, src_width, src_height), and the destination size (dst_width,
|
||||
* dst_height). The contents of the source rectangle are scaled to the
|
||||
* destination size, and content outside the source rectangle is ignored.
|
||||
* This state is double-buffered, and is applied on the next
|
||||
* wl_surface.commit.
|
||||
*
|
||||
* The two parts of crop and scale state are independent: the source
|
||||
* rectangle, and the destination size. Initially both are unset, that
|
||||
* is, no scaling is applied. The whole of the current wl_buffer is
|
||||
* used as the source, and the surface size is as defined in
|
||||
* wl_surface.attach.
|
||||
*
|
||||
* If the destination size is set, it causes the surface size to become
|
||||
* dst_width, dst_height. The source (rectangle) is scaled to exactly
|
||||
* this size. This overrides whatever the attached wl_buffer size is,
|
||||
* unless the wl_buffer is NULL. If the wl_buffer is NULL, the surface
|
||||
* has no content and therefore no size. Otherwise, the size is always
|
||||
* at least 1x1 in surface local coordinates.
|
||||
*
|
||||
* If the source rectangle is set, it defines what area of the wl_buffer is
|
||||
* taken as the source. If the source rectangle is set and the destination
|
||||
* size is not set, then src_width and src_height must be integers, and the
|
||||
* surface size becomes the source rectangle size. This results in cropping
|
||||
* without scaling. If src_width or src_height are not integers and
|
||||
* destination size is not set, the bad_size protocol error is raised when
|
||||
* the surface state is applied.
|
||||
*
|
||||
* The coordinate transformations from buffer pixel coordinates up to
|
||||
* the surface-local coordinates happen in the following order:
|
||||
* 1. buffer_transform (wl_surface.set_buffer_transform)
|
||||
* 2. buffer_scale (wl_surface.set_buffer_scale)
|
||||
* 3. crop and scale (wp_viewport.set*)
|
||||
* This means, that the source rectangle coordinates of crop and scale
|
||||
* are given in the coordinates after the buffer transform and scale,
|
||||
* i.e. in the coordinates that would be the surface-local coordinates
|
||||
* if the crop and scale was not applied.
|
||||
*
|
||||
* If src_x or src_y are negative, the bad_value protocol error is raised.
|
||||
* Otherwise, if the source rectangle is partially or completely outside of
|
||||
* the non-NULL wl_buffer, then the out_of_buffer protocol error is raised
|
||||
* when the surface state is applied. A NULL wl_buffer does not raise the
|
||||
* out_of_buffer error.
|
||||
*
|
||||
* If the wl_surface associated with the wp_viewport is destroyed,
|
||||
* all wp_viewport requests except 'destroy' raise the protocol error
|
||||
* no_surface.
|
||||
*
|
||||
* If the wp_viewport object is destroyed, the crop and scale
|
||||
* state is removed from the wl_surface. The change will be applied
|
||||
* on the next wl_surface.commit.
|
||||
* @section page_iface_wp_viewport_api API
|
||||
* See @ref iface_wp_viewport.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_wp_viewport The wp_viewport interface
|
||||
*
|
||||
* An additional interface to a wl_surface object, which allows the
|
||||
* client to specify the cropping and scaling of the surface
|
||||
* contents.
|
||||
*
|
||||
* This interface works with two concepts: the source rectangle (src_x,
|
||||
* src_y, src_width, src_height), and the destination size (dst_width,
|
||||
* dst_height). The contents of the source rectangle are scaled to the
|
||||
* destination size, and content outside the source rectangle is ignored.
|
||||
* This state is double-buffered, and is applied on the next
|
||||
* wl_surface.commit.
|
||||
*
|
||||
* The two parts of crop and scale state are independent: the source
|
||||
* rectangle, and the destination size. Initially both are unset, that
|
||||
* is, no scaling is applied. The whole of the current wl_buffer is
|
||||
* used as the source, and the surface size is as defined in
|
||||
* wl_surface.attach.
|
||||
*
|
||||
* If the destination size is set, it causes the surface size to become
|
||||
* dst_width, dst_height. The source (rectangle) is scaled to exactly
|
||||
* this size. This overrides whatever the attached wl_buffer size is,
|
||||
* unless the wl_buffer is NULL. If the wl_buffer is NULL, the surface
|
||||
* has no content and therefore no size. Otherwise, the size is always
|
||||
* at least 1x1 in surface local coordinates.
|
||||
*
|
||||
* If the source rectangle is set, it defines what area of the wl_buffer is
|
||||
* taken as the source. If the source rectangle is set and the destination
|
||||
* size is not set, then src_width and src_height must be integers, and the
|
||||
* surface size becomes the source rectangle size. This results in cropping
|
||||
* without scaling. If src_width or src_height are not integers and
|
||||
* destination size is not set, the bad_size protocol error is raised when
|
||||
* the surface state is applied.
|
||||
*
|
||||
* The coordinate transformations from buffer pixel coordinates up to
|
||||
* the surface-local coordinates happen in the following order:
|
||||
* 1. buffer_transform (wl_surface.set_buffer_transform)
|
||||
* 2. buffer_scale (wl_surface.set_buffer_scale)
|
||||
* 3. crop and scale (wp_viewport.set*)
|
||||
* This means, that the source rectangle coordinates of crop and scale
|
||||
* are given in the coordinates after the buffer transform and scale,
|
||||
* i.e. in the coordinates that would be the surface-local coordinates
|
||||
* if the crop and scale was not applied.
|
||||
*
|
||||
* If src_x or src_y are negative, the bad_value protocol error is raised.
|
||||
* Otherwise, if the source rectangle is partially or completely outside of
|
||||
* the non-NULL wl_buffer, then the out_of_buffer protocol error is raised
|
||||
* when the surface state is applied. A NULL wl_buffer does not raise the
|
||||
* out_of_buffer error.
|
||||
*
|
||||
* If the wl_surface associated with the wp_viewport is destroyed,
|
||||
* all wp_viewport requests except 'destroy' raise the protocol error
|
||||
* no_surface.
|
||||
*
|
||||
* If the wp_viewport object is destroyed, the crop and scale
|
||||
* state is removed from the wl_surface. The change will be applied
|
||||
* on the next wl_surface.commit.
|
||||
*/
|
||||
extern const struct wl_interface wp_viewport_interface;
|
||||
#endif
|
||||
|
||||
#ifndef WP_VIEWPORTER_ERROR_ENUM
|
||||
#define WP_VIEWPORTER_ERROR_ENUM
|
||||
enum wp_viewporter_error {
|
||||
/**
|
||||
* the surface already has a viewport object associated
|
||||
*/
|
||||
WP_VIEWPORTER_ERROR_VIEWPORT_EXISTS = 0,
|
||||
};
|
||||
#endif /* WP_VIEWPORTER_ERROR_ENUM */
|
||||
|
||||
#ifndef WP_VIEWPORTER_ERROR_ENUM_IS_VALID
|
||||
#define WP_VIEWPORTER_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_wp_viewporter
|
||||
* Validate a wp_viewporter error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref wp_viewporter_error
|
||||
*/
|
||||
static inline bool
|
||||
wp_viewporter_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case WP_VIEWPORTER_ERROR_VIEWPORT_EXISTS:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* WP_VIEWPORTER_ERROR_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_viewporter
|
||||
* @struct wp_viewporter_interface
|
||||
*/
|
||||
struct wp_viewporter_interface {
|
||||
/**
|
||||
* unbind from the cropping and scaling interface
|
||||
*
|
||||
* Informs the server that the client will not be using this
|
||||
* protocol object anymore. This does not affect any other objects,
|
||||
* wp_viewport objects included.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* extend surface interface for crop and scale
|
||||
*
|
||||
* Instantiate an interface extension for the given wl_surface to
|
||||
* crop and scale its content. If the given wl_surface already has
|
||||
* a wp_viewport object associated, the viewport_exists protocol
|
||||
* error is raised.
|
||||
* @param id the new viewport interface id
|
||||
* @param surface the surface
|
||||
*/
|
||||
void (*get_viewport)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id,
|
||||
struct wl_resource *surface);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_viewporter
|
||||
*/
|
||||
#define WP_VIEWPORTER_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_wp_viewporter
|
||||
*/
|
||||
#define WP_VIEWPORTER_GET_VIEWPORT_SINCE_VERSION 1
|
||||
|
||||
#ifndef WP_VIEWPORT_ERROR_ENUM
|
||||
#define WP_VIEWPORT_ERROR_ENUM
|
||||
enum wp_viewport_error {
|
||||
/**
|
||||
* negative or zero values in width or height
|
||||
*/
|
||||
WP_VIEWPORT_ERROR_BAD_VALUE = 0,
|
||||
/**
|
||||
* destination size is not integer
|
||||
*/
|
||||
WP_VIEWPORT_ERROR_BAD_SIZE = 1,
|
||||
/**
|
||||
* source rectangle extends outside of the content area
|
||||
*/
|
||||
WP_VIEWPORT_ERROR_OUT_OF_BUFFER = 2,
|
||||
/**
|
||||
* the wl_surface was destroyed
|
||||
*/
|
||||
WP_VIEWPORT_ERROR_NO_SURFACE = 3,
|
||||
};
|
||||
#endif /* WP_VIEWPORT_ERROR_ENUM */
|
||||
|
||||
#ifndef WP_VIEWPORT_ERROR_ENUM_IS_VALID
|
||||
#define WP_VIEWPORT_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_wp_viewport
|
||||
* Validate a wp_viewport error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref wp_viewport_error
|
||||
*/
|
||||
static inline bool
|
||||
wp_viewport_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case WP_VIEWPORT_ERROR_BAD_VALUE:
|
||||
return version >= 1;
|
||||
case WP_VIEWPORT_ERROR_BAD_SIZE:
|
||||
return version >= 1;
|
||||
case WP_VIEWPORT_ERROR_OUT_OF_BUFFER:
|
||||
return version >= 1;
|
||||
case WP_VIEWPORT_ERROR_NO_SURFACE:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* WP_VIEWPORT_ERROR_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_viewport
|
||||
* @struct wp_viewport_interface
|
||||
*/
|
||||
struct wp_viewport_interface {
|
||||
/**
|
||||
* remove scaling and cropping from the surface
|
||||
*
|
||||
* The associated wl_surface's crop and scale state is removed.
|
||||
* The change is applied on the next wl_surface.commit.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* set the source rectangle for cropping
|
||||
*
|
||||
* Set the source rectangle of the associated wl_surface. See
|
||||
* wp_viewport for the description, and relation to the wl_buffer
|
||||
* size.
|
||||
*
|
||||
* If all of x, y, width and height are -1.0, the source rectangle
|
||||
* is unset instead. Any other set of values where width or height
|
||||
* are zero or negative, or x or y are negative, raise the
|
||||
* bad_value protocol error.
|
||||
*
|
||||
* The crop and scale state is double-buffered state, and will be
|
||||
* applied on the next wl_surface.commit.
|
||||
* @param x source rectangle x
|
||||
* @param y source rectangle y
|
||||
* @param width source rectangle width
|
||||
* @param height source rectangle height
|
||||
*/
|
||||
void (*set_source)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
wl_fixed_t x,
|
||||
wl_fixed_t y,
|
||||
wl_fixed_t width,
|
||||
wl_fixed_t height);
|
||||
/**
|
||||
* set the surface size for scaling
|
||||
*
|
||||
* Set the destination size of the associated wl_surface. See
|
||||
* wp_viewport for the description, and relation to the wl_buffer
|
||||
* size.
|
||||
*
|
||||
* If width is -1 and height is -1, the destination size is unset
|
||||
* instead. Any other pair of values for width and height that
|
||||
* contains zero or negative values raises the bad_value protocol
|
||||
* error.
|
||||
*
|
||||
* The crop and scale state is double-buffered state, and will be
|
||||
* applied on the next wl_surface.commit.
|
||||
* @param width surface width
|
||||
* @param height surface height
|
||||
*/
|
||||
void (*set_destination)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
int32_t width,
|
||||
int32_t height);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_viewport
|
||||
*/
|
||||
#define WP_VIEWPORT_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_wp_viewport
|
||||
*/
|
||||
#define WP_VIEWPORT_SET_SOURCE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_wp_viewport
|
||||
*/
|
||||
#define WP_VIEWPORT_SET_DESTINATION_SINCE_VERSION 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,123 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
/*
|
||||
* Copyright © 2018 Simon Ser
|
||||
* Copyright © 2019 Ivan Molodetskikh
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this
|
||||
* software and its documentation for any purpose is hereby granted
|
||||
* without fee, provided that the above copyright notice appear in
|
||||
* all copies and that both that copyright notice and this permission
|
||||
* notice appear in supporting documentation, and that the name of
|
||||
* the copyright holders not be used in advertising or publicity
|
||||
* pertaining to distribution of the software without specific,
|
||||
* written prior permission. The copyright holders make no
|
||||
* representations about the suitability of this software for any
|
||||
* purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
||||
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
* SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
* THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
||||
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
||||
#else
|
||||
#define WL_PRIVATE
|
||||
#endif
|
||||
|
||||
extern const struct wl_interface wl_seat_interface;
|
||||
extern const struct wl_interface zwlr_data_control_device_v1_interface;
|
||||
extern const struct wl_interface zwlr_data_control_offer_v1_interface;
|
||||
extern const struct wl_interface zwlr_data_control_source_v1_interface;
|
||||
|
||||
static const struct wl_interface *wlr_data_control_unstable_v1_types[] = {
|
||||
NULL,
|
||||
NULL,
|
||||
&zwlr_data_control_source_v1_interface,
|
||||
&zwlr_data_control_device_v1_interface,
|
||||
&wl_seat_interface,
|
||||
&zwlr_data_control_source_v1_interface,
|
||||
&zwlr_data_control_source_v1_interface,
|
||||
&zwlr_data_control_offer_v1_interface,
|
||||
&zwlr_data_control_offer_v1_interface,
|
||||
&zwlr_data_control_offer_v1_interface,
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_manager_v1_requests[] = {
|
||||
{ "create_data_source", "n", wlr_data_control_unstable_v1_types + 2 },
|
||||
{ "get_data_device", "no", wlr_data_control_unstable_v1_types + 3 },
|
||||
{ "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwlr_data_control_manager_v1_interface = {
|
||||
"zwlr_data_control_manager_v1", 2,
|
||||
3, zwlr_data_control_manager_v1_requests,
|
||||
0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_device_v1_requests[] = {
|
||||
{ "set_selection", "?o", wlr_data_control_unstable_v1_types + 5 },
|
||||
{ "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
||||
{ "set_primary_selection", "2?o", wlr_data_control_unstable_v1_types + 6 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_device_v1_events[] = {
|
||||
{ "data_offer", "n", wlr_data_control_unstable_v1_types + 7 },
|
||||
{ "selection", "?o", wlr_data_control_unstable_v1_types + 8 },
|
||||
{ "finished", "", wlr_data_control_unstable_v1_types + 0 },
|
||||
{ "primary_selection", "2?o", wlr_data_control_unstable_v1_types + 9 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwlr_data_control_device_v1_interface = {
|
||||
"zwlr_data_control_device_v1", 2,
|
||||
3, zwlr_data_control_device_v1_requests,
|
||||
4, zwlr_data_control_device_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_source_v1_requests[] = {
|
||||
{ "offer", "s", wlr_data_control_unstable_v1_types + 0 },
|
||||
{ "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_source_v1_events[] = {
|
||||
{ "send", "sh", wlr_data_control_unstable_v1_types + 0 },
|
||||
{ "cancelled", "", wlr_data_control_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwlr_data_control_source_v1_interface = {
|
||||
"zwlr_data_control_source_v1", 1,
|
||||
2, zwlr_data_control_source_v1_requests,
|
||||
2, zwlr_data_control_source_v1_events,
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_offer_v1_requests[] = {
|
||||
{ "receive", "sh", wlr_data_control_unstable_v1_types + 0 },
|
||||
{ "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
static const struct wl_message zwlr_data_control_offer_v1_events[] = {
|
||||
{ "offer", "s", wlr_data_control_unstable_v1_types + 0 },
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface zwlr_data_control_offer_v1_interface = {
|
||||
"zwlr_data_control_offer_v1", 1,
|
||||
2, zwlr_data_control_offer_v1_requests,
|
||||
1, zwlr_data_control_offer_v1_events,
|
||||
};
|
||||
|
||||
+541
@@ -0,0 +1,541 @@
|
||||
/* Generated by wayland-scanner 1.24.0 */
|
||||
|
||||
#ifndef WLR_DATA_CONTROL_UNSTABLE_V1_SERVER_PROTOCOL_H
|
||||
#define WLR_DATA_CONTROL_UNSTABLE_V1_SERVER_PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "wayland-server.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct wl_client;
|
||||
struct wl_resource;
|
||||
|
||||
/**
|
||||
* @page page_wlr_data_control_unstable_v1 The wlr_data_control_unstable_v1 protocol
|
||||
* control data devices
|
||||
*
|
||||
* @section page_desc_wlr_data_control_unstable_v1 Description
|
||||
*
|
||||
* This protocol allows a privileged client to control data devices. In
|
||||
* particular, the client will be able to manage the current selection and take
|
||||
* the role of a clipboard manager.
|
||||
*
|
||||
* Warning! The protocol described in this file is experimental and
|
||||
* backward incompatible changes may be made. Backward compatible changes
|
||||
* may be added together with the corresponding interface version bump.
|
||||
* Backward incompatible changes are done by bumping the version number in
|
||||
* the protocol and interface names and resetting the interface version.
|
||||
* Once the protocol is to be declared stable, the 'z' prefix and the
|
||||
* version number in the protocol and interface names are removed and the
|
||||
* interface version number is reset.
|
||||
*
|
||||
* Note! This protocol is deprecated and not intended for production use.
|
||||
* For clipboard management, use the ext-data-control-v1 protocol.
|
||||
*
|
||||
* @section page_ifaces_wlr_data_control_unstable_v1 Interfaces
|
||||
* - @subpage page_iface_zwlr_data_control_manager_v1 - manager to control data devices
|
||||
* - @subpage page_iface_zwlr_data_control_device_v1 - manage a data device for a seat
|
||||
* - @subpage page_iface_zwlr_data_control_source_v1 - offer to transfer data
|
||||
* - @subpage page_iface_zwlr_data_control_offer_v1 - offer to transfer data
|
||||
* @section page_copyright_wlr_data_control_unstable_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
* Copyright © 2018 Simon Ser
|
||||
* Copyright © 2019 Ivan Molodetskikh
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this
|
||||
* software and its documentation for any purpose is hereby granted
|
||||
* without fee, provided that the above copyright notice appear in
|
||||
* all copies and that both that copyright notice and this permission
|
||||
* notice appear in supporting documentation, and that the name of
|
||||
* the copyright holders not be used in advertising or publicity
|
||||
* pertaining to distribution of the software without specific,
|
||||
* written prior permission. The copyright holders make no
|
||||
* representations about the suitability of this software for any
|
||||
* purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
||||
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
* SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
* THIS SOFTWARE.
|
||||
* </pre>
|
||||
*/
|
||||
struct wl_seat;
|
||||
struct zwlr_data_control_device_v1;
|
||||
struct zwlr_data_control_manager_v1;
|
||||
struct zwlr_data_control_offer_v1;
|
||||
struct zwlr_data_control_source_v1;
|
||||
|
||||
#ifndef ZWLR_DATA_CONTROL_MANAGER_V1_INTERFACE
|
||||
#define ZWLR_DATA_CONTROL_MANAGER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwlr_data_control_manager_v1 zwlr_data_control_manager_v1
|
||||
* @section page_iface_zwlr_data_control_manager_v1_desc Description
|
||||
*
|
||||
* This interface is a manager that allows creating per-seat data device
|
||||
* controls.
|
||||
* @section page_iface_zwlr_data_control_manager_v1_api API
|
||||
* See @ref iface_zwlr_data_control_manager_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwlr_data_control_manager_v1 The zwlr_data_control_manager_v1 interface
|
||||
*
|
||||
* This interface is a manager that allows creating per-seat data device
|
||||
* controls.
|
||||
*/
|
||||
extern const struct wl_interface zwlr_data_control_manager_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWLR_DATA_CONTROL_DEVICE_V1_INTERFACE
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwlr_data_control_device_v1 zwlr_data_control_device_v1
|
||||
* @section page_iface_zwlr_data_control_device_v1_desc Description
|
||||
*
|
||||
* This interface allows a client to manage a seat's selection.
|
||||
*
|
||||
* When the seat is destroyed, this object becomes inert.
|
||||
* @section page_iface_zwlr_data_control_device_v1_api API
|
||||
* See @ref iface_zwlr_data_control_device_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwlr_data_control_device_v1 The zwlr_data_control_device_v1 interface
|
||||
*
|
||||
* This interface allows a client to manage a seat's selection.
|
||||
*
|
||||
* When the seat is destroyed, this object becomes inert.
|
||||
*/
|
||||
extern const struct wl_interface zwlr_data_control_device_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWLR_DATA_CONTROL_SOURCE_V1_INTERFACE
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwlr_data_control_source_v1 zwlr_data_control_source_v1
|
||||
* @section page_iface_zwlr_data_control_source_v1_desc Description
|
||||
*
|
||||
* The wlr_data_control_source object is the source side of a
|
||||
* wlr_data_control_offer. It is created by the source client in a data
|
||||
* transfer and provides a way to describe the offered data and a way to
|
||||
* respond to requests to transfer the data.
|
||||
* @section page_iface_zwlr_data_control_source_v1_api API
|
||||
* See @ref iface_zwlr_data_control_source_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwlr_data_control_source_v1 The zwlr_data_control_source_v1 interface
|
||||
*
|
||||
* The wlr_data_control_source object is the source side of a
|
||||
* wlr_data_control_offer. It is created by the source client in a data
|
||||
* transfer and provides a way to describe the offered data and a way to
|
||||
* respond to requests to transfer the data.
|
||||
*/
|
||||
extern const struct wl_interface zwlr_data_control_source_v1_interface;
|
||||
#endif
|
||||
#ifndef ZWLR_DATA_CONTROL_OFFER_V1_INTERFACE
|
||||
#define ZWLR_DATA_CONTROL_OFFER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_zwlr_data_control_offer_v1 zwlr_data_control_offer_v1
|
||||
* @section page_iface_zwlr_data_control_offer_v1_desc Description
|
||||
*
|
||||
* A wlr_data_control_offer represents a piece of data offered for transfer
|
||||
* by another client (the source client). The offer describes the different
|
||||
* MIME types that the data can be converted to and provides the mechanism
|
||||
* for transferring the data directly from the source client.
|
||||
* @section page_iface_zwlr_data_control_offer_v1_api API
|
||||
* See @ref iface_zwlr_data_control_offer_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_zwlr_data_control_offer_v1 The zwlr_data_control_offer_v1 interface
|
||||
*
|
||||
* A wlr_data_control_offer represents a piece of data offered for transfer
|
||||
* by another client (the source client). The offer describes the different
|
||||
* MIME types that the data can be converted to and provides the mechanism
|
||||
* for transferring the data directly from the source client.
|
||||
*/
|
||||
extern const struct wl_interface zwlr_data_control_offer_v1_interface;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_manager_v1
|
||||
* @struct zwlr_data_control_manager_v1_interface
|
||||
*/
|
||||
struct zwlr_data_control_manager_v1_interface {
|
||||
/**
|
||||
* create a new data source
|
||||
*
|
||||
* Create a new data source.
|
||||
* @param id data source to create
|
||||
*/
|
||||
void (*create_data_source)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id);
|
||||
/**
|
||||
* get a data device for a seat
|
||||
*
|
||||
* Create a data device that can be used to manage a seat's
|
||||
* selection.
|
||||
*/
|
||||
void (*get_data_device)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
uint32_t id,
|
||||
struct wl_resource *seat);
|
||||
/**
|
||||
* destroy the manager
|
||||
*
|
||||
* All objects created by the manager will still remain valid,
|
||||
* until their appropriate destroy request has been called.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_manager_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_MANAGER_V1_CREATE_DATA_SOURCE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_manager_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_MANAGER_V1_GET_DATA_DEVICE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_manager_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_MANAGER_V1_DESTROY_SINCE_VERSION 1
|
||||
|
||||
#ifndef ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_ENUM
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_ENUM
|
||||
enum zwlr_data_control_device_v1_error {
|
||||
/**
|
||||
* source given to set_selection or set_primary_selection was already used before
|
||||
*/
|
||||
ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_USED_SOURCE = 1,
|
||||
};
|
||||
#endif /* ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_ENUM */
|
||||
|
||||
#ifndef ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_ENUM_IS_VALID
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
* Validate a zwlr_data_control_device_v1 error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwlr_data_control_device_v1_error
|
||||
*/
|
||||
static inline bool
|
||||
zwlr_data_control_device_v1_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_USED_SOURCE:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* ZWLR_DATA_CONTROL_DEVICE_V1_ERROR_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
* @struct zwlr_data_control_device_v1_interface
|
||||
*/
|
||||
struct zwlr_data_control_device_v1_interface {
|
||||
/**
|
||||
* copy data to the selection
|
||||
*
|
||||
* This request asks the compositor to set the selection to the
|
||||
* data from the source on behalf of the client.
|
||||
*
|
||||
* The given source may not be used in any further set_selection or
|
||||
* set_primary_selection requests. Attempting to use a previously
|
||||
* used source is a protocol error.
|
||||
*
|
||||
* To unset the selection, set the source to NULL.
|
||||
*/
|
||||
void (*set_selection)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *source);
|
||||
/**
|
||||
* destroy this data device
|
||||
*
|
||||
* Destroys the data device object.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
/**
|
||||
* copy data to the primary selection
|
||||
*
|
||||
* This request asks the compositor to set the primary selection
|
||||
* to the data from the source on behalf of the client.
|
||||
*
|
||||
* The given source may not be used in any further set_selection or
|
||||
* set_primary_selection requests. Attempting to use a previously
|
||||
* used source is a protocol error.
|
||||
*
|
||||
* To unset the primary selection, set the source to NULL.
|
||||
*
|
||||
* The compositor will ignore this request if it does not support
|
||||
* primary selection.
|
||||
* @since 2
|
||||
*/
|
||||
void (*set_primary_selection)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *source);
|
||||
};
|
||||
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_DATA_OFFER 0
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_SELECTION 1
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_FINISHED 2
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_PRIMARY_SELECTION 3
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_DATA_OFFER_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_SELECTION_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_FINISHED_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_PRIMARY_SELECTION_SINCE_VERSION 2
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_SET_SELECTION_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_DESTROY_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_DEVICE_V1_SET_PRIMARY_SELECTION_SINCE_VERSION 2
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
* Sends an data_offer event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_device_v1_send_data_offer(struct wl_resource *resource_, struct wl_resource *id)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_DEVICE_V1_DATA_OFFER, id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
* Sends an selection event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_device_v1_send_selection(struct wl_resource *resource_, struct wl_resource *id)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_DEVICE_V1_SELECTION, id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
* Sends an finished event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_device_v1_send_finished(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_DEVICE_V1_FINISHED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_device_v1
|
||||
* Sends an primary_selection event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_device_v1_send_primary_selection(struct wl_resource *resource_, struct wl_resource *id)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_DEVICE_V1_PRIMARY_SELECTION, id);
|
||||
}
|
||||
|
||||
#ifndef ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_ENUM
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_ENUM
|
||||
enum zwlr_data_control_source_v1_error {
|
||||
/**
|
||||
* offer sent after wlr_data_control_device.set_selection
|
||||
*/
|
||||
ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_INVALID_OFFER = 1,
|
||||
};
|
||||
#endif /* ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_ENUM */
|
||||
|
||||
#ifndef ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_ENUM_IS_VALID
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_ENUM_IS_VALID
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
* Validate a zwlr_data_control_source_v1 error value.
|
||||
*
|
||||
* @return true on success, false on error.
|
||||
* @ref zwlr_data_control_source_v1_error
|
||||
*/
|
||||
static inline bool
|
||||
zwlr_data_control_source_v1_error_is_valid(uint32_t value, uint32_t version) {
|
||||
switch (value) {
|
||||
case ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_INVALID_OFFER:
|
||||
return version >= 1;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* ZWLR_DATA_CONTROL_SOURCE_V1_ERROR_ENUM_IS_VALID */
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
* @struct zwlr_data_control_source_v1_interface
|
||||
*/
|
||||
struct zwlr_data_control_source_v1_interface {
|
||||
/**
|
||||
* add an offered MIME type
|
||||
*
|
||||
* This request adds a MIME type to the set of MIME types
|
||||
* advertised to targets. Can be called several times to offer
|
||||
* multiple types.
|
||||
*
|
||||
* Calling this after wlr_data_control_device.set_selection is a
|
||||
* protocol error.
|
||||
* @param mime_type MIME type offered by the data source
|
||||
*/
|
||||
void (*offer)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
const char *mime_type);
|
||||
/**
|
||||
* destroy this source
|
||||
*
|
||||
* Destroys the data source object.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
};
|
||||
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_SEND 0
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_CANCELLED 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_SEND_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_CANCELLED_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_OFFER_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_SOURCE_V1_DESTROY_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
* Sends an send event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param mime_type MIME type for the data
|
||||
* @param fd file descriptor for the data
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_source_v1_send_send(struct wl_resource *resource_, const char *mime_type, int32_t fd)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_SOURCE_V1_SEND, mime_type, fd);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_source_v1
|
||||
* Sends an cancelled event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_source_v1_send_cancelled(struct wl_resource *resource_)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_SOURCE_V1_CANCELLED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_offer_v1
|
||||
* @struct zwlr_data_control_offer_v1_interface
|
||||
*/
|
||||
struct zwlr_data_control_offer_v1_interface {
|
||||
/**
|
||||
* request that the data is transferred
|
||||
*
|
||||
* To transfer the offered data, the client issues this request
|
||||
* and indicates the MIME type it wants to receive. The transfer
|
||||
* happens through the passed file descriptor (typically created
|
||||
* with the pipe system call). The source client writes the data in
|
||||
* the MIME type representation requested and then closes the file
|
||||
* descriptor.
|
||||
*
|
||||
* The receiving client reads from the read end of the pipe until
|
||||
* EOF and then closes its end, at which point the transfer is
|
||||
* complete.
|
||||
*
|
||||
* This request may happen multiple times for different MIME types.
|
||||
* @param mime_type MIME type desired by receiver
|
||||
* @param fd file descriptor for data transfer
|
||||
*/
|
||||
void (*receive)(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
const char *mime_type,
|
||||
int32_t fd);
|
||||
/**
|
||||
* destroy this offer
|
||||
*
|
||||
* Destroys the data offer object.
|
||||
*/
|
||||
void (*destroy)(struct wl_client *client,
|
||||
struct wl_resource *resource);
|
||||
};
|
||||
|
||||
#define ZWLR_DATA_CONTROL_OFFER_V1_OFFER 0
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_offer_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_OFFER_V1_OFFER_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_offer_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_OFFER_V1_RECEIVE_SINCE_VERSION 1
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_offer_v1
|
||||
*/
|
||||
#define ZWLR_DATA_CONTROL_OFFER_V1_DESTROY_SINCE_VERSION 1
|
||||
|
||||
/**
|
||||
* @ingroup iface_zwlr_data_control_offer_v1
|
||||
* Sends an offer event to the client owning the resource.
|
||||
* @param resource_ The client's resource
|
||||
* @param mime_type offered MIME type
|
||||
*/
|
||||
static inline void
|
||||
zwlr_data_control_offer_v1_send_offer(struct wl_resource *resource_, const char *mime_type)
|
||||
{
|
||||
wl_resource_post_event(resource_, ZWLR_DATA_CONTROL_OFFER_V1_OFFER, mime_type);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loaded 100 of 210 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user