- 浏览: 578628 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (338)
- 已过时文章(留念用) (39)
- Android学习笔记 (30)
- Android开发指引自译 (100)
- Android NDK文档自译 (23)
- Android设计指引自译 (2)
- xp(ペケピー)&linux(理奈、铃)酱~ (4)
- ui酱&歌词自译~ (9)
- lua酱~ (9)
- 自我反省 (1)
- 羽game计划 (1)
- XSL酱 (2)
- java酱 (3)
- 设计的领悟 (58)
- 涂鸦作品(pixiv) (1)
- ruby酱 (2)
- Objective-C编程语言自译 (2)
- Android开发月报 (6)
- objc酱 (2)
- photoshop (3)
- js酱 (6)
- cpp酱 (8)
- antlr酱 (7)
- Lua 5.1参考手册自译 (11)
- 收藏品 (3)
- 待宵草计划 (4)
- 体验版截图 (1)
最新评论
-
naruto60:
太给力了!!!!我这网打不开Intel官网,多亏楼主贴了连接, ...
使用HAXM加速的Android x86模拟器(和一些问题) -
yangyile2011:
谢谢博主,翻译得很好哦
【翻译】(4)片段 -
ggwang:
牙痛的彼岸:痹!
牙痛的彼岸 -
ggwang:
总结得很简练清晰啊,学习了!
ANTLR学习笔记一:概念理解 -
leisurelife1990:
mk sdd
用git下载Android自带app的源代码
【翻译】(63)supports-gl-texture元素
see
http://developer.android.com/guide/topics/manifest/supports-gl-texture-element.html
原文见
http://developer.android.com/guide/topics/manifest/supports-gl-texture-element.html
-------------------------------
<supports-gl-texture>
supports-gl-texture元素
-------------------------------
* syntax:
* 语法:
<supports-gl-texture android:name="string" />
* contained in:
* 被包含在:
<manifest>
-------------------------------
Android Market and <supports-gl-texture> elements
Android市场和<supports-gl-texture>元素
Android Market filters applications according to the texture compression formats that they support, to ensure that they can be installed only on devices that can handle their textures properly. Developers can use texture compression filtering as a way of targeting specific device types, based on GPU platform.
Android市场根据应用程序支持的纹理压缩格式来过滤应用程序。以确保它们只可以被安装在可以正确地处理它们的纹理的设备上。开发者可以使用纹理压缩过滤作为把目标定在特定设备类型的一种方式,基于GPU平台。
-------------------------------
For important information about how Android Market uses <supports-gl-texture> elements as the basis for filtering, please read Android Market and texture compression filtering, below.
想获得关于Android市场如何使用<supports-gl-texture>元素作为用于过滤的基础的重要信息,请阅读下面的Android市场和纹理压缩过滤。
-------------------------------
-------------------------------
* description:
* 描述:
Declares a single GL texture compression format that is supported by the application.
声明一个被应用程序支持的单一GL纹理压缩格式。
An application "supports" a GL texture compression format if it is capable of providing texture assets that are compressed in that format, once the application is installed on a device. The application can provide the compressed assets locally, from inside the .apk, or it can download them from a server at runtime.
应用程序“支持”一个GL纹理压缩格式,如果它有能力提供以那种格式压缩的纹理资源,一旦应用程序被安装在一个设备上。应用程序可以本地地提供被压缩资源,从.apk内部,或者它可以在运行时从一台服务器中下载它们。
Each <supports-gl-texture> element declares exactly one supported texture compression format, specified as the value of a android:name attribute. If your application supports multiple texture compression formats, you can declare multiple <supports-gl-texture> elements. For example:
每个<supports-gl-texture>元素精确地声明一个被支持纹理压缩格式,作为android:name属性的值来指定。如果你的应用程序支持多个纹理压缩格式,你可以声明多个<supports-gl-texture>元素。例如:
-------------------------------
<supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture" />
<supports-gl-texture android:name="GL_OES_compressed_paletted_texture" />
-------------------------------
Declared <supports-gl-texture> elements are informational, meaning that the Android system itself does not examine the elements at install time to ensure matching support on the device. However, other services (such as Android Market) or applications can check your application's <supports-gl-texture> declarations as part of handling or interacting with your application. For this reason, it's very important that you declare all of the texture compression formats (from the list below) that your application is capable of supporting.
声明<supports-gl-texture>元素是带信息的,意味着在安装期Android系统自身不检查元素以确保匹配设备上的支持。然而,其它服务(诸如Android市场)或应用程序可以检查你的应用程序的<supports-gl-texture>声明作为处理或与你的应用程序交互的一部分。因此,非常重要的是你声明你的应用程序有能力支持的所有纹理压缩格式(从下面的列表中)。
Applications and devices typically declare their supported GL texture compression formats using the same set of well-known strings, as listed below. The set of format strings may grow over time, as needed, and since the values are strings, applications are free to declare other formats as needed.
应用程序和设备典型地声明它们的被支持GL纹理压缩格式,使用众所周知字符串的相同集合,如下面所列举的。格式字符串的集合不久后可能会增加,如果需要的话,并且因为值是字符串,所以应用程序在需要时可以自由地声明其它格式。
Assuming that the application is built with SDK Platform Tools r3 or higher, filtering based on the <supports-gl-texture> element is activated for all API levels.
假设应用程序是用SDK平台工具r3或更高来构建,基于<supports-gl-texture>元素的过滤对于所有API级别是被激活的。
* attributes:
* 属性:
* android:name
Specifies a single GL texture compression format supported by the application, as a descriptor string. Common descriptor values are listed in the table below.
指定一个被应用程序支持的单一GL纹理压缩格式,作为一个描述符字符串。通常的描述符值被列举在下面的表格中。
-------------------------------
* Texture Compression Format Descriptor Comments
* 纹理压缩格式描述符 注释
* GL_OES_compressed_ETC1_RGB8_texture Ericsson texture compression. Specified in OpenGL ES 2.0 and available in all Android-powered devices that support OpenGL ES 2.0.
* GL_OES_compressed_ETC1_RGB8_texture Ericsson纹理压缩。特定于OpenGL ES 2.0中并且在所有支持OpenGL ES 2.0的基于Android的设备中可用。
* GL_OES_compressed_paletted_texture Generic paletted texture compression.
* GL_OES_compressed_paletted_texture 一般被调色板化纹理压缩
* GL_AMD_compressed_3DC_texture ATI 3Dc texture compression.
* GL_AMD_compressed_3DC_texture ATI 3Dc纹理压缩
* GL_AMD_compressed_ATC_texture ATI texture compression. Available on devices running Adreno GPU, including HTC Nexus One, Droid Incredible, EVO, and others. For widest compatibility, devices may also declare a <supports-gl-texture> element with the descriptor GL_ATI_texture_compression_atitc.
* GL_AMD_compressed_ATC_texture ATI纹理压缩。在运行Adreno GPU的设备上可用,包括HTC Nexus One,Droid Incredible,EVO,以及其它。(注:这三个貌似都是HTC的,Adreno是高通的GPU)。为了最广泛的兼容性,设备可能还声明一个<supports-gl-texture>元素带有描述符GL_ATI_texture_compression_atitc。
* GL_EXT_texture_compression_latc Luminance alpha texture compression.
* GL_EXT_texture_compression_latc 亮度透明度纹理压缩。(注:缩写为LATC)
* GL_EXT_texture_compression_dxt1 S3 DXT1 texture compression. Supported on devices running Nvidia Tegra2 platform, including Motorala Xoom, Motorola Atrix, Droid Bionic, and others.
* GL_EXT_texture_compression_dxt1 S3 DXT1纹理压缩。在运行Nvidia Tegra2平台的设备上被支持,包括Motorala Xoom,Motorola Atrix,Droid Bionic,和其它。(注:这三个貌似都是摩托罗拉的,Tegra2是NVIDIA的SoC处理器)
* GL_EXT_texture_compression_s3tc S3 texture compression, nonspecific to DXT variant. Supported on devices running Nvidia Tegra2 platform, including Motorala Xoom, Motorola Atrix, Droid Bionic, and others. If your application requires a specific DXT variant, declare that descriptor instead of this one.
* GL_EXT_texture_compression_s3tc S3纹理压缩,不特定于DXT变种。(注:DXT是S3纹理压缩即S3TC的一类算法实现,见http://en.wikipedia.org/wiki/S3_Texture_Compression)。在运行Nvidia Tegra2平台的设备上被支持,包括Motorala Xoom,Motorola Atrix,Droid Bionic,以及其它。如果你的应用程序需要一个特定的DXT变种,声明那个描述符取代这个。
* GL_IMG_texture_compression_pvrtc PowerVR texture compression. Available in devices running PowerVR SGX530/540 GPU, such as Motorola DROID series; Samsung Galaxy S, Nexus S, and Galaxy Tab; and others.
* GL_IMG_texture_compression_pvrtc PowerVR纹理压缩。在运行PowerVR SGX530/540 GPU的设备中可用,诸如Motorola DROID系列;Samsung Galaxy S,Nexus S,和Galaxy Tab;以及其它。
-------------------------------
* see also:
* 另见:
* Android Market Filters
* Android市场过滤器
-------------------------------
Android Market and texture compression filtering
Android市场和纹理压缩过滤
Android Market filters the applications that are visible to users, so that users can see and download only those applications that are compatible with their devices. One of the ways Market filters applications is by texture compression compatibility, giving you control over the availability of your application to various devices, based on the capabilities of their GPUs.
Android市场过滤对于用户来说可见的应用程序,致使用户只可以看到和下载那些兼容他们的设备的应用程序。市场过滤应用程序的其中一种方式是通过纹理压缩兼容性,给你在你的应用程序对不同设备的兼容性上的控制权,基于它们的GPU的能力。
To determine an application's texture compression compatibility with a given user's device, Android Market compares:
为了决定一个应用程序对给定用户设备的纹理压缩兼容性,Android市场比较:
* Texture compression formats that are supported by the application — an application declares its supported texture compression formats in <supports-gl-texture> elements in its manifest
* 被应用程序支持的纹理压缩格式——一个应用程序在它的清单中<supports-gl-texture>元素里声明它的被支持纹理压缩格式
with...
使用……
* Texture compression formats that are supported by the GPU on the device — a device reports the formats it supports as read-only system properties.
* 被设备上GPU支持的纹理压缩格式——一个设备报告它支持的格式作为只读的系统属性。
Each time you upload an application to the Android Market Publisher Site, Android Market scans the application's manifest file and looks for any <supports-gl-texture> elements. It extracts the format descriptors from the elements and stores them internally as metadata associated with the application .apk and the application version.
每当你上传一个应用程序到Android市场发布者网站时,Android市场扫描应用程序的清单文件并寻找任意<supports-gl-texture>元素。它从元素中抽取格式描述符并内部地存储它们作为与应用程序.apk关联的元数据以及应用程序版本。
When a user searches or browses for applications on Android Market, the service compares the texture compression formats supported by the application with those supported by the user's device. The comparison is based on the format descriptor strings and a match must be exact.
当一个用户在Android市场上搜索或浏览应用程序时,服务比较被应用程序支持和被用户设备支持的纹理压缩格式。压缩基于格式描述符字符串并且匹配必须是精确的。
If any of an application's supported texture compression formats is also supported by the device, Android Market allows the user to see the application and potentially download it. Otherwise, if none of the application's formats is supported by the device, Android Market filters the application so that it is not available for download.
如果一个应用程序的被支持纹理压缩格式也被该设备支持,那么Android市场允许用户看到该应用程序并隐式地下载它。否则,如果没有应用程序的格式被该设备支持,那么Android市场过滤应用程序以使它对于下载来说不可用。
If an application does not declare any <supports-gl-texture> elements, Android Market does not apply any filtering based on GL texture compression format.
如果一个应用程序不声明任何<supports-gl-texture>元素,Android市场不应用基于GL纹理压缩格式的任意过滤。
Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.
除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。
Android 4.0 r1 - 14 Feb 2012 21:12
-------------------------------
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
(此页部分内容基于Android开源项目,以及使用根据创作公共2.5来源许可证描述的条款进行修改)
(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:
* ソフトウェア技術ドキュメントを勝手に翻訳
http://www.techdoctranslator.com/android
* Ley's Blog
http://leybreeze.com/blog/
* 农民伯伯
http://www.cnblogs.com/over140/
* Android中文翻译组
http://androidbox.sinaapp.com/
)
发表评论
-
【翻译】(9-补丁2)电话簿提供者
2012-07-18 12:54 2394【翻译】(9-补丁2)电话簿提供者 see h ... -
【翻译】(8-补丁1)Android接口定义语言(AIDL)
2012-07-02 05:55 2921【翻译】(8-补丁1)Andro ... -
【翻译】(0)应用组件
2012-06-30 23:50 825【翻译】(0)应用组件 see http:// ... -
【翻译】(88)传感器
2012-05-21 21:25 1073【翻译】(88)传感器 ... -
【翻译】(87)复制与粘贴
2012-05-20 14:48 1923【翻译】(87)复制与粘贴 see http: ... -
【翻译】(86)音频捕捉
2012-05-16 15:14 1098【翻译】(86)音频捕捉 ... -
【翻译】(85)照相机
2012-05-13 15:09 3791【翻译】(85)照相机 see http:// ... -
【翻译】(84)JetPlayer
2012-04-21 16:24 980【翻译】(84)JetPlayer see h ... -
【翻译】(83)媒体回放
2012-04-21 16:00 1855【翻译】(83)媒体回放 see http:/ ... -
【翻译】(82)多媒体与照相机
2012-04-18 23:05 950【翻译】(82)多媒体与照相机 see htt ... -
【翻译】(23-补丁3)构建无障碍服务
2012-04-18 21:57 1625【翻译】(23-补丁3)构 ... -
【翻译】(23-补丁2)使应用程序无障碍
2012-04-16 13:08 2095【翻译】(23-补丁2)使应用程序无障碍 see ... -
【翻译】(23-补丁1)无障碍
2012-04-11 22:38 909【翻译】(23-补丁1)无 ... -
【翻译】(81)Renderscript之运行时API参考手册
2012-04-11 22:13 1414【翻译】(81)Renderscript之运行时API参 ... -
【翻译】(80)Renderscript之计算
2012-04-09 14:09 1440【翻译】(80)Renderscript之计算 ... -
【翻译】(79)Renderscript之图形
2012-04-08 13:59 2865【翻译】(79)Renderscript之图形 ... -
【翻译】(78)Renderscript
2012-04-04 15:35 1435【翻译】(78)Renderscript see ... -
【翻译】(77)可绘画对象动画
2012-03-18 10:52 708【翻译】(77)可绘画对象动画 see htt ... -
【翻译】(76)视图动画
2012-03-18 10:04 804【翻译】(76)视图动画 see http:/ ... -
【翻译】(75)属性动画
2012-03-17 18:24 2506【翻译】(75)属性动画 see http:/ ...
相关推荐
supports-color, 检测终端是否支持颜色 支持彩色 检测终端是否支持颜色安装$ npm install supports-color用法const supportsColor = require('supports-color');if
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
$ npm install supports-color 用法 import supportsColor from 'supports-color' ; if ( supportsColor . stdout ) { console . log ( 'Terminal stdout supports color' ) ; } if ( supportsColor . stdout . has...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
$ npm install --global supports-color-cli 用法 $ supports-color --help Usage $ supports-color Options --256 Check for 256 color support --16m Check for 16 million color support Examples $ ...
支持超链接 检测终端模拟器是否支持超链接...安装$ npm install supports-hyperlinks用法const supportsHyperlinks = require ( 'supports-hyperlinks' ) ;if ( supportsHyperlinks . stdout ) {console . log ( 'Term
"supports-hyperlinks"是一个JavaScript库,由James Talmage开发,用于检测终端仿真程序是否具备显示和处理超链接的能力。 超链接是互联网的基础之一,它允许用户通过点击文本或图像来跳转到其他页面或资源。在传统...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
在CSS3中,开发者可以利用新的特性来更精细地控制元素的布局和视觉表现,其中“自定义元素宽高比例(aspect-ratio)”和“图片裁剪(object-fit)”是两个重要的概念。这两个特性提供了更为灵活的网页设计方法,使得...
或通过npm安装: npm install -S browser-supports-log-styles if ( browserSupportsLogStyles ( ) ) { console . log ( '%cLOG%c styling supported' , 'color: white; padding: .2em .5em; border-radius: 1em;...
支持表情符号 检查终端是否支持表情符号。 安装 npm install supports-emoji 用法 const supportsEmoji = require ( "supports-emoji" ) ; supportsEmoji ; //=> 2 原料药 supportsEmoji()
Android source path : EasyMovieTexture/AndroidSource folder iOS( with tvOS) source path: Plugins/iOS folder Supported platforms: Android, iOS, AppleTV(tvOS) Supported platforms(Editor Mode ...
标题"bureau-acf-supports-location:为帖子类型支持添加额外的位置规则"指出,这个项目是关于扩展ACF的功能,特别是针对帖子类型的支持,来添加特定的位置规则。 ACF的位置规则是其强大功能的一部分,它决定了...
Easy Movie Texture Including source code (Android , iOS) Android source path : EasyMovieTexture/AndroidSource folder iOS( with tvOS) source path: Plugins/iOS folder This Demo Supported ...
Web Components标准则提供了自定义元素和模板等特性,允许构建可复用的UI组件。 总的来说,JS和CSS API集合涵盖了网页开发的各个方面,从基础的页面布局到复杂的用户交互,再到数据的获取和处理。持续学习和掌握...
Supports DDS 3D Textures -Can insert many images at once. -Should load most DDS textures as long as they are volumes. -Will play back animation by iterating through the depth. -Will pad textures ...
-supports-compiler:0.0.1'支持注解 @net . kr9ly.entitysupports . BuilderSupport@net . kr9ly.entitysupports . EqualsSupport@net . kr9ly.entitysupports . HashCodeSupport@net . kr9ly.entitysupp
这使得开发人员能够进行各种自动化任务,例如打开网页、点击元素、填写表单、模拟用户交互等,极大地提高了测试效率和准确性。 对于Windows用户,提供的`chromedriver_win32.zip`文件包含了适用于32位Windows系统的...
It supports various communication protocols, including UART (Universal Asynchronous Receiver/Transmitter), allowing communication with other devices like modems, displays, or microcontrollers over a ...