2008年11月21日 星期五

大家來Walking

12/23 大家來Walking

重點是有抽獎!!

一獎 捷安特2009年新款自行車 Accend One 39,800
二獎 歐都納GORE-TEX® Pro Shell單件式外套 13,800

我抽到兩個的話, 每天跟老師去騎車!

2008年11月18日 星期二

工作報告(20081118)

1. 上星期提到ISO AAC Ref encoder於rate contrl計算的bit數與寫出至raw_data_block的資料的差異。這原因是ISO AAC Ref encoder rate control有計入加入header所需的大約bit數(102 bits),但於輸出時,並未加入任何header 資訊,卻只寫出raw_data_block部分,所以會有差異。
另外, ISO AAC Ref encoder於計算scalefactor data區段的bit數時,由於皆呼叫同一個function,但於rate control階段並未還原scale factor,所以計算出來的bit數與輸出時,所計算的值有誤差,已更正。
2. 這星期嘗試將ISO AAC Ref encoder改寫至MATLAB,以更進一步了解其code的寫法,目前已改寫至error contrl階段,需再加入rate-control與輸出部分。希望藉此更加對於輸出的bit數的掌控,以利後續於MDCT cofficients estimation的比較。

PPT檔案

2008年11月17日 星期一

視訊壓縮簡介

內容分為兩部分
首先簡介影像壓縮及視訊壓縮常用的方法
第二部分為介紹H.264/AVC

簡介pdf檔

2008年11月15日 星期六

星期六(11/15)中午的聚會

因為要帶兩個小傢伙, 尤其Joanne還在會鬧場的年紀, 實在不方便, 所以經過跟Lora 商量過後, 決定在我家裡辦就好. 我們會自外面叫菜進來, 另外買一些飲料. 時間就中午12點. 除了跟我約好的已畢業的學長姐之外, 想來的都可以來, 但是請先在這串報名一下, 我才好買足夠的食物.

實在不得已, 不周之處請見諒. 對了, 因為是Lora點菜, 所以不會都是素的.



另外我們當天早上會跟Mobo與Vincent去騎車, 預計是新化老地方, 同行的有楊家輝與楊中平兩位老師, 所以應該不會太操. 有車的歡迎參加.

2008年11月14日 星期五

Larry Wu

Hi...

This is Larry Wu. (建龍)
I graduated from MAT (UCSB), CCRMA (Stanford), and SCREAM (NCKU) (the best one).
I am currently working in Intel (Visual Computing Group) at Oregon, USA.
My job content is HD-Audio validation of the Larrabee graphic card.

Here are some descriptions.

http://zh.wikipedia.org/wiki/Intel_Larrabee
http://en.wikipedia.org/wiki/Larrabee_(GPU)

Maybe I can steal some testing boards and send back to SCREAM lab.
Our lab will have the most advanced graphic card.

Good to know we have this place to share information and get connected.
I am looking forward to seeing more and more interesting articles here.

2008年11月13日 星期四

Multicore Programming:DMA Address alignment

以下是寫給學弟的程式,了解什麼是Alignment,本來要直接貼上code,
不過Syntax Highlight的使用方式有點麻煩,還是作罷。
此篇應該也能當作日後寫書的一個小小範例。

本程式最主要說明在Multi-Core Programming時,無論是SPE要抓去External Meomory,或是去抓取其他SPE在Local Store的資料,都需要以DMA的方式去抓取。
使用API mfc_put 或 mfc_get 需要注意Alignment的問題;例如現在想要做mfc_put,想要送過去的資料、要送過去的位址都必須是16-Byte Alignment。
但我們常常使用陣列來當做我們的儲存資料,如果是以integer 4個byte來傳送,每一次間隔不足16byte,又需要一個一個去傳送與接受會造成錯誤。
簡單地解決方式以struct構成一個16Byte的單位,但此方法較容易浪費記憶體。
以下程式說明了__attribute__ ((aligned (16)))使用方法,比較使用前後的差別。

程式在此

// Author : Jung-Yin, Chine @ SCREAM LAB
// Date : 2008/11/13


  1. #include <stdio.h>
  2. #include <stdint.h>
  3. typedef struct _ELEMENT{
  4. int a;
  5. uint8_t pad[16-sizeof(int)];
  6. }ELEMENT;
  7. ELEMENT a[10] __attribute__ ((aligned (16)));
  8. int b[10] __attribute__ ((aligned (16)));
  9. int c[10];
  10. int main()
  11. {
  12. int ival __attribute__ ((aligned (16)));
  13. int ival2 = 0;
  14. // variable alignment
  15. printf("align &ival addr %d mod16: %d\n",&ival,((unsigned int)&ival)%16);
  16. printf("not_align &ival2 addr %d mod16: %d\n",&ival2,((unsigned int)&ival2)%16);
  17. // ARRAY alignment
  18. printf("align &array addr %d mod16: %d\n",b,((unsigned int)b)%16);
  19. printf("not_align &array addr %d mod16: %d\n",c,((unsigned int)c)%16);
  20. // ARRAY ELEMENT
  21. printf("align &array[1] addr %d mod16: %d\n",&b[1],((unsigned int)&b)%16);
  22. printf("not_align &array[1] addr %d mod16: %d\n",&c[1],((unsigned int)&c)%16);
  23. // compare
  24. printf("align &array addr %d mod16: %d\n",a,((unsigned int)a)%16);
  25. printf("align &array addr %d mod16: %d\n",b,((unsigned int)b)%16);
  26. // ARRAY ELEMENT
  27. printf("align element &array[1] addr %d mod16: %d\n",&a[1],((unsigned int)&a[1])%16);
  28. printf("not align element &array[1] addr %d mod16: %d\n",&b[1],((unsigned int)&b[1])%16);
  29. return 0;
  30. }

Chun-Yi@Virginia Tech

Hi, guys,
Glad to hear that we have this brand-new blog.
I take the PhD program @ Virginia Tech in HCI (Human Computer Interaction) field. I haven't found a advisor yet, but I work for a professor who do the research about the robotics.
Virginia Tech is in a small town, Blacksburg. This is a good place to do research; frash air, nice and friendly people make you feel comfortable. This is my first year in this school, everything is interesting for me. The end of this semester is approaching, and thanksgiving is coming. I may go to New York and hang around with Neq recently.
my new e-mail, sonicat@vt.edu
Chun-Yi.

2008年11月12日 星期三

Google Reader

建議大家使用Google Reader來訂閱blog
不僅是新文章可以訂閱,連回應都可以訂閱
這樣才不會漏掉新訊息,也不用一篇篇看別人是不是放了什麼新的回應上去
Google Reader在大家登入email後,就可以在上面那排找到"Reader" or "閱讀器"
其他介紹可以看這裡

(
老師,我有個回應在Matlab talk那篇,你也漏掉嚕~
我補了張demo snapshot上去,可是沒辦法加到原來的文章裡
要麻煩你加一下
謝謝
)

Fast SPIHT for VLSI

整理了一下Code 目前只能給Source, 沒有文件說明
有興趣的可以下載, 順便看有沒有Bug

這個實作的特點:
1. 編碼用的記憶體少
2. 不需要3個List
3. 每個Coefficient只會讀2次
4. 速度快
5. 編出來的Bitstream和原始的SPIHT完全一樣

2008年11月11日 星期二

進度報告+報到-冠廷

這週報告的Paper是

Polyphonic Audio Matching and Alignment for Music Retrival









========我是分隔線========

大家好! 我是冠廷

目前看過的Paper為

Onset, Alignment, Retrival 之類的Paper

今後請大家多多指教