Modern X Tech. Chinese Translation Project
[[the_x_rendering_extension]]
Last edit on May 10, 2006 1:33 PM by Anonymous

原文链接: http://webcvs.freedesktop.org/xlibs/Render/protocol?rev=1.12&view=markup
翻译人员:wide288

The X Rendering Extension
X 渲染扩展
Version 0.9
2004-7-23
Keith Packard
keithp@keithp.com
版本 0.9
翻译;wide288
2006-3-7 开始翻译

1.Introduction
1,介绍

The X Rendering Extension (Render) introduces digital image composition as the foundation of a new rendering model within the X Window System. Rendering geometric(几何学的) figures(数字) is accomplished(精通) by client-side tesselation(分解或网格化,不确定) into either triangles(三角形) or trapezoids(四边形). Text is drawn by loading glyphs(字型) into the server and rendering sets of them.

X渲染扩展引入了数字图像混合操作,并将其作为X系统新的渲染模型的基础。客户端将几何图象分解成三角形和四边形来进行渲染的。文本的绘制是登录到服务器取得并进行渲染设置的。


2. Acknowledgments
2,致谢

This extension was the work of many people, in particular:
许多人进行了这个扩展工作,例如:

+ Thomas Porter and Tom Duff for their formal description of image compositing.(composite)

Thomas Porter 和 Tom Duff 它们正式描述了图片的合成。

+ Rob Pike and Russ Cox who designed(图案) the Plan(计划) 9 window system from which the compositing(合成的) model was lifted(举起).

Rob Pike 和 Russ Cox 计划并发起了九个窗口的系统的合成方式。(不确定是本意)

+ Juliusz Chroboczek and Raph Levien whose proposal(建议) for client-side glyph management eliminated(消除) font handling(用特别方式使用) from the X server.

Juliusz Chroboczek 和 Raph Levien 建议客户端的字型管理用特别的方式从 X 服务器得到。

+ Jon Leech, Brad Grantham and Allen Akin for patiently explaining how OpenGL works.

Jon Leech ,Brad Grantham 和 Allen Akin 耐心的说明了怎么样用 OpenGL 工作。

+ Carl Worth for providing(装配) the sample(实例) implementation(执行) of trapezoid(四边形) rendering and showing how broken(弄坏了) the spec was

      Carl Worth通过实例介绍了四边形的渲染和显示怎么弄坏 spec was?(不知道怎么译)

+ Sam Pottle and Jamey Sharp for helping demonstrate(论证)the correctness(纠正)of the trapezoid specification(详述).

      Sam Pottle 和 Jamey Sharp 帮助论证且纠证了四边形的介绍。

+ Owen Taylor for helping specify projective transformations

Owen Taylor 详细说明了工程树的变化。


3. Rendering Model

3,渲染模型

4. Data types
4,数据类型

The core protocol rendering system uses a pixel model(象素模型) and applies color(应用色彩) only in the final generation(生成) of the video signal(视频信号). A compositing model (合成模型)operates(操作)on colors, not pixel values(而不是像素值) so a new datatype is needed to interpret(解释) data as color instead(代替) of just bits.(解释颜色代替的几个位)

渲染系统的核心协议使用象素模型,仅在生成最终的视频信号时应用色彩。合成模型处理颜色而不是象素值,所以需要一个新的数据类型来把数据解释为颜色而不仅仅是数据位。

The "PictFormat" object holds information needed to translate pixel values
into red, green, blue and alpha channels. The server has a list of picture
formats corresponding(相应的) to the various visuals(不同的,可见的) on the screen. There are two classes of formats, Indexed and Direct. Indexed PictFormats hold a list of pixel values and RGBA values while Direct PictFormats hold bit masks for each
of R, G, B and A.

"PictFormat"对象保有将像素值转换为红,绿,蓝和 alpha 通道所需要的信息。对应于屏幕上不同的画面,服务器有一个图象格式列表。有两类格式,Indexed(索引的)和 Direct(直接的)。Indexed PictFormat 保有像素值和 RGBA 值的列表,而 Direct PictFormat 保有 R、G、B 和 A 的位掩码。

The "Picture" object contains(包含) a Drawable, a PictFormat and some
rendering state(单元). More than one Picture can refer(参照)(指) to the same Drawable.

一个图象对象包含一个布尔的画图变量,一个图象格式变量和一些渲染单元。更多的图象是指布尔的画图变量。


5,错误
Errors are sent using core X error reports.
"错误"是X核心发出的错误报告。
PictFormat
A value for a PICTFORMAT argument does not name a defined PICTFORMAT.
PICFORMAT 参数没有定义
Picture
A value for a PICTURE argument does not name a defined PICTURE.
PICTURE 参数没有定义
PictOp
A value for a PICTOP argument does not name a defined PICTOP.
PictOp 参数没有定义
GlyphSet
A value for a GLYPHSET argument does not name a defined GLYPHSET.
GlyphSet 参数没有定义
Glyph
A value for a GLYPH argument does not name a defined GLYPH in the
glyphset.
Glyphset 中的 Glyph 参数没有定义

6. Protocol Types
6,协议类型

7. Standard PictFormats
7,标准图片格式

8. Compositing Operators
8,合成操作

9. Source and Mask Transformations
9,源图片和模板的转换

10. Polygon Rasterization
10,多边形光栅化

11. Image Filtering
11,图片填充

12. Glyph Rendering
12, 字型渲染

13. Extension Initialization
13,扩展初始化

14. Extension Requests
14,扩展请求

15. Extension Versioning
15,扩展版本