Lines Matching refs:current_length
1111 FLAC__off_t current_length = chain_calculate_length_(chain); in chain_prepare_for_write_() local
1115 …if(current_length < chain->initial_length && chain->tail->data->type == FLAC__METADATA_TYPE_PADDIN… in chain_prepare_for_write_()
1116 const FLAC__off_t delta = chain->initial_length - current_length; in chain_prepare_for_write_()
1118 current_length += delta; in chain_prepare_for_write_()
1119 FLAC__ASSERT(current_length == chain->initial_length); in chain_prepare_for_write_()
1122 …else if(current_length + (FLAC__off_t)FLAC__STREAM_METADATA_HEADER_LENGTH <= chain->initial_length… in chain_prepare_for_write_()
1129 padding->length = chain->initial_length - (FLAC__STREAM_METADATA_HEADER_LENGTH + current_length); in chain_prepare_for_write_()
1137 current_length = chain_calculate_length_(chain); in chain_prepare_for_write_()
1138 FLAC__ASSERT(current_length == chain->initial_length); in chain_prepare_for_write_()
1141 else if(current_length > chain->initial_length) { in chain_prepare_for_write_()
1142 const FLAC__off_t delta = current_length - chain->initial_length; in chain_prepare_for_write_()
1147 current_length = chain_calculate_length_(chain); in chain_prepare_for_write_()
1148 FLAC__ASSERT(current_length == chain->initial_length); in chain_prepare_for_write_()
1153 current_length -= delta; in chain_prepare_for_write_()
1154 FLAC__ASSERT(current_length == chain->initial_length); in chain_prepare_for_write_()
1167 current_length = chain_calculate_length_(chain); in chain_prepare_for_write_()
1176 return current_length; in chain_prepare_for_write_()
1634 FLAC__off_t current_length; in FLAC__metadata_chain_check_if_tempfile_needed() local
1640 current_length = chain_calculate_length_(chain); in FLAC__metadata_chain_check_if_tempfile_needed()
1645 if(current_length < chain->initial_length && node->data->type == FLAC__METADATA_TYPE_PADDING) { in FLAC__metadata_chain_check_if_tempfile_needed()
1647 lbs_size = node->data->length + (chain->initial_length - current_length); in FLAC__metadata_chain_check_if_tempfile_needed()
1650 …else if(current_length + (FLAC__off_t)FLAC__STREAM_METADATA_HEADER_LENGTH <= chain->initial_length… in FLAC__metadata_chain_check_if_tempfile_needed()
1652 …lbs_size = chain->initial_length - (current_length + (FLAC__off_t)FLAC__STREAM_METADATA_HEADER_LEN… in FLAC__metadata_chain_check_if_tempfile_needed()
1655 else if(current_length > chain->initial_length) { in FLAC__metadata_chain_check_if_tempfile_needed()
1656 const FLAC__off_t delta = current_length - chain->initial_length; in FLAC__metadata_chain_check_if_tempfile_needed()
1672 current_length = 0; in FLAC__metadata_chain_check_if_tempfile_needed()
1690 current_length += (FLAC__STREAM_METADATA_HEADER_LENGTH + block_len); in FLAC__metadata_chain_check_if_tempfile_needed()
1698 current_length += (FLAC__STREAM_METADATA_HEADER_LENGTH + block_len); in FLAC__metadata_chain_check_if_tempfile_needed()
1702 return (current_length != chain->initial_length); in FLAC__metadata_chain_check_if_tempfile_needed()
1709 FLAC__off_t current_length; in FLAC__metadata_chain_write() local
1723 current_length = chain_prepare_for_write_(chain, use_padding); in FLAC__metadata_chain_write()
1726 if (0 == current_length) in FLAC__metadata_chain_write()
1732 if(current_length == chain->initial_length) { in FLAC__metadata_chain_write()
1743 chain->initial_length = current_length; in FLAC__metadata_chain_write()
1758 FLAC__off_t current_length; in FLAC__metadata_chain_write_with_callbacks() local
1782 current_length = chain_prepare_for_write_(chain, use_padding); in FLAC__metadata_chain_write_with_callbacks()
1785 if (0 == current_length) in FLAC__metadata_chain_write_with_callbacks()
1788 FLAC__ASSERT(current_length == chain->initial_length); in FLAC__metadata_chain_write_with_callbacks()
1795 FLAC__off_t current_length; in FLAC__metadata_chain_write_with_callbacks_and_tempfile() local
1823 current_length = chain_prepare_for_write_(chain, use_padding); in FLAC__metadata_chain_write_with_callbacks_and_tempfile()
1826 if (0 == current_length) in FLAC__metadata_chain_write_with_callbacks_and_tempfile()
1829 FLAC__ASSERT(current_length != chain->initial_length); in FLAC__metadata_chain_write_with_callbacks_and_tempfile()
1843 chain->initial_length = current_length; in FLAC__metadata_chain_write_with_callbacks_and_tempfile()