【正文】
教授 包本剛 副教授 賈竹君 副教授 何紅松 講師 陳愛武 講師 游珍珍 講師 答辯中提出的主要問題及回答的簡要情況記錄: 會議主持人: 記 錄 人: 年 月 日 M 答 辯 小 組 意 見 評語: 評定等級: 負責人(簽名): 年 月 日 系 學 位 委 員 會 意 見 評 語: 論文(設計)最終評定等級: 負責人(簽名): 系部(公章) 年 月 日 校 學 位 委 員 會 意 見 評語: 評定等級: 負責人(簽名): 年 月 日 I 目 錄 緒論 ....................................................................................................................................... 1 1 簡述嵌入式系統(tǒng)與 Linux ................................................................................................ 4 嵌入式系統(tǒng) ............................................................................................................. 4 嵌入式操作系統(tǒng) ..................................................................................................... 4 Linux 作為嵌入式系統(tǒng)的優(yōu)勢 ............................................................................... 5 嵌入式 Linux .......................................................................................................... 7 2 BMP、 JPEG 文件格式及解碼 ......................................................................................... 8 位圖和調(diào)色板的概念 ............................................................................................. 8 BMP 文件格式 ...................................................................................................... 10 JPEG 圖的解碼 ...................................................................................................... 12 哈弗曼編碼 …………………………………………………………… ...14 行程編碼 ……………………………………………………………… ...15 LZW 算法的大體思想 ………………………………………………… ..16 JPEG 壓縮編碼標準 …………………………………………………… ..16 3 軟件設計 ......................................................................................................................... 18 圖片加載模塊 ....................................................................................................... 18 顯示模塊 ............................................................................................................... 18 操作模塊 ............................................................................................................... 20 圖片加載 ..................................................................................................... 20 查看上一幅、下一幅圖片 ......................................................................... 20 圖片自動播放 ............................................................................................. 21 圖片自動播放與手動播放之間的切換 ..................................................... 21 4 軟件實現(xiàn) ......................................................................................................................... 24 使用說明 ............................................................................................................... 24 演示效果 ............................................................................................................... 24 結(jié)論 ..................................................................................................................................... 25 參考文獻 ………………………………………………………………………………… .26 致 謝 ................................................................................................................................. 27 II 插圖索引 圖 1 “中 ”與放大后的 “中 ”位圖 ............................................................................................ 8 圖 2 Windows 位圖文件結(jié)構示意圖 ................................................................................. 10 圖 3 編碼器流程 ................................................................................................................ 17 圖 4 解碼器過程 ................................................................................................................ 17 圖 5 圖片顯示模塊程序流程圖 ........................................................................................ 20 圖 6 操作模塊程序流程圖 ................................................................................................ 23 圖 7 圖片瀏覽效果圖 …………………………………………………………………….24 III 附表索引 表 1 常見顏色的 RGB 組合值 ..................................................................................... 9 IV 基于嵌入式 Linux 圖片瀏覽器的設計與實現(xiàn) 摘 要 本文 闡述了圖片瀏覽器 的設計原理以及嵌入式 Linux 在圖片瀏覽器中的應用,并對 Linux系統(tǒng)進行了詳細的介 紹。本圖片瀏覽器由三個模塊組成:顯示模塊、操作模塊、加載圖片模塊。加載圖片模塊由操作模塊的加載功能觸發(fā),圖片列表中每一項由圖片名稱和圖片路徑組成。本設計是利用 Linux 的 select 函數(shù)解決了單線程下自動播放與監(jiān)控鍵盤輸入的沖突。 【關鍵詞】 : Linux 圖片瀏覽器 BMP JEPG V The design and implementation of photo browser based on Embedded Linux Abstract This paper describes the principle of photo browser and the application of embedded Linux in photo browser, and introduces the Linux system in detail. Then the text puts forward the method of designing photo browser based on Linux. The photo browser consists of three modules: Picturedisplay, Operation, Pictureloading. Picturedisplay includes display of BMP and JPEG format images. Operation consists of autoplay, reviewing manually pictures, switch in automatic mode and manual mode and exit. Pictureloading is triggered by the loading function of Operation. In picture list, each node consists of the picture’s name and path. The picture browser currently supports 24 bit image of BMP and JPG format and supports full screen display. This design solves the conflict between autoplay and monitor keyboard input under the single thr