Lines Matching refs:decoder
1 /* flac - Command-line FLAC encoder/decoder
97 FLAC__StreamDecoder *decoder;
128 static FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
129 static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
130 static void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data);
321 d->decoder = 0;
374 decoder_session->decoder = FLAC__stream_decoder_new();
376 if(0 == decoder_session->decoder) {
377 flac__utils_printf(stderr, 1, "%s: ERROR creating the decoder instance\n", decoder_session->inbasefilename);
381 FLAC__stream_decoder_set_md5_checking(decoder_session->decoder, true);
383 FLAC__stream_decoder_set_metadata_respond(decoder_session->decoder, FLAC__METADATA_TYPE_CUESHEET);
385 FLAC__stream_decoder_set_metadata_respond(decoder_session->decoder, FLAC__METADATA_TYPE_VORBIS_COMMENT);
390 FLAC__stream_decoder_set_ogg_serial_number(decoder_session->decoder, decoder_session->serial_number);
391 init_status = FLAC__stream_decoder_init_ogg_file(decoder_session->decoder, strcmp(infilename, "-")? infilename : 0, write_callback, metadata_callback, error_callback, /*client_data=*/decoder_session);
396 init_status = FLAC__stream_decoder_init_file(decoder_session->decoder, strcmp(infilename, "-")? infilename : 0, write_callback, metadata_callback, error_callback, /*client_data=*/decoder_session);
400 print_error_with_init_status(decoder_session, "ERROR initializing decoder", init_status);
409 if(!FLAC__stream_decoder_process_until_end_of_metadata(d->decoder)) {
414 if(FLAC__stream_decoder_get_state(d->decoder) > FLAC__STREAM_DECODER_END_OF_STREAM) {
465 if(!FLAC__stream_decoder_seek_absolute(d->decoder, skip)) {
470 if(!FLAC__stream_decoder_process_until_end_of_stream(d->decoder) && !d->aborting_due_to_until) {
478 (FLAC__stream_decoder_get_state(d->decoder) > FLAC__STREAM_DECODER_END_OF_STREAM && !d->aborting_due_to_until)
502 if(d->decoder) {
503 md5_failure = !FLAC__stream_decoder_finish(d->decoder) && !d->aborting_due_to_until;
505 FLAC__stream_decoder_delete(d->decoder);
543 if(d->decoder) {
544 (void)FLAC__stream_decoder_finish(d->decoder);
545 FLAC__stream_decoder_delete(d->decoder);
909 FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data)
927 (void)decoder;
1022 FLAC__stream_decoder_get_decode_position(decoder_session->decoder, &dpos);
1201 void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data)
1206 FLAC__stream_decoder_get_decode_position(decoder, &decoder_session->decode_position);
1302 void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)
1305 (void)decoder;
1337 flac__utils_printf(stderr, 1, "%*s state = %s\n", ilen, "", FLAC__stream_decoder_get_resolved_state_string(d->decoder));
1345 "If the version number is greater than %s, this decoder is probably\n"