dec-ep.sh

来自「Reference Implementation of G.711 standa」· Shell 代码 · 共 24 行

SH
24
字号
#!/bin/bash #--------------------------------------------------------------------# This is an example of how to decimate an FER pattern by a factor# of 2. In this case, FER patterns designed for 20ms frames are# converted into EPs for 40ms frames. Utilities bin2asc, asc2bin,# and sh2chr are available in the unsup directory.## Simao#--------------------------------------------------------------------for f in *-20ms.ep do   bin2asc -h $f | \  gawk '{print ($1=="2021"||$1=="2120"||$1=="2020")?"6B20":"6B21"}' | \  asc2bin -h - ${f%-20ms.ep}-40ms.ep.g192donefor f in *40ms*.g192 do sh2chr $f ${f%.g192} done

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?