frame.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. *****************************************************************************
  3. *
  4. * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
  5. * R99 Version 3.3.0
  6. * REL-4 Version 4.1.0
  7. *
  8. *****************************************************************************
  9. *
  10. * File : frame.h
  11. * Purpose : Declaration of received and transmitted frame types
  12. *
  13. *****************************************************************************
  14. */
  15. #ifndef frame_h
  16. #define frame_h "$Id $"
  17. /*
  18. *****************************************************************************
  19. * INCLUDE FILES
  20. *****************************************************************************
  21. */
  22. /*
  23. *****************************************************************************
  24. * DEFINITION OF DATA TYPES
  25. *****************************************************************************
  26. * Note: The order of the TX and RX_Type identifiers has been chosen in
  27. * the way below to be compatible to an earlier version of the
  28. * AMR-NB C reference program.
  29. *****************************************************************************
  30. */
  31. enum RXFrameType { RX_SPEECH_GOOD = 0,
  32. RX_SPEECH_DEGRADED,
  33. RX_ONSET,
  34. RX_SPEECH_BAD,
  35. RX_SID_FIRST,
  36. RX_SID_UPDATE,
  37. RX_SID_BAD,
  38. RX_NO_DATA,
  39. RX_N_FRAMETYPES /* number of frame types */
  40. };
  41. enum TXFrameType { TX_SPEECH_GOOD = 0,
  42. TX_SID_FIRST,
  43. TX_SID_UPDATE,
  44. TX_NO_DATA,
  45. TX_SPEECH_DEGRADED,
  46. TX_SPEECH_BAD,
  47. TX_SID_BAD,
  48. TX_ONSET,
  49. TX_N_FRAMETYPES /* number of frame types */
  50. };
  51. /* Channel decoded frame type */
  52. enum CHDECFrameType { CHDEC_SID_FIRST = 0,
  53. CHDEC_SID_FIRST_INCOMPLETE,
  54. CHDEC_SID_UPDATE_INCOMPLETE,
  55. CHDEC_SID_UPDATE,
  56. CHDEC_SPEECH,
  57. CHDEC_SPEECH_ONSET,
  58. CHDEC_ESCAPE_MARKER,
  59. CHDEC_ESCAPE_DATA,
  60. CHDEC_NO_DATA };
  61. /* Channel decoded frame quality */
  62. enum CHDECFrameQuality { CHDEC_GOOD = 0,
  63. CHDEC_PROBABLY_DEGRADED,
  64. CHDEC_PROBABLY_BAD,
  65. CHDEC_BAD };
  66. #endif