- UID
- 2
- 积分
- 8682
- 帖子
- 2905
- 主题
- 199
- 论坛币
- 11799
- 威望
- 16
- EP值
- 2349
- MP值
- 15
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 2597 小时
- 最后登录
- 2024-8-28
|
lijingjie 发表于 2011-11-23 20:56
TCAS在文字的效果表现上更加灵活,像working_II_op实例中利用图片实现文字的渐变色,比起ASS利用MASK来实现 ...
我很震惊, 居然有人深入到这一步了... (在这么少文档的情况下)
和一般的渲染引擎类似, TCAS对纹理支持的代价很小. 这也算是对ASS的一个良好补充了吧. (当初设计这个文件格式时的一个主要目标).
至于pixStone.pyd模块, 虽然描述的很粗糙, 但聊胜于无嘛.
函数名虽然不直接相同, 但也可以推断出来. 参数的话, 可以参考对args的描述, 另外, 函数的使用方式基本上差不多.- /**
- * Apply blur effect to TCAX PY PIX with several kinds of blurs.
- * Remark: methods (0 - 5), Gauss, Box, Zoom, Radial, Motion_Right, Motion_Left
- *
- * @param self reserved
- * @param args (PIX, method, radius)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_blurs(PyObject *self, PyObject *args);
- /**
- * Apply gradient effect to TCAX PY PIX with several kinds of gradient types.
- * Remark: types (0 - 4), BiLine ConicalASym ConicalSym Rect Radial,
- * repeat, 0 - REPEAT_NONE, 1 - REPEAT_SAWTOOTH, 2 - REPEAT_TRIANGULAR
- *
- * @param self reserved
- * @param args (PIX, type, x1, y1, x2, y2, rgb1, rgb2, repeat)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_gradient(PyObject *self, PyObject *args);
- /**
- * Apply simple effect to TCAX PY PIX with several kinds of effects.
- * Remark: effects available,
- * 1.FCPixelAutoColorEnhance 2.FCPixelAutoContrast 3.FCPixelBrightness
- * 4.FCPixelContrast 5.FCPixelDetectEdges 6.FCPixelEmboss
- * 7.FCPixelFlip 8.FCPixelGamma 9.FCPixelGrayscale
- * 10.FCPixelHalftoneM3 11.FCPixelIllusion 12.FCPixelInvert
- * 13.FCPixelLens 14.FCPixelMedianFilter 15.FCPixelMirror
- * 16.FCPixelMosaic 17.FCPixelNoisify 18.FCPixelOilPaint
- * 19.FCPixelPosterize 20.FCPixelRotate 21.FCPixelSharp
- * 22.FCPixelShift 23.FCPixelSmoothEdge 24.FCPixelSolarize
- * 25.FCPixelSplash 26.FCPixelThreshold 27.FCPixelVideo
- *
- * @param self reserved
- * @param args (PIX, effect, param)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_fx(PyObject *self, PyObject *args);
- /**
- * Apply distortion effect to TCAX PY PIX with several kinds of filters.
- * Remark: filters available,
- * 1.FCPixelCylinder 2.FCPixelFractalTrace 3.FCPixelLens
- * 4.FCPixelRibbon 5.FCPixelRipple 6.FCPixelWave 7.FCPixelWhirlPinch
- *
- * @param self reserved
- * @param args (PIX, filter, param1, param2)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_distord(PyObject *self, PyObject *args);
- /**
- * Apply LensFlare effect to TCAX PY PIX.
- * @param self reserved
- * @param args (PIX, x, y)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_lens_flare(PyObject *self, PyObject *args);
- /**
- * Apply soft glow effect to TCAX PY PIX.
- * @param self reserved
- * @param args (PIX, radius, brightness, contrast)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_soft_glow(PyObject *self, PyObject *args);
- /**
- * Apply blind effect to TCAX PY PIX.
- * @param self reserved
- * @param args (PIX, direct, width, opacity, rgb)
- * @return TCAX_PyPix
- */
- extern TCAX_PyPix pixstone_blind(PyObject *self, PyObject *args);
复制代码 |
|