Lines Matching defs:state
37 #define IS_MARKER(state, i, buf, buf_size) \
38 ((state == DCA_MARKER_14B_LE && (i < buf_size-2) && (buf[i+1] & 0xF0) == 0xF0 && buf[i+2] == 0x07) \
39 || (state == DCA_MARKER_14B_BE && (i < buf_size-2) && buf[i+1] == 0x07 && (buf[i+2] & 0xF0) == 0xF0) \
40 || state == DCA_MARKER_RAW_LE || state == DCA_MARKER_RAW_BE || state == DCA_HD_MARKER)
50 uint32_t state;
54 state = pc->state;
59 state = (state << 8) | buf[i];
60 if (IS_MARKER(state, i, buf, buf_size)) {
61 if (!pc1->lastmarker || state == pc1->lastmarker || pc1->lastmarker == DCA_HD_MARKER) {
63 pc1->lastmarker = state;
73 state = (state << 8) | buf[i];
74 if (state == DCA_HD_MARKER && !pc1->hd_pos)
76 if (IS_MARKER(state, i, buf, buf_size) && (state == pc1->lastmarker || pc1->lastmarker == DCA_HD_MARKER)) {
80 pc->state = -1;
87 pc->state = state;