codec_message.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #ifndef _CODEC_MESSAGE_HEADERS
  2. #define _CODEC_MESSAGE_HEADERS
  3. #define SUB_FMT_VALID (1<<1)
  4. #define CHANNEL_VALID (1<<2)
  5. #define SAMPLE_RATE_VALID (1<<3)
  6. #define DATA_WIDTH_VALID (1<<4)
  7. struct digit_raw_output_info
  8. {
  9. int framelength;
  10. unsigned char* framebuf;
  11. int frame_size;
  12. int frame_samples;
  13. unsigned char* rawptr;
  14. //for AC3
  15. int sampleratecode;
  16. int bsmod;
  17. int bpf;
  18. int brst;
  19. int length;
  20. int padsize;
  21. int mode;
  22. unsigned int syncword1;
  23. unsigned int syncword2;
  24. unsigned int syncword3;
  25. unsigned int syncword1_mask;
  26. unsigned int syncword2_mask;
  27. unsigned int syncword3_mask;
  28. unsigned chstat0_l;
  29. unsigned chstat0_r;
  30. unsigned chstat1_l;
  31. unsigned chstat1_r;
  32. unsigned can_bypass;
  33. };
  34. struct frame_fmt
  35. {
  36. int valid;
  37. int sub_fmt;
  38. int channel_num;
  39. int sample_rate;
  40. int data_width;
  41. int reversed[3];/*for cache aligned 32 bytes*/
  42. int format;
  43. unsigned int total_byte_parsed;
  44. unsigned int total_sample_decoded;
  45. unsigned int bps;
  46. };
  47. struct frame_info
  48. {
  49. int len;
  50. unsigned long offset;/*steam start to here*/
  51. unsigned long buffered_len;/*data buffer in dsp,pcm datalen*/
  52. int reversed[1];/*for cache aligned 32 bytes*/
  53. };
  54. struct dsp_working_info
  55. {
  56. int status;
  57. int sp;
  58. int pc;
  59. int ilink1;
  60. int ilink2;
  61. int blink;
  62. int jeffies;
  63. int out_wp;
  64. int out_rp;
  65. int buffered_len;//pcm buffered at the dsp side
  66. int es_offset;//stream read offset since start decoder
  67. int reserved[5];
  68. };
  69. #endif