Lines Matching refs:varname
63 \varname{[vorbis_version]} is to read '0' in order to be compatible
64 with this document. Both \varname{[audio_channels]} and
65 \varname{[audio_sample_rate]} must read greater than zero. Allowed final
67 Vorbis I. \varname{[blocksize_0]} must be less than or equal to
68 \varname{[blocksize_1]}. The framing bit must be nonzero. Failure to
111 \item \varname{[vorbis_codebook_count]} = read eight bits as unsigned integer and add one
112 \item Decode \varname{[vorbis_codebook_count]} codebooks in order as defined
115 codebook configurations \varname{[vorbis_codebook_configurations]}.
127 \item \varname{[vorbis_time_count]} = read 6 bits as unsigned integer and add one
128 \item read \varname{[vorbis_time_count]} 16 bit values; each value should be zero. If any value is nonzero, this is an error condition and the stream is undecodable.
139 \item \varname{[vorbis_floor_count]} = read 6 bits as unsigned integer and add one
140 \item For each \varname{[i]} of \varname{[vorbis_floor_count]} floor numbers:
142 \item read the floor type: vector \varname{[vorbis_floor_types]} element \varname{[i]} =
147 configuration in slot \varname{[i]} of the floor configuration array \varname{[vorbis_floor_configurations]}.
149 decode the floor configuration as defined in \xref{vorbis:spec:floor1}; save this configuration in slot \varname{[i]} of the floor configuration array \varname{[vorbis_floor_configurations]}.
163 \item \varname{[vorbis_residue_count]} = read 6 bits as unsigned integer and add one
165 \item For each of \varname{[vorbis_residue_count]} residue numbers:
167 \item read the residue type; vector \varname{[vorbis_residue_types]} element \varname{[i]} = read 16 bits as unsigned integer
169 one or two, decode the residue configuration as defined in \xref{vorbis:spec:residue}; save this configuration in slot \varname{[i]} of the residue configuration array \varname{[vorbis_residue_configurations]}.
188 \item \varname{[vorbis_mapping_count]} = read 6 bits as unsigned integer and add one
189 \item For each \varname{[i]} of \varname{[vorbis_mapping_count]} mapping numbers:
197 \item if set, \varname{[vorbis_mapping_submaps]} = read 4 bits as unsigned integer and add one
198 \item if unset, \varname{[vorbis_mapping_submaps]} = 1
206 \item \varname{[vorbis_mapping_coupling_steps]} = read 8 bits as unsigned integer and add one
207 \item for \varname{[j]} each of \varname{[vorbis_mapping_coupling_steps]} steps:
209 \item vector \varname{[vorbis_mapping_magnitude]} element \varname{[j]}= read \link{vorbis:spec:ilog}{ilog}(\varname{[audio_channels]} - 1) bits as unsigned integer
210 \item vector \varname{[vorbis_mapping_angle]} element \varname{[j]}= read \link{vorbis:spec:ilog}{ilog}(\varname{[audio_channels]} - 1) bits as unsigned integer
211 \item the numbers read in the above two steps are channel numbers representing the channel to treat as magnitude and the channel to treat as angle, respectively. If for any coupling step the angle channel number equals the magnitude channel number, the magnitude channel number is greater than \varname{[audio_channels]}-1, or the angle channel is greater than \varname{[audio_channels]}-1, the stream is undecodable.
218 \item if unset, \varname{[vorbis_mapping_coupling_steps]} = 0
223 \item if \varname{[vorbis_mapping_submaps]} is greater than one, we read channel multiplex settings. For each \varname{[j]} of \varname{[audio_channels]} channels:
225 \item vector \varname{[vorbis_mapping_mux]} element \varname{[j]} = read 4 bits as unsigned integer
226 \item if the value is greater than the highest numbered submap (\varname{[vorbis_mapping_submaps]} - 1), this in an error condition rendering the stream undecodable
229 \item for each submap \varname{[j]} of \varname{[vorbis_mapping_submaps]} submaps, read the floor and residue numbers for use in decoding that submap:
232 \item read 8 bits as unsigned integer for the floor number; save in vector \varname{[vorbis_mapping_submap_floor]} element \varname{[j]}
234 \item read 8 bits as unsigned integer for the residue number; save in vector \varname{[vorbis_mapping_submap_residue]} element \varname{[j]}
238 \item save this mapping configuration in slot \varname{[i]} of the mapping configuration array \varname{[vorbis_mapping_configurations]}.
250 \item \varname{[vorbis_mode_count]} = read 6 bits as unsigned integer and add one
251 \item For each of \varname{[vorbis_mode_count]} mode numbers:
253 \item \varname{[vorbis_mode_blockflag]} = read 1 bit
254 \item \varname{[vorbis_mode_windowtype]} = read 16 bits as unsigned integer
255 \item \varname{[vorbis_mode_transformtype]} = read 16 bits as unsigned integer
256 \item \varname{[vorbis_mode_mapping]} = read 8 bits as unsigned integer
258 \varname{[vorbis_mode_windowtype]}
259 and \varname{[vorbis_mode_transformtype]}. \varname{[vorbis_mode_mapping]} must not be greater than the highest number mapping in use. Any illegal values render the stream undecodable.
260 \item save this mode configuration in slot \varname{[i]} of the mode configuration array
261 \varname{[vorbis_mode_configurations]}.
289 \item read 1 bit \varname{[packet_type]}; check that packet type is 0 (audio)
291 \varname{[mode_number]}
292 \item decode blocksize \varname{[n]} is equal to \varname{[blocksize_0]} if
293 \varname{[vorbis_mode_blockflag]} is 0, else \varname{[n]} is equal to \varname{[blocksize_1]}.
296 \item if this is a long window (the \varname{[vorbis_mode_blockflag]} flag of this mode is
299 \item read 1 bit for \varname{[previous_window_flag]}
300 \item read 1 bit for \varname{[next_window_flag]}
301 \item if \varname{[previous_window_flag]} is not set, the left half
307 \item if \varname{[next_window_flag]} is not set, the right half of
327 \item \varname{[window_center]} = \varname{[n]} / 2
328 \item if (\varname{[vorbis_mode_blockflag]} is set and \varname{[previous_window_flag]} is
331 \item \varname{[left_window_start]} = \varname{[n]}/4 -
332 \varname{[blocksize_0]}/4
333 \item \varname{[left_window_end]} = \varname{[n]}/4 + \varname{[blocksize_0]}/4
334 \item \varname{[left_n]} = \varname{[blocksize_0]}/2
338 \item \varname{[left_window_start]} = 0
339 \item \varname{[left_window_end]} = \varname{[window_center]}
340 \item \varname{[left_n]} = \varname{[n]}/2
343 \item if (\varname{[vorbis_mode_blockflag]} is set and \varname{[next_window_flag]} is not
346 \item \varname{[right_window_start]} = \varname{[n]*3}/4 -
347 \varname{[blocksize_0]}/4
348 \item \varname{[right_window_end]} = \varname{[n]*3}/4 +
349 \varname{[blocksize_0]}/4
350 \item \varname{[right_n]} = \varname{[blocksize_0]}/2
354 \item \varname{[right_window_start]} = \varname{[window_center]}
355 \item \varname{[right_window_end]} = \varname{[n]}
356 \item \varname{[right_n]} = \varname{[n]}/2
359 \item window from range 0 ... \varname{[left_window_start]}-1 inclusive is zero
360 \item for \varname{[i]} in range \varname{[left_window_start]} ...
361 \varname{[left_window_end]}-1, window(\varname{[i]}) = $\sin(\frac{\pi}{2} * \sin^2($ (\varname{[i]}-\varname{[left_window_start]}+0.5) / \varname{[left_n]} $* \frac{\pi}{2})$ )
362 \item window from range \varname{[left_window_end]} ... \varname{[right_window_start]}-1
363 inclusive is one\item for \varname{[i]} in range \varname{[right_window_start]} ... \varname{[right_window_end]}-1, window(\varname{[i]}) = $\sin(\frac{\pi}{2} * \sin^2($ (\varname{[i]}-\varname{[right_window_start]}+0.5) / \varname{[right_n]} $ * \frac{\pi}{2} + \frac{\pi}{2})$ )
364 \item window from range \varname{[right_window_start]} ... \varname{[n]}-1 is
378 \varname{[mode_number]} from configuration array
379 \varname{[vorbis_mode_configurations]} and the map number
380 \varname{[vorbis_mode_mapping]} (specified by the current mode) taken
382 \varname{[vorbis_mapping_configurations]}.
386 For each floor \varname{[i]} of \varname{[audio_channels]}
388 \item \varname{[submap_number]} = element \varname{[i]} of vector [vorbis_mapping_mux]
389 \item \varname{[floor_number]} = element \varname{[submap_number]} of vector
392 floor (vector \varname{[vorbis_floor_types]} element
393 \varname{[floor_number]}) is zero then decode the floor for
394 channel \varname{[i]} according to the
397 is one then decode the floor for channel \varname{[i]} according
400 \item if the decoded floor returned 'unused', set vector \varname{[no_residue]} element
401 \varname{[i]} to true, else set vector \varname{[no_residue]} element \varname{[i]} to
421 for each \varname{[i]} from 0 ... \varname{[vorbis_mapping_coupling_steps]}-1
424 \item if either \varname{[no_residue]} entry for channel
425 (\varname{[vorbis_mapping_magnitude]} element \varname{[i]})
427 (\varname{[vorbis_mapping_angle]} element \varname{[i]})
441 for each submap \varname{[i]} in order from 0 ... \varname{[vorbis_mapping_submaps]}-1
444 \item \varname{[ch]} = 0
445 \item for each channel \varname{[j]} in order from 0 ... \varname{[audio_channels]} - 1
447 \item if channel \varname{[j]} in submap \varname{[i]} (vector \varname{[vorbis_mapping_mux]} element \varname{[j]} is equal to \varname{[i]})
449 \item if vector \varname{[no_residue]} element \varname{[j]} is true
451 \item vector \varname{[do_not_decode_flag]} element \varname{[ch]} is set
455 \item vector \varname{[do_not_decode_flag]} element \varname{[ch]} is unset
458 \item increment \varname{[ch]}
462 \item \varname{[residue_number]} = vector \varname{[vorbis_mapping_submap_residue]} element \varname{[i]}
463 \item \varname{[residue_type]} = vector \varname{[vorbis_residue_types]} element \varname{[residue_number]}
464 \item decode \varname{[ch]} vectors using residue \varname{[residue_number]}, according to type \varname{[residue_type]}, also passing vector \varname{[do_not_decode_flag]} to indicate which vectors in the bundle should not be decoded. Correct per-vector decode length is \varname{[n]}/2.
465 \item \varname{[ch]} = 0
466 \item for each channel \varname{[j]} in order from 0 ... \varname{[audio_channels]}
468 \item if channel \varname{[j]} is in submap \varname{[i]} (vector \varname{[vorbis_mapping_mux]} element \varname{[j]} is equal to \varname{[i]})
470 \item residue vector for channel \varname{[j]} is set to decoded residue vector \varname{[ch]}
471 \item increment \varname{[ch]}
482 for each \varname{[i]} from \varname{[vorbis_mapping_coupling_steps]}-1 descending to 0
485 \item \varname{[magnitude_vector]} = the residue vector for channel
486 (vector \varname{[vorbis_mapping_magnitude]} element \varname{[i]})
487 \item \varname{[angle_vector]} = the residue vector for channel (vector
488 \varname{[vorbis_mapping_angle]} element \varname{[i]})
489 \item for each scalar value \varname{[M]} in vector \varname{[magnitude_vector]} and the corresponding scalar value \varname{[A]} in vector \varname{[angle_vector]}:
491 \item if (\varname{[M]} is greater than zero)
493 \item if (\varname{[A]} is greater than zero)
495 \item \varname{[new_M]} = \varname{[M]}
496 \item \varname{[new_A]} = \varname{[M]}-\varname{[A]}
500 \item \varname{[new_A]} = \varname{[M]}
501 \item \varname{[new_M]} = \varname{[M]}+\varname{[A]}
507 \item if (\varname{[A]} is greater than zero)
509 \item \varname{[new_M]} = \varname{[M]}
510 \item \varname{[new_A]} = \varname{[M]}+\varname{[A]}
514 \item \varname{[new_A]} = \varname{[M]}
515 \item \varname{[new_M]} = \varname{[M]}-\varname{[A]}
520 \item set scalar value \varname{[M]} in vector \varname{[magnitude_vector]} to \varname{[new_M]}
521 \item set scalar value \varname{[A]} in vector \varname{[angle_vector]} to \varname{[new_A]}
533 length for floor computation is \varname{[n]}/2.
538 vectors are the length \varname{[n]}/2 audio spectrum for each