Lines Matching defs:pc1
46 static int dca_find_frame_end(DCAParseContext * pc1, const uint8_t * buf,
51 ParseContext *pc = &pc1->pc;
61 if (!pc1->lastmarker || state == pc1->lastmarker || pc1->lastmarker == DCA_HD_MARKER) {
63 pc1->lastmarker = state;
72 pc1->size++;
74 if (state == DCA_HD_MARKER && !pc1->hd_pos)
75 pc1->hd_pos = pc1->size;
76 if (IS_MARKER(state, i, buf, buf_size) && (state == pc1->lastmarker || pc1->lastmarker == DCA_HD_MARKER)) {
77 if(pc1->framesize > pc1->size)
81 pc1->size = 0;
93 DCAParseContext *pc1 = s->priv_data;
95 pc1->lastmarker = 0;
138 DCAParseContext *pc1 = s->priv_data;
139 ParseContext *pc = &pc1->pc;
145 next = dca_find_frame_end(pc1, buf, buf_size);
155 if (!dca_parse_params(buf, buf_size, &duration, &sample_rate, &pc1->framesize)) {