| 69 | //using namespace WelsDec; |
| 70 | |
| 71 | int32_t readBit (uint8_t* pBufPtr, int32_t& curBit) { |
| 72 | int nIndex = curBit / 8; |
| 73 | int nOffset = curBit % 8 + 1; |
| 74 | |
| 75 | curBit++; |
| 76 | return (pBufPtr[nIndex] >> (8 - nOffset)) & 0x01; |
| 77 | } |
| 78 | |
| 79 | int32_t readBits (uint8_t* pBufPtr, int32_t& n, int32_t& curBit) { |
| 80 | int r = 0; |