Lines Matching defs:line
70 /* These VANC line numbers need not be very accurate. In any case
72 * ancillary line number was requested. We just need to make sure that the
216 static uint8_t calc_parity_and_line_offset(int line)
218 uint8_t ret = (line < 313) << 5;
219 if (line >= 7 && line <= 22)
220 ret += line;
221 if (line >= 320 && line <= 335)
222 ret += (line - 313);
226 static void fill_data_unit_head(int line, uint8_t *tgt)
230 tgt[2] = calc_parity_and_line_offset(line); // field_parity, line_offset
235 static uint8_t* teletext_data_unit_from_vbi_data(int line, uint8_t *src, uint8_t *tgt, vbi_pixfmt fmt)
244 fill_data_unit_head(line, tgt);
249 static uint8_t* teletext_data_unit_from_vbi_data_10bit(int line, uint8_t *src, uint8_t *tgt)
263 return teletext_data_unit_from_vbi_data(line, y, tgt, VBI_PIXFMT_YUV420);
267 static uint8_t* teletext_data_unit_from_op47_vbi_packet(int line, uint16_t *py, uint8_t *tgt)
274 fill_data_unit_head(line, tgt);
285 static int linemask_matches(int line, int64_t mask)
288 if (line >= 6 && line <= 22)
289 shift = line - 6;
290 if (line >= 318 && line <= 335)
291 shift = line - 318 + 17;
303 int line = (descriptors[i] & 31) + (!(descriptors[i] & 128)) * 313;
304 if (line && linemask_matches(line, wanted_lines))
305 tgt = teletext_data_unit_from_op47_vbi_packet(line, py, tgt);
322 py += 2; // priority, line/field
325 py += 4 + (py[2] & 255); // ndid, nsdid, ndc, line/field
619 av_log(avctx, AV_LOG_DEBUG, "Found KLV VANC packet on line: %d\n", packet->GetLineNumber());