Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:streaminfo

364 	FLAC__StreamMetadata streaminfo;                  /* scratchpad for STREAMINFO as it is built */
1050 * write the STREAMINFO metadata block
1054 encoder->private_->streaminfo.type = FLAC__METADATA_TYPE_STREAMINFO;
1055 encoder->private_->streaminfo.is_last = false; /* we will have at a minimum a VORBIS_COMMENT afterwards */
1056 encoder->private_->streaminfo.length = FLAC__STREAM_METADATA_STREAMINFO_LENGTH;
1057 encoder->private_->streaminfo.data.stream_info.min_blocksize = encoder->protected_->blocksize; /* this encoder uses the same blocksize for the whole stream */
1058 encoder->private_->streaminfo.data.stream_info.max_blocksize = encoder->protected_->blocksize;
1059 encoder->private_->streaminfo.data.stream_info.min_framesize = 0; /* we don't know this yet; have to fill it in later */
1060 encoder->private_->streaminfo.data.stream_info.max_framesize = 0; /* we don't know this yet; have to fill it in later */
1061 encoder->private_->streaminfo.data.stream_info.sample_rate = encoder->protected_->sample_rate;
1062 encoder->private_->streaminfo.data.stream_info.channels = encoder->protected_->channels;
1063 encoder->private_->streaminfo.data.stream_info.bits_per_sample = encoder->protected_->bits_per_sample;
1064 encoder->private_->streaminfo.data.stream_info.total_samples = encoder->protected_->total_samples_estimate; /* we will replace this later with the real total */
1065 memset(encoder->private_->streaminfo.data.stream_info.md5sum, 0, 16); /* we don't know this yet; have to fill it in later */
1068 if(!FLAC__add_metadata_block(&encoder->private_->streaminfo, encoder->private_->frame)) {
1078 * Now that the STREAMINFO block is written, we can init this to an
1081 encoder->private_->streaminfo.data.stream_info.min_framesize = (1u << FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN) - 1;
1083 encoder->private_->streaminfo.data.stream_info.total_samples = 0;
1091 * the STREAMINFO. (In the case that metadata_has_vorbis_comment is
1337 FLAC__MD5Final(encoder->private_->streaminfo.data.stream_info.md5sum, &encoder->private_->md5context);
1354 encoder->private_->metadata_callback(encoder, &encoder->private_->streaminfo, encoder->private_->client_data);
2428 encoder->private_->streaminfo.data.stream_info.min_framesize = min(bytes, encoder->private_->streaminfo.data.stream_info.min_framesize);
2429 encoder->private_->streaminfo.data.stream_info.max_framesize = max(bytes, encoder->private_->streaminfo.data.stream_info.max_framesize);
2447 * Watch for the STREAMINFO block and first SEEKTABLE block to go by and store their offsets.
2524 /* Gets called when the encoding process has finished so that we can update the STREAMINFO and SEEKTABLE blocks. */
2528 const FLAC__StreamMetadata *metadata = &encoder->private_->streaminfo;
2680 /* Gets called when the encoding process has finished so that we can update the STREAMINFO and SEEKTABLE blocks. */
2683 /* the # of bytes in the 1st packet that precede the STREAMINFO */
2693 const FLAC__StreamMetadata *metadata = &encoder->private_->streaminfo;
2714 ** Write STREAMINFO stats
2924 encoder->private_->streaminfo.data.stream_info.total_samples += (FLAC__uint64)encoder->protected_->blocksize;