Lines Matching full:detect

90   struct FileTypeDetectionBuffer *detect = &input_ctx->detect;  in read_yuv_frame()  local
124 const size_t left = detect->buf_read - detect->position; in read_yuv_frame()
127 memcpy(ptr, detect->buf + detect->position, more); in read_yuv_frame()
130 detect->position += more; in read_yuv_frame()
580 input_ctx->detect.buf_read - input_ctx->detect.position; in read_from_input()
585 memcpy(buf, input_ctx->detect.buf + input_ctx->detect.position, n); in read_from_input()
586 input_ctx->detect.position += n; in read_from_input()
589 memcpy(buf, input_ctx->detect.buf + input_ctx->detect.position, in read_from_input()
591 input_ctx->detect.position += buffered_bytes; in read_from_input()
600 if (n + input_ctx->detect.position > DETECT_BUF_SZ) { in input_to_detect_buf()
601 die("Failed to store in the detect buffer, maximum size exceeded."); in input_to_detect_buf()
604 input_ctx->detect.buf_read - input_ctx->detect.position; in input_to_detect_buf()
607 read_n = fread(input_ctx->detect.buf + input_ctx->detect.buf_read, 1, n, in input_to_detect_buf()
609 input_ctx->detect.buf_read += read_n; in input_to_detect_buf()
612 // the detect buffer in input_to_detect_buf()
615 read_n = fread(input_ctx->detect.buf + input_ctx->detect.buf_read, 1, in input_to_detect_buf()
617 input_ctx->detect.buf_read += read_n; in input_to_detect_buf()
623 // Read from detect buffer to a buffer. If not enough, read from input and also
638 input_ctx->detect.position = 0; in rewind_detect()
643 input_ctx->detect.position == input_ctx->detect.buf_read; in input_eof()