• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/flac-1.2.1/src/test_libs_common/

Lines Matching refs:encoder

53 static FLAC__StreamEncoderWriteStatus encoder_write_callback_(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data)
57 (void)encoder, (void)samples, (void)current_frame;
65 static void encoder_metadata_callback_(const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data)
67 (void)encoder, (void)metadata, (void)client_data;
73 FLAC__StreamEncoder *encoder;
86 encoder = FLAC__stream_encoder_new();
87 if(0 == encoder) {
92 FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
93 FLAC__stream_encoder_set_verify(encoder, true);
94 FLAC__stream_encoder_set_streamable_subset(encoder, true);
95 FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
96 FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
97 FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
98 FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
99 FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
100 FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
101 FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
102 FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
103 FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
104 FLAC__stream_encoder_set_do_escape_coding(encoder, false);
105 FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
106 FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
107 FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
108 FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
109 FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
110 FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
113 init_status = FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
115 init_status = FLAC__stream_encoder_init_stream(encoder, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
129 if(!FLAC__stream_encoder_process_interleaved(encoder, samples, n)) {
137 (void)FLAC__stream_encoder_finish(encoder);
141 FLAC__stream_encoder_delete(encoder);