預設分類 2010-04-11 23:52:08 閱讀156 評論0 字号:大中小 DM365的HDVCP和IMCOP是兩個獨立單元,H.264編碼和JPEG編碼運作在兩個不同的硬體引擎,但是目前TI的編碼庫(H.264和JPEG)共享一些資源,比如EDMA通道和記憶體等。因為這個原因,要在DM365上實作H.264和JPEG雙碼流輸出,就得讓二者按序運作。TI目前提供了一些機制來并行輸出雙碼流,相應的設定流程為: 1. Use scratchGroup Id = 1 for H.264 encoder, scratchGroupId = 2 for JPEG in your .cfg file 2. Release some EDMA channels from the kernel. You have to free atleast 4-6 channels and it can be done in edma.c in the linux kernel source code. The choice of channels to remove depends on your use case and the peripherals you use. 3. Turn on enableDDR parameter of H.264 encoder. If you have IPNC Reference Design software, you can refer to it for item #1 and #3. But in IPNC also, we do not run JPEG and H.264 in parallel. Please note that MPEG4 and H.264 cannot run in parallel due to EDMA channel limitation, so keep them both in some scratchGroupId.