移動Flash渲染關(guān)鍵技術(shù)的研究
發(fā)布時間:2018-06-03 04:11
本文選題:Flash + 渲染; 參考:《杭州電子科技大學》2009年碩士論文
【摘要】:隨著休閑經(jīng)濟的興起和手機立體娛樂時代的到來,手機Flash動漫正逐步在全球形成一種產(chǎn)業(yè),并被視為最有潛力的無線增值業(yè)務。目前一些高端手機上已經(jīng)配置了Adobe公司提供的Flash Lite,能流暢播放Flash動畫。但是在中低端手機上,由于成本、資源受限等原因使得播放Flash動畫存在性能瓶頸的問題。本文面向中低端智能手機,主要從三個方面研究Flash矢量動畫渲染的關(guān)鍵技術(shù),以有效提升Flash動畫播放性能。論文主要研究工作如下: 1針對Flash渲染流水線光柵化之前進行的曲線分解過程存在精度與速度之間難以平衡的問題,研究提出一種啟發(fā)式的曲線分解算法。算法結(jié)合曲線長度與曲率兩種因素,通過計算貝塞爾曲線的兩個端點與兩個控制頂點之間的連線的距離與夾角,求出曲線分解步數(shù)。實驗表明,算法的復雜度低,細分生成的直線段精確的擬合了曲線。 2針對傳統(tǒng)反走樣算法存在計算量大和取樣精度不高,不能適應現(xiàn)代顯示設(shè)備亮度等級越來越高的問題,提出了一種亞像素精度的區(qū)域采樣反走樣算法。算法通過位運算快速計算像素的覆蓋面積,并且像素亮度等級可達到2n(n為亞像素位數(shù),通常情況n取8)。與現(xiàn)有反走樣算法相比,在算法復雜度不增加的情況下,新算法運算速度快,生成圖像更加細膩,并適用于沒有浮點數(shù)硬件運算的嵌入式設(shè)備。 3針對Flash文件中路徑每條邊具有的兩種填充類型不能一次填充完畢,以及視頻連續(xù)性原理提出了一種一遍遍歷填充的策略與各種緩存策略。它根據(jù)Flash中Shape節(jié)點不相交的特點,將路徑連接成一個封閉區(qū)域后進行光柵化,實現(xiàn)一次填充完畢;根據(jù)Flash節(jié)點的連續(xù)性與視頻的連續(xù)性,在流水線各個層次上緩存已生成的結(jié)果,避免了重復計算,因而有效地提升了渲染速度。 本文開發(fā)的Flash播放器運行在夏新E600低端智能手機(主要性能指標為:CPU主頻為312M、系統(tǒng)RAM 64M、分辨率240×320像素)上可以較流暢的播放Flash文件,幀率為12幀/秒,驗證了上述成果的有效性。
[Abstract]:With the rise of leisure economy and the arrival of mobile phone stereoscopic entertainment era, mobile phone Flash animation is gradually forming a global industry, and is regarded as the most potential wireless value-added business. Some high-end phones already have Adobe's Flash Lite, which can play Flash animations smoothly. However, in low and medium mobile phones, due to cost, resource constraints and other reasons, there is a performance bottleneck in playing Flash animation. This paper focuses on the key techniques of Flash vector animation rendering from three aspects in order to effectively improve the performance of Flash animation. The main research work of this thesis is as follows: A heuristic curve decomposition algorithm is proposed to solve the problem that the precision and speed are difficult to balance in the process of curve decomposition before Flash rendering pipeline rasterization. Combining the two factors of curve length and curvature, the algorithm calculates the distance and angle of the line between the two endpoints and two control points of the Bezier curve, and obtains the decomposition step number of the curve. Experiments show that the complexity of the algorithm is low and the line segment generated by subdivision fits the curve accurately. In order to solve the problem that the traditional anti-aliasing algorithm has large computation and low sampling precision, it can not adapt to the increasing luminance level of modern display equipment, a sub-pixel precision area sampling anti-aliasing algorithm is proposed. The algorithm calculates the coverage area of pixels quickly by bit operation, and the pixel brightness level can reach the sub-pixel bit number of 2n(n, usually n is 8. Compared with the existing anti-aliasing algorithm, the new algorithm is faster and more delicate than the existing anti-aliasing algorithm, and is suitable for embedded devices without floating-point hardware operation. In view of the fact that the two filling types of each side of the path in the Flash file can not be filled in one time, and the principle of video continuity, a one-pass traversal filling strategy and a variety of cache strategies are proposed. According to the disjoint characteristics of Shape nodes in Flash, the path is connected into a closed area and rasterized to realize the completion of filling once, according to the continuity of Flash node and the continuity of video, The generated results are cached at all levels of the pipeline to avoid double computation, and thus the rendering speed is improved effectively. The Flash player developed in this paper can play the Flash file smoothly on the Amoi E600 low-end smartphone (the main frequency of the system is 312m, the system RAM 64m, and the resolution 240x320 pixels), and the frame rate is 12 frames per second. The validity of the above results is verified.
【學位授予單位】:杭州電子科技大學
【學位級別】:碩士
【學位授予年份】:2009
【分類號】:TP317.4
【引證文獻】
相關(guān)期刊論文 前1條
1 史冬冬;張佳立;;UMVSP:一個基于3G和Red5的通用移動視頻訂閱平臺[J];商業(yè)文化(上半月);2012年01期
,本文編號:1971424
本文鏈接:http://sikaile.net/wenyilunwen/dongmansheji/1971424.html
最近更新
教材專著