Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:FILE

106 static FILE *get_binary_stdin_(void);
172 FILE *file; /* only used if FLAC__stream_decoder_init_file()/FLAC__stream_decoder_init_file() called, else NULL */
333 decoder->private_->file = 0;
542 FILE *file,
551 FLAC__ASSERT(0 != file);
560 * To make sure that our file does not go unclosed after an error, we
561 * must assign the FILE pointer before any further error can occur in
564 if(file == stdin)
565 file = get_binary_stdin_(); /* just to be safe */
567 decoder->private_->file = file;
572 decoder->private_->file == stdin? 0: file_seek_callback_,
573 decoder->private_->file == stdin? 0: file_tell_callback_,
574 decoder->private_->file == stdin? 0: file_length_callback_,
586 FILE *file,
593 return init_FILE_internal_(decoder, file, write_callback, metadata_callback, error_callback, client_data, /*is_ogg=*/false);
598 FILE *file,
605 return init_FILE_internal_(decoder, file, write_callback, metadata_callback, error_callback, client_data, /*is_ogg=*/true);
618 FILE *file;
623 * To make sure that our file does not go unclosed after an error, we
625 * in FLAC__stream_decoder_init_FILE() before the FILE* is assigned.
633 file = filename? fopen(filename, "rb") : stdin;
635 if(0 == file)
638 return init_FILE_internal_(decoder, file, write_callback, metadata_callback, error_callback, client_data, is_ogg);
714 if(0 != decoder->private_->file) {
715 if(decoder->private_->file != stdin)
716 fclose(decoder->private_->file);
717 decoder->private_->file = 0;
1005 if(decoder->private_->file == stdin)
1204 /* get the file length (currently our algorithm needs to know the length so it's also an error to get FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED) */
1289 FILE *get_binary_stdin_(void)
3336 *bytes = fread(buffer, sizeof(FLAC__byte), *bytes, decoder->private_->file);
3337 if(ferror(decoder->private_->file))
3352 if(decoder->private_->file == stdin)
3354 else if(fseeko(decoder->private_->file, (off_t)absolute_byte_offset, SEEK_SET) < 0)
3365 if(decoder->private_->file == stdin)
3367 else if((pos = ftello(decoder->private_->file)) < 0)
3380 if(decoder->private_->file == stdin)
3382 else if(fstat(fileno(decoder->private_->file), &filestats) != 0)
3394 return feof(decoder->private_->file)? true : false;