• Home
  • Raw
  • Download

Lines Matching refs:protected_

516 	encoder->protected_ = calloc(1, sizeof(FLAC__StreamEncoderProtected));  in FLAC__stream_encoder_new()
517 if(encoder->protected_ == 0) { in FLAC__stream_encoder_new()
524 free(encoder->protected_); in FLAC__stream_encoder_new()
532 free(encoder->protected_); in FLAC__stream_encoder_new()
571 encoder->protected_->state = FLAC__STREAM_ENCODER_UNINITIALIZED; in FLAC__stream_encoder_new()
583 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_delete()
607 free(encoder->protected_); in FLAC__stream_encoder_delete()
633 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in init_stream_internal_()
642 if(encoder->protected_->channels == 0 || encoder->protected_->channels > FLAC__MAX_CHANNELS) in init_stream_internal_()
645 if(encoder->protected_->channels != 2) { in init_stream_internal_()
646 encoder->protected_->do_mid_side_stereo = false; in init_stream_internal_()
647 encoder->protected_->loose_mid_side_stereo = false; in init_stream_internal_()
649 else if(!encoder->protected_->do_mid_side_stereo) in init_stream_internal_()
650 encoder->protected_->loose_mid_side_stereo = false; in init_stream_internal_()
652 if(encoder->protected_->bits_per_sample >= 32) in init_stream_internal_()
653 …encoder->protected_->do_mid_side_stereo = false; /* since we currenty do 32-bit math, the side cha… in init_stream_internal_()
655 …if(encoder->protected_->bits_per_sample < FLAC__MIN_BITS_PER_SAMPLE || encoder->protected_->bits_p… in init_stream_internal_()
658 if(!FLAC__format_sample_rate_is_valid(encoder->protected_->sample_rate)) in init_stream_internal_()
661 if(encoder->protected_->blocksize == 0) { in init_stream_internal_()
662 if(encoder->protected_->max_lpc_order == 0) in init_stream_internal_()
663 encoder->protected_->blocksize = 1152; in init_stream_internal_()
665 encoder->protected_->blocksize = 4096; in init_stream_internal_()
668 …if(encoder->protected_->blocksize < FLAC__MIN_BLOCK_SIZE || encoder->protected_->blocksize > FLAC_… in init_stream_internal_()
671 if(encoder->protected_->max_lpc_order > FLAC__MAX_LPC_ORDER) in init_stream_internal_()
674 if(encoder->protected_->blocksize < encoder->protected_->max_lpc_order) in init_stream_internal_()
677 if(encoder->protected_->qlp_coeff_precision == 0) { in init_stream_internal_()
678 if(encoder->protected_->bits_per_sample < 16) { in init_stream_internal_()
681 …encoder->protected_->qlp_coeff_precision = flac_max(FLAC__MIN_QLP_COEFF_PRECISION, 2 + encoder->pr… in init_stream_internal_()
683 else if(encoder->protected_->bits_per_sample == 16) { in init_stream_internal_()
684 if(encoder->protected_->blocksize <= 192) in init_stream_internal_()
685 encoder->protected_->qlp_coeff_precision = 7; in init_stream_internal_()
686 else if(encoder->protected_->blocksize <= 384) in init_stream_internal_()
687 encoder->protected_->qlp_coeff_precision = 8; in init_stream_internal_()
688 else if(encoder->protected_->blocksize <= 576) in init_stream_internal_()
689 encoder->protected_->qlp_coeff_precision = 9; in init_stream_internal_()
690 else if(encoder->protected_->blocksize <= 1152) in init_stream_internal_()
691 encoder->protected_->qlp_coeff_precision = 10; in init_stream_internal_()
692 else if(encoder->protected_->blocksize <= 2304) in init_stream_internal_()
693 encoder->protected_->qlp_coeff_precision = 11; in init_stream_internal_()
694 else if(encoder->protected_->blocksize <= 4608) in init_stream_internal_()
695 encoder->protected_->qlp_coeff_precision = 12; in init_stream_internal_()
697 encoder->protected_->qlp_coeff_precision = 13; in init_stream_internal_()
700 if(encoder->protected_->blocksize <= 384) in init_stream_internal_()
701 encoder->protected_->qlp_coeff_precision = FLAC__MAX_QLP_COEFF_PRECISION-2; in init_stream_internal_()
702 else if(encoder->protected_->blocksize <= 1152) in init_stream_internal_()
703 encoder->protected_->qlp_coeff_precision = FLAC__MAX_QLP_COEFF_PRECISION-1; in init_stream_internal_()
705 encoder->protected_->qlp_coeff_precision = FLAC__MAX_QLP_COEFF_PRECISION; in init_stream_internal_()
707 FLAC__ASSERT(encoder->protected_->qlp_coeff_precision <= FLAC__MAX_QLP_COEFF_PRECISION); in init_stream_internal_()
709 …else if(encoder->protected_->qlp_coeff_precision < FLAC__MIN_QLP_COEFF_PRECISION || encoder->prote… in init_stream_internal_()
712 if(encoder->protected_->streamable_subset) { in init_stream_internal_()
713 …if(!FLAC__format_blocksize_is_subset(encoder->protected_->blocksize, encoder->protected_->sample_r… in init_stream_internal_()
715 if(!FLAC__format_sample_rate_is_subset(encoder->protected_->sample_rate)) in init_stream_internal_()
718 encoder->protected_->bits_per_sample != 8 && in init_stream_internal_()
719 encoder->protected_->bits_per_sample != 12 && in init_stream_internal_()
720 encoder->protected_->bits_per_sample != 16 && in init_stream_internal_()
721 encoder->protected_->bits_per_sample != 20 && in init_stream_internal_()
722 encoder->protected_->bits_per_sample != 24 in init_stream_internal_()
725 if(encoder->protected_->max_residual_partition_order > FLAC__SUBSET_MAX_RICE_PARTITION_ORDER) in init_stream_internal_()
728 encoder->protected_->sample_rate <= 48000 && in init_stream_internal_()
730 encoder->protected_->blocksize > FLAC__SUBSET_MAX_BLOCK_SIZE_48000HZ || in init_stream_internal_()
731 encoder->protected_->max_lpc_order > FLAC__SUBSET_MAX_LPC_ORDER_48000HZ in init_stream_internal_()
738 …if(encoder->protected_->max_residual_partition_order >= (1u << FLAC__ENTROPY_CODING_METHOD_PARTITI… in init_stream_internal_()
739 …encoder->protected_->max_residual_partition_order = (1u << FLAC__ENTROPY_CODING_METHOD_PARTITIONED… in init_stream_internal_()
740 …if(encoder->protected_->min_residual_partition_order >= encoder->protected_->max_residual_partitio… in init_stream_internal_()
741 …encoder->protected_->min_residual_partition_order = encoder->protected_->max_residual_partition_or… in init_stream_internal_()
745 if(is_ogg && 0 != encoder->protected_->metadata && encoder->protected_->num_metadata_blocks > 1) { in init_stream_internal_()
747 for(i1 = 1; i1 < encoder->protected_->num_metadata_blocks; i1++) { in init_stream_internal_()
748 …if(0 != encoder->protected_->metadata[i1] && encoder->protected_->metadata[i1]->type == FLAC__META… in init_stream_internal_()
749 FLAC__StreamMetadata *vc = encoder->protected_->metadata[i1]; in init_stream_internal_()
751 encoder->protected_->metadata[i1] = encoder->protected_->metadata[i1-1]; in init_stream_internal_()
752 encoder->protected_->metadata[0] = vc; in init_stream_internal_()
759 if(0 != encoder->protected_->metadata && encoder->protected_->num_metadata_blocks > 0) { in init_stream_internal_()
761 for(i2 = 0; i2 < encoder->protected_->num_metadata_blocks; i2++) { in init_stream_internal_()
762 …if(0 != encoder->protected_->metadata[i2] && encoder->protected_->metadata[i2]->type == FLAC__META… in init_stream_internal_()
763 encoder->private_->seek_table = &encoder->protected_->metadata[i2]->data.seek_table; in init_stream_internal_()
770 if(0 == encoder->protected_->metadata && encoder->protected_->num_metadata_blocks > 0) in init_stream_internal_()
776 for(i = 0; i < encoder->protected_->num_metadata_blocks; i++) { in init_stream_internal_()
777 const FLAC__StreamMetadata *m = encoder->protected_->metadata[i]; in init_stream_internal_()
823 for(i = 0; i < encoder->protected_->channels; i++) { in init_stream_internal_()
836 for(i = 0; i < encoder->protected_->num_apodizations; i++) in init_stream_internal_()
840 for(i = 0; i < encoder->protected_->channels; i++) { in init_stream_internal_()
853 …de_stereo_frames = (unsigned)((double)encoder->protected_->sample_rate * 0.4 / (double)encoder->pr… in init_stream_internal_()
859 FLAC__ASSERT(encoder->protected_->sample_rate <= 655350); in init_stream_internal_()
860 FLAC__ASSERT(encoder->protected_->blocksize <= 65535); in init_stream_internal_()
861 …oint_trunc((((FLAC__uint64)(encoder->protected_->sample_rate) * (FLAC__uint64)(26214)) << 16) / (e… in init_stream_internal_()
893 if(encoder->protected_->max_lpc_order < 4) in init_stream_internal_()
895 else if(encoder->protected_->max_lpc_order < 8) in init_stream_internal_()
897 else if(encoder->protected_->max_lpc_order < 12) in init_stream_internal_()
899 else if(encoder->protected_->max_lpc_order < 16) in init_stream_internal_()
924 if(encoder->protected_->max_lpc_order < 4) in init_stream_internal_()
926 else if(encoder->protected_->max_lpc_order < 8) in init_stream_internal_()
928 else if(encoder->protected_->max_lpc_order < 12) in init_stream_internal_()
930 else if(encoder->protected_->max_lpc_order < 16) in init_stream_internal_()
936 if(encoder->protected_->max_lpc_order < 4) in init_stream_internal_()
938 else if(encoder->protected_->max_lpc_order < 8) in init_stream_internal_()
940 else if(encoder->protected_->max_lpc_order < 12) in init_stream_internal_()
942 else if(encoder->protected_->max_lpc_order < 16) in init_stream_internal_()
988 if(encoder->protected_->max_lpc_order < 4) in init_stream_internal_()
990 else if(encoder->protected_->max_lpc_order < 8) in init_stream_internal_()
992 else if(encoder->protected_->max_lpc_order < 12) in init_stream_internal_()
994 else if(encoder->protected_->max_lpc_order < 16) in init_stream_internal_()
998 if(encoder->protected_->max_lpc_order < 4) in init_stream_internal_()
1000 else if(encoder->protected_->max_lpc_order < 8) in init_stream_internal_()
1002 else if(encoder->protected_->max_lpc_order < 12) in init_stream_internal_()
1004 else if(encoder->protected_->max_lpc_order < 16) in init_stream_internal_()
1072 encoder->protected_->state = FLAC__STREAM_ENCODER_OK; in init_stream_internal_()
1076 if(is_ogg && !FLAC__ogg_encoder_aspect_init(&encoder->protected_->ogg_encoder_aspect)) { in init_stream_internal_()
1077 encoder->protected_->state = FLAC__STREAM_ENCODER_OGG_ERROR; in init_stream_internal_()
1089 if(!resize_buffers_(encoder, encoder->protected_->blocksize)) { in init_stream_internal_()
1095 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in init_stream_internal_()
1102 if(encoder->protected_->verify) { in init_stream_internal_()
1107 encoder->private_->verify.input_fifo.size = encoder->protected_->blocksize+OVERREAD_; in init_stream_internal_()
1108 for(i = 0; i < encoder->protected_->channels; i++) { in init_stream_internal_()
1110 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in init_stream_internal_()
1122 encoder->protected_->state = FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR; in init_stream_internal_()
1128 encoder->protected_->state = FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR; in init_stream_internal_()
1145 encoder->protected_->streaminfo_offset = 0; in init_stream_internal_()
1146 encoder->protected_->seektable_offset = 0; in init_stream_internal_()
1147 encoder->protected_->audio_offset = 0; in init_stream_internal_()
1152 if(encoder->protected_->verify) in init_stream_internal_()
1155 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in init_stream_internal_()
1166 if(encoder->protected_->verify) in init_stream_internal_()
1171 …encoder->private_->streaminfo.data.stream_info.min_blocksize = encoder->protected_->blocksize; /* … in init_stream_internal_()
1172 encoder->private_->streaminfo.data.stream_info.max_blocksize = encoder->protected_->blocksize; in init_stream_internal_()
1175 encoder->private_->streaminfo.data.stream_info.sample_rate = encoder->protected_->sample_rate; in init_stream_internal_()
1176 encoder->private_->streaminfo.data.stream_info.channels = encoder->protected_->channels; in init_stream_internal_()
1177 …encoder->private_->streaminfo.data.stream_info.bits_per_sample = encoder->protected_->bits_per_sam… in init_stream_internal_()
1178 …encoder->private_->streaminfo.data.stream_info.total_samples = encoder->protected_->total_samples_… in init_stream_internal_()
1180 if(encoder->protected_->do_md5) in init_stream_internal_()
1183 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in init_stream_internal_()
1212 vorbis_comment.is_last = (encoder->protected_->num_metadata_blocks == 0); in init_stream_internal_()
1219 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in init_stream_internal_()
1231 for(i = 0; i < encoder->protected_->num_metadata_blocks; i++) { in init_stream_internal_()
1232 encoder->protected_->metadata[i]->is_last = (i == encoder->protected_->num_metadata_blocks - 1); in init_stream_internal_()
1233 if(!FLAC__add_metadata_block(encoder->protected_->metadata[i], encoder->private_->frame)) { in init_stream_internal_()
1234 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in init_stream_internal_()
1244 …->tell_callback && encoder->private_->tell_callback(encoder, &encoder->protected_->audio_offset, e… in init_stream_internal_()
1245 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in init_stream_internal_()
1249 if(encoder->protected_->verify) in init_stream_internal_()
1311 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in init_FILE_internal_()
1316 encoder->protected_->state = FLAC__STREAM_ENCODER_IO_ERROR; in init_FILE_internal_()
1405 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in init_file_internal_()
1411 encoder->protected_->state = FLAC__STREAM_ENCODER_IO_ERROR; in init_file_internal_()
1444 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_finish()
1446 if(encoder->protected_->state == FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_finish()
1449 if(encoder->protected_->state == FLAC__STREAM_ENCODER_OK && !encoder->private_->is_being_deleted) { in FLAC__stream_encoder_finish()
1451 …const FLAC__bool is_fractional_block = encoder->protected_->blocksize != encoder->private_->curren… in FLAC__stream_encoder_finish()
1452 encoder->protected_->blocksize = encoder->private_->current_sample_number; in FLAC__stream_encoder_finish()
1458 if(encoder->protected_->do_md5) in FLAC__stream_encoder_finish()
1462 if(encoder->protected_->state == FLAC__STREAM_ENCODER_OK) { in FLAC__stream_encoder_finish()
1472 if(encoder->protected_->state != FLAC__STREAM_ENCODER_OK) in FLAC__stream_encoder_finish()
1479 …if(encoder->protected_->verify && 0 != encoder->private_->verify.decoder && !FLAC__stream_decoder_… in FLAC__stream_encoder_finish()
1481 encoder->protected_->state = FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA; in FLAC__stream_encoder_finish()
1494 FLAC__ogg_encoder_aspect_finish(&encoder->protected_->ogg_encoder_aspect); in FLAC__stream_encoder_finish()
1501 encoder->protected_->state = FLAC__STREAM_ENCODER_UNINITIALIZED; in FLAC__stream_encoder_finish()
1510 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_ogg_serial_number()
1511 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_ogg_serial_number()
1515 FLAC__ogg_encoder_aspect_set_serial_number(&encoder->protected_->ogg_encoder_aspect, value); in FLAC__stream_encoder_set_ogg_serial_number()
1527 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_verify()
1528 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_verify()
1531 encoder->protected_->verify = value; in FLAC__stream_encoder_set_verify()
1540 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_streamable_subset()
1541 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_streamable_subset()
1543 encoder->protected_->streamable_subset = value; in FLAC__stream_encoder_set_streamable_subset()
1551 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_md5()
1552 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_do_md5()
1554 encoder->protected_->do_md5 = value; in FLAC__stream_encoder_set_do_md5()
1562 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_channels()
1563 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_channels()
1565 encoder->protected_->channels = value; in FLAC__stream_encoder_set_channels()
1573 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_bits_per_sample()
1574 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_bits_per_sample()
1576 encoder->protected_->bits_per_sample = value; in FLAC__stream_encoder_set_bits_per_sample()
1584 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_sample_rate()
1585 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_sample_rate()
1587 encoder->protected_->sample_rate = value; in FLAC__stream_encoder_set_sample_rate()
1596 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_compression_level()
1597 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_compression_level()
1608 encoder->protected_->num_apodizations = 1; in FLAC__stream_encoder_set_compression_level()
1609 encoder->protected_->apodizations[0].type = FLAC__APODIZATION_TUKEY; in FLAC__stream_encoder_set_compression_level()
1610 encoder->protected_->apodizations[0].parameters.tukey.p = 0.5; in FLAC__stream_encoder_set_compression_level()
1628 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_blocksize()
1629 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_blocksize()
1631 encoder->protected_->blocksize = value; in FLAC__stream_encoder_set_blocksize()
1639 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_mid_side_stereo()
1640 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_do_mid_side_stereo()
1642 encoder->protected_->do_mid_side_stereo = value; in FLAC__stream_encoder_set_do_mid_side_stereo()
1650 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_loose_mid_side_stereo()
1651 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_loose_mid_side_stereo()
1653 encoder->protected_->loose_mid_side_stereo = value; in FLAC__stream_encoder_set_loose_mid_side_stereo()
1662 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_apodization()
1664 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_apodization()
1669 encoder->protected_->num_apodizations = 0; in FLAC__stream_encoder_set_apodization()
1674 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1676 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1678 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1680 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1682 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1684 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1688 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.gauss.stddev =… in FLAC__stream_encoder_set_apodization()
1689 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1693 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1695 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1697 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1699 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1701 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1703 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1707 encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.tukey.p = p; in FLAC__stream_encoder_set_apodization()
1708 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1720 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.tukey.p = tuke… in FLAC__stream_encoder_set_apodization()
1721 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1722 }else if (encoder->protected_->num_apodizations + tukey_parts < 32){ in FLAC__stream_encoder_set_apodization()
1725 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.multiple_tukey… in FLAC__stream_encoder_set_apodization()
1726 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.multiple_tukey… in FLAC__stream_encoder_set_apodization()
1727 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.multiple_tukey… in FLAC__stream_encoder_set_apodization()
1728 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1741 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.tukey.p = tuke… in FLAC__stream_encoder_set_apodization()
1742 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1743 }else if (encoder->protected_->num_apodizations + tukey_parts < 32){ in FLAC__stream_encoder_set_apodization()
1746 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.multiple_tukey… in FLAC__stream_encoder_set_apodization()
1747 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.multiple_tukey… in FLAC__stream_encoder_set_apodization()
1748 …encoder->protected_->apodizations[encoder->protected_->num_apodizations].parameters.multiple_tukey… in FLAC__stream_encoder_set_apodization()
1749 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1754 …encoder->protected_->apodizations[encoder->protected_->num_apodizations++].type = FLAC__APODIZATIO… in FLAC__stream_encoder_set_apodization()
1755 if (encoder->protected_->num_apodizations == 32) in FLAC__stream_encoder_set_apodization()
1762 if(encoder->protected_->num_apodizations == 0) { in FLAC__stream_encoder_set_apodization()
1763 encoder->protected_->num_apodizations = 1; in FLAC__stream_encoder_set_apodization()
1764 encoder->protected_->apodizations[0].type = FLAC__APODIZATION_TUKEY; in FLAC__stream_encoder_set_apodization()
1765 encoder->protected_->apodizations[0].parameters.tukey.p = 0.5; in FLAC__stream_encoder_set_apodization()
1775 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_max_lpc_order()
1776 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_max_lpc_order()
1778 encoder->protected_->max_lpc_order = value; in FLAC__stream_encoder_set_max_lpc_order()
1786 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_qlp_coeff_precision()
1787 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_qlp_coeff_precision()
1789 encoder->protected_->qlp_coeff_precision = value; in FLAC__stream_encoder_set_qlp_coeff_precision()
1797 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
1798 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
1800 encoder->protected_->do_qlp_coeff_prec_search = value; in FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
1808 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_escape_coding()
1809 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_do_escape_coding()
1813 encoder->protected_->do_escape_coding = value; in FLAC__stream_encoder_set_do_escape_coding()
1824 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_exhaustive_model_search()
1825 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_do_exhaustive_model_search()
1827 encoder->protected_->do_exhaustive_model_search = value; in FLAC__stream_encoder_set_do_exhaustive_model_search()
1835 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_min_residual_partition_order()
1836 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_min_residual_partition_order()
1838 encoder->protected_->min_residual_partition_order = value; in FLAC__stream_encoder_set_min_residual_partition_order()
1846 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_max_residual_partition_order()
1847 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_max_residual_partition_order()
1849 encoder->protected_->max_residual_partition_order = value; in FLAC__stream_encoder_set_max_residual_partition_order()
1857 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_rice_parameter_search_dist()
1858 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_rice_parameter_search_dist()
1862 encoder->protected_->rice_parameter_search_dist = value; in FLAC__stream_encoder_set_rice_parameter_search_dist()
1873 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_total_samples_estimate()
1874 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_total_samples_estimate()
1877 encoder->protected_->total_samples_estimate = value; in FLAC__stream_encoder_set_total_samples_estimate()
1885 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_metadata()
1886 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_set_metadata()
1893 if(encoder->protected_->metadata) { in FLAC__stream_encoder_set_metadata()
1894 free(encoder->protected_->metadata); in FLAC__stream_encoder_set_metadata()
1895 encoder->protected_->metadata = 0; in FLAC__stream_encoder_set_metadata()
1896 encoder->protected_->num_metadata_blocks = 0; in FLAC__stream_encoder_set_metadata()
1903 encoder->protected_->metadata = m; in FLAC__stream_encoder_set_metadata()
1904 encoder->protected_->num_metadata_blocks = num_blocks; in FLAC__stream_encoder_set_metadata()
1907 …if(!FLAC__ogg_encoder_aspect_set_num_metadata(&encoder->protected_->ogg_encoder_aspect, num_blocks… in FLAC__stream_encoder_set_metadata()
1921 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_disable_constant_subframes()
1922 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_disable_constant_subframes()
1932 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_disable_fixed_subframes()
1933 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_disable_fixed_subframes()
1943 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_disable_verbatim_subframes()
1944 if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) in FLAC__stream_encoder_disable_verbatim_subframes()
1954 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_state()
1955 return encoder->protected_->state; in FLAC__stream_encoder_get_state()
1962 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_verify_decoder_state()
1963 if(encoder->protected_->verify) in FLAC__stream_encoder_get_verify_decoder_state()
1973 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_resolved_state_string()
1974 if(encoder->protected_->state != FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR) in FLAC__stream_encoder_get_resolved_state_string()
1975 return FLAC__StreamEncoderStateString[encoder->protected_->state]; in FLAC__stream_encoder_get_resolved_state_string()
1984 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_verify_decoder_error_stats()
2003 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_verify()
2004 return encoder->protected_->verify; in FLAC__stream_encoder_get_verify()
2011 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_streamable_subset()
2012 return encoder->protected_->streamable_subset; in FLAC__stream_encoder_get_streamable_subset()
2019 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_md5()
2020 return encoder->protected_->do_md5; in FLAC__stream_encoder_get_do_md5()
2027 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_channels()
2028 return encoder->protected_->channels; in FLAC__stream_encoder_get_channels()
2035 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_bits_per_sample()
2036 return encoder->protected_->bits_per_sample; in FLAC__stream_encoder_get_bits_per_sample()
2043 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_sample_rate()
2044 return encoder->protected_->sample_rate; in FLAC__stream_encoder_get_sample_rate()
2051 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_blocksize()
2052 return encoder->protected_->blocksize; in FLAC__stream_encoder_get_blocksize()
2059 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_mid_side_stereo()
2060 return encoder->protected_->do_mid_side_stereo; in FLAC__stream_encoder_get_do_mid_side_stereo()
2067 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_loose_mid_side_stereo()
2068 return encoder->protected_->loose_mid_side_stereo; in FLAC__stream_encoder_get_loose_mid_side_stereo()
2075 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_max_lpc_order()
2076 return encoder->protected_->max_lpc_order; in FLAC__stream_encoder_get_max_lpc_order()
2083 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_qlp_coeff_precision()
2084 return encoder->protected_->qlp_coeff_precision; in FLAC__stream_encoder_get_qlp_coeff_precision()
2091 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
2092 return encoder->protected_->do_qlp_coeff_prec_search; in FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
2099 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_escape_coding()
2100 return encoder->protected_->do_escape_coding; in FLAC__stream_encoder_get_do_escape_coding()
2107 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_exhaustive_model_search()
2108 return encoder->protected_->do_exhaustive_model_search; in FLAC__stream_encoder_get_do_exhaustive_model_search()
2115 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_min_residual_partition_order()
2116 return encoder->protected_->min_residual_partition_order; in FLAC__stream_encoder_get_min_residual_partition_order()
2123 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_max_residual_partition_order()
2124 return encoder->protected_->max_residual_partition_order; in FLAC__stream_encoder_get_max_residual_partition_order()
2131 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_rice_parameter_search_dist()
2132 return encoder->protected_->rice_parameter_search_dist; in FLAC__stream_encoder_get_rice_parameter_search_dist()
2139 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_total_samples_estimate()
2140 return encoder->protected_->total_samples_estimate; in FLAC__stream_encoder_get_total_samples_estimate()
2146 …const unsigned channels = encoder->protected_->channels, blocksize = encoder->protected_->blocksiz… in FLAC__stream_encoder_process()
2150 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_process()
2151 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in FLAC__stream_encoder_process()
2156 if(encoder->protected_->verify) in FLAC__stream_encoder_process()
2166 if(encoder->protected_->do_mid_side_stereo) { in FLAC__stream_encoder_process()
2188 if(encoder->protected_->do_mid_side_stereo) { in FLAC__stream_encoder_process()
2203 …const unsigned channels = encoder->protected_->channels, blocksize = encoder->protected_->blocksiz… in FLAC__stream_encoder_process_interleaved()
2207 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_process_interleaved()
2208 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in FLAC__stream_encoder_process_interleaved()
2215 if(encoder->protected_->do_mid_side_stereo && channels == 2) { in FLAC__stream_encoder_process_interleaved()
2220 if(encoder->protected_->verify) in FLAC__stream_encoder_process_interleaved()
2255 if(encoder->protected_->verify) in FLAC__stream_encoder_process_interleaved()
2292 encoder->protected_->verify = true; in set_defaults_()
2294 encoder->protected_->verify = false; in set_defaults_()
2296 encoder->protected_->streamable_subset = true; in set_defaults_()
2297 encoder->protected_->do_md5 = true; in set_defaults_()
2298 encoder->protected_->do_mid_side_stereo = false; in set_defaults_()
2299 encoder->protected_->loose_mid_side_stereo = false; in set_defaults_()
2300 encoder->protected_->channels = 2; in set_defaults_()
2301 encoder->protected_->bits_per_sample = 16; in set_defaults_()
2302 encoder->protected_->sample_rate = 44100; in set_defaults_()
2303 encoder->protected_->blocksize = 0; in set_defaults_()
2305 encoder->protected_->num_apodizations = 1; in set_defaults_()
2306 encoder->protected_->apodizations[0].type = FLAC__APODIZATION_TUKEY; in set_defaults_()
2307 encoder->protected_->apodizations[0].parameters.tukey.p = 0.5; in set_defaults_()
2309 encoder->protected_->max_lpc_order = 0; in set_defaults_()
2310 encoder->protected_->qlp_coeff_precision = 0; in set_defaults_()
2311 encoder->protected_->do_qlp_coeff_prec_search = false; in set_defaults_()
2312 encoder->protected_->do_exhaustive_model_search = false; in set_defaults_()
2313 encoder->protected_->do_escape_coding = false; in set_defaults_()
2314 encoder->protected_->min_residual_partition_order = 0; in set_defaults_()
2315 encoder->protected_->max_residual_partition_order = 0; in set_defaults_()
2316 encoder->protected_->rice_parameter_search_dist = 0; in set_defaults_()
2317 encoder->protected_->total_samples_estimate = 0; in set_defaults_()
2318 encoder->protected_->metadata = 0; in set_defaults_()
2319 encoder->protected_->num_metadata_blocks = 0; in set_defaults_()
2335 FLAC__ogg_encoder_aspect_set_defaults(&encoder->protected_->ogg_encoder_aspect); in set_defaults_()
2346 if(encoder->protected_->metadata) { in free_()
2347 free(encoder->protected_->metadata); in free_()
2348 encoder->protected_->metadata = 0; in free_()
2349 encoder->protected_->num_metadata_blocks = 0; in free_()
2351 for(i = 0; i < encoder->protected_->channels; i++) { in free_()
2376 for(i = 0; i < encoder->protected_->num_apodizations; i++) { in free_()
2387 for(channel = 0; channel < encoder->protected_->channels; channel++) { in free_()
2411 if(encoder->protected_->verify) { in free_()
2412 for(i = 0; i < encoder->protected_->channels; i++) { in free_()
2428 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in resize_buffers_()
2443 for(i = 0; ok && i < encoder->protected_->channels; i++) { in resize_buffers_()
2449 if(encoder->protected_->max_lpc_order > 0) in resize_buffers_()
2460 if(encoder->protected_->max_lpc_order > 0) in resize_buffers_()
2466 if(ok && encoder->protected_->max_lpc_order > 0) { in resize_buffers_()
2467 for(i = 0; ok && i < encoder->protected_->num_apodizations; i++) in resize_buffers_()
2472 for(channel = 0; ok && channel < encoder->protected_->channels; channel++) { in resize_buffers_()
2485 if(encoder->protected_->do_escape_coding) in resize_buffers_()
2490 …if(ok && new_blocksize != encoder->private_->input_capacity && encoder->protected_->max_lpc_order … in resize_buffers_()
2491 for(i = 0; ok && i < encoder->protected_->num_apodizations; i++) { in resize_buffers_()
2492 switch(encoder->protected_->apodizations[i].type) { in resize_buffers_()
2512 …FLAC__window_gauss(encoder->private_->window[i], new_blocksize, encoder->protected_->apodizations[… in resize_buffers_()
2533 …FLAC__window_tukey(encoder->private_->window[i], new_blocksize, encoder->protected_->apodizations[… in resize_buffers_()
2536 …r->protected_->apodizations[i].parameters.multiple_tukey.p, encoder->protected_->apodizations[i].p… in resize_buffers_()
2539 …r->protected_->apodizations[i].parameters.multiple_tukey.p, encoder->protected_->apodizations[i].p… in resize_buffers_()
2557 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in resize_buffers_()
2570 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in write_bitbuffer_()
2574 if(encoder->protected_->verify) { in write_bitbuffer_()
2584 if(encoder->protected_->state != FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA) in write_bitbuffer_()
2585 encoder->protected_->state = FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR; in write_bitbuffer_()
2594 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in write_bitbuffer_()
2620 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in write_frame_()
2630 encoder->protected_->streaminfo_offset = output_position; in write_frame_()
2631 else if(type == FLAC__METADATA_TYPE_SEEKTABLE && encoder->protected_->seektable_offset == 0) in write_frame_()
2632 encoder->protected_->seektable_offset = output_position; in write_frame_()
2640 …if(0 != encoder->private_->seek_table && encoder->protected_->audio_offset > 0 && encoder->private… in write_frame_()
2653 …encoder->private_->seek_table->points[i].stream_offset = output_position - encoder->protected_->au… in write_frame_()
2672 &encoder->protected_->ogg_encoder_aspect, in write_frame_()
2697 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in write_frame_()
2737 …if((seek_status = encoder->private_->seek_callback(encoder, encoder->protected_->streaminfo_offset… in update_metadata_()
2739 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2743 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2770 …if((seek_status = encoder->private_->seek_callback(encoder, encoder->protected_->streaminfo_offset… in update_metadata_()
2772 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2776 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2798 …if((seek_status = encoder->private_->seek_callback(encoder, encoder->protected_->streaminfo_offset… in update_metadata_()
2800 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2804 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2812 …eek_table && encoder->private_->seek_table->num_points > 0 && encoder->protected_->seektable_offse… in update_metadata_()
2819 …if((seek_status = encoder->private_->seek_callback(encoder, encoder->protected_->seektable_offset … in update_metadata_()
2821 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2850 encoder->protected_->state = FLAC__STREAM_ENCODER_CLIENT_ERROR; in update_metadata_()
2895 …if(!simple_ogg_page__get_at(encoder, encoder->protected_->streaminfo_offset, &page, encoder->priva… in update_ogg_metadata_()
2919 encoder->protected_->state = FLAC__STREAM_ENCODER_OGG_ERROR; in update_ogg_metadata_()
2945 encoder->protected_->state = FLAC__STREAM_ENCODER_OGG_ERROR; in update_ogg_metadata_()
2971 encoder->protected_->state = FLAC__STREAM_ENCODER_OGG_ERROR; in update_ogg_metadata_()
2983 …if(!simple_ogg_page__set_at(encoder, encoder->protected_->streaminfo_offset, &page, encoder->priva… in update_ogg_metadata_()
2992 …eek_table && encoder->private_->seek_table->num_points > 0 && encoder->protected_->seektable_offse… in update_ogg_metadata_()
3001 …if(!simple_ogg_page__get_at(encoder, encoder->protected_->seektable_offset, &page, encoder->privat… in update_ogg_metadata_()
3007 encoder->protected_->state = FLAC__STREAM_ENCODER_OGG_ERROR; in update_ogg_metadata_()
3039 …if(!simple_ogg_page__set_at(encoder, encoder->protected_->seektable_offset, &page, encoder->privat… in update_ogg_metadata_()
3051 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in process_frame_()
3056protected_->do_md5 && !FLAC__MD5Accumulate(&encoder->private_->md5context, (const FLAC__int32 * co… in process_frame_()
3057 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in process_frame_()
3073 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in process_frame_()
3085 encoder->protected_->state = FLAC__STREAM_ENCODER_MEMORY_ALLOCATION_ERROR; in process_frame_()
3092 if(!write_bitbuffer_(encoder, encoder->protected_->blocksize, is_last_block)) { in process_frame_()
3102 …encoder->private_->streaminfo.data.stream_info.total_samples += (FLAC__uint64)encoder->protected_-… in process_frame_()
3110 …unsigned channel, min_partition_order = encoder->protected_->min_residual_partition_order, max_par… in process_subframes_()
3120 …n_order = FLAC__format_get_max_rice_partition_order_from_blocksize(encoder->protected_->blocksize); in process_subframes_()
3121 …max_partition_order = flac_min(max_partition_order, encoder->protected_->max_residual_partition_or… in process_subframes_()
3128 frame_header.blocksize = encoder->protected_->blocksize; in process_subframes_()
3129 frame_header.sample_rate = encoder->protected_->sample_rate; in process_subframes_()
3130 frame_header.channels = encoder->protected_->channels; in process_subframes_()
3132 frame_header.bits_per_sample = encoder->protected_->bits_per_sample; in process_subframes_()
3139 if(encoder->protected_->do_mid_side_stereo) { in process_subframes_()
3140 if(encoder->protected_->loose_mid_side_stereo) { in process_subframes_()
3166 for(channel = 0; channel < encoder->protected_->channels; channel++) { in process_subframes_()
3167 …unsigned w = get_wasted_bits_(encoder->private_->integer_signal[channel], encoder->protected_->blo… in process_subframes_()
3168 if (w > encoder->protected_->bits_per_sample) { in process_subframes_()
3169 w = encoder->protected_->bits_per_sample; in process_subframes_()
3172 encoder->private_->subframe_bps[channel] = encoder->protected_->bits_per_sample - w; in process_subframes_()
3176 FLAC__ASSERT(encoder->protected_->channels == 2); in process_subframes_()
3178 …_wasted_bits_(encoder->private_->integer_signal_mid_side[channel], encoder->protected_->blocksize); in process_subframes_()
3179 if (w > encoder->protected_->bits_per_sample) { in process_subframes_()
3180 w = encoder->protected_->bits_per_sample; in process_subframes_()
3183 …encoder->private_->subframe_bps_mid_side[channel] = encoder->protected_->bits_per_sample - w + (ch… in process_subframes_()
3191 for(channel = 0; channel < encoder->protected_->channels; channel++) { in process_subframes_()
3215 FLAC__ASSERT(encoder->protected_->channels == 2); in process_subframes_()
3245 FLAC__ASSERT(encoder->protected_->channels == 2); in process_subframes_()
3247 …if(encoder->protected_->loose_mid_side_stereo && encoder->private_->loose_mid_side_stereo_frame_co… in process_subframes_()
3280 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in process_subframes_()
3334 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in process_subframes_()
3338 for(channel = 0; channel < encoder->protected_->channels; channel++) { in process_subframes_()
3346 if(encoder->protected_->loose_mid_side_stereo) { in process_subframes_()
3432 …if(!encoder->private_->disable_fixed_subframes || (encoder->protected_->max_lpc_order == 0 && _bes… in process_subframe_()
3434 if(encoder->protected_->do_exhaustive_model_search) { in process_subframe_()
3474 encoder->protected_->do_escape_coding, in process_subframe_()
3475 encoder->protected_->rice_parameter_search_dist, in process_subframe_()
3488 if(encoder->protected_->max_lpc_order > 0) { in process_subframe_()
3489 if(encoder->protected_->max_lpc_order >= frame_header->blocksize) in process_subframe_()
3492 max_lpc_order = encoder->protected_->max_lpc_order; in process_subframe_()
3495 for (a = 0; a < encoder->protected_->num_apodizations; a++) { in process_subframe_()
3501 if(encoder->protected_->do_exhaustive_model_search) { in process_subframe_()
3511 encoder->protected_->do_qlp_coeff_prec_search? in process_subframe_()
3513 encoder->protected_->qlp_coeff_precision in process_subframe_()
3532 if(encoder->protected_->do_qlp_coeff_prec_search) { in process_subframe_()
3543 … min_qlp_coeff_precision = max_qlp_coeff_precision = encoder->protected_->qlp_coeff_precision; in process_subframe_()
3562 encoder->protected_->do_escape_coding, in process_subframe_()
3563 encoder->protected_->rice_parameter_search_dist, in process_subframe_()
3606 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in add_subframe_()
3612 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in add_subframe_()
3618 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in add_subframe_()
3624 encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR; in add_subframe_()
4422 encoder->protected_->state = FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA;
4443 encoder->protected_->state = FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR;