#include "audio_bitstream.h" #include "stdio.h" #include #include #include #include /* b, p, c, u, v, 0, 0, 0*/ #define B_BIT_SHIFT 7 #define P_BIT_SHIFT 6 #define C_BIT_SHIFT 5 #define U_BIT_SHIFT 4 #define V_BIT_SHIFT 3 #define C_BIT_SET (0x1<>5)|((ptr[1]&0x1f)<<3); newptr[2] = (ptr[1]&0xe0)>>5; newptr[2] |= channel[scount]; temp = (newptr[2]<<24) | (newptr[1]<<16) | (newptr[0]<<8); j=0; p=0; while (j<31) { p ^= temp&0x1; p &= 0x1; temp >>= 1; j++; } newptr[2] |= (p&0x01)<<6; newptr[3] = 0x00; scount++; scount %= 384; ptr +=2; newptr +=4; } return 0; } /** * @brief dumpchnsta */ void dumpchnsta(char* buffer) { if (buffer == NULL) return; for (int i=0; i