本文整理了Java中javazoom.jl.decoder.Bitstream.get_bits()
方法的一些代码示例,展示了Bitstream.get_bits()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bitstream.get_bits()
方法的具体详情如下:
包路径:javazoom.jl.decoder.Bitstream
类名称:Bitstream
方法名:get_bits
[英]Read bits from buffer into the lower bits of an unsigned int. The LSB contains the latest read bit of the stream. (1
[中]从缓冲区读取位到无符号整数的低位。LSB包含流的最新读取位。(1
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
/**
*
*/
public void read_scalefactor (Bitstream stream, Header header) {
if (allocation != 0) scalefactor = scalefactors[stream.get_bits(6)];
if (channel2_allocation != 0) channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
代码示例来源:origin: tulskiy/musique
/**
*
*/
public void read_scalefactor(Bitstream stream, Header header) {
if (allocation != 0) scalefactor = scalefactors[stream.get_bits(6)];
if (channel2_allocation != 0) channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
代码示例来源:origin: javazoom/jlayer
public int readCheckedBits(int n)
{
// REVIEW: implement CRC check.
return get_bits(n);
}
代码示例来源:origin: com.googlecode.soundlibs/jlayer
/**
*
*/
public void read_scalefactor (Bitstream stream, Header header)
{
if (allocation != 0)
{
scalefactor = scalefactors[stream.get_bits(6)];
channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
}
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
/**
*
*/
public void read_scalefactor (Bitstream stream, Header header) {
if (allocation != 0) {
scalefactor = scalefactors[stream.get_bits(6)];
channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
}
代码示例来源:origin: javazoom/jlayer
/**
*
*/
public void read_scalefactor (Bitstream stream, Header header)
{
if (allocation != 0)
{
scalefactor = scalefactors[stream.get_bits(6)];
channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
}
代码示例来源:origin: com.googlecode.soundlibs/jlayer
/**
*
*/
public void read_scalefactor(Bitstream stream, Header header)
{
if (allocation != 0) scalefactor = scalefactors[stream.get_bits(6)];
if (channel2_allocation != 0) channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
/**
*
*/
public boolean read_sampledata (Bitstream stream) {
if (allocation != 0) sample = stream.get_bits(samplelength);
if (++samplenumber == 12) {
samplenumber = 0;
return true;
}
return false;
}
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
public int readCheckedBits (int n) {
// REVIEW: implement CRC check.
return get_bits(n);
}
代码示例来源:origin: javazoom/jlayer
/**
*
*/
public void read_scalefactor(Bitstream stream, Header header)
{
if (allocation != 0) scalefactor = scalefactors[stream.get_bits(6)];
if (channel2_allocation != 0) channel2_scalefactor = scalefactors[stream.get_bits(6)];
}
代码示例来源:origin: com.googlecode.soundlibs/jlayer
public int readCheckedBits(int n)
{
// REVIEW: implement CRC check.
return get_bits(n);
}
代码示例来源:origin: com.googlecode.soundlibs/jlayer
/**
*
*/
public boolean read_sampledata (Bitstream stream)
{
boolean returnvalue = super.read_sampledata(stream);
if (channel2_allocation != 0)
{
channel2_sample = (float) (stream.get_bits(channel2_samplelength));
}
return(returnvalue);
}
代码示例来源:origin: tulskiy/musique
/**
*
*/
public void read_scalefactor_selection(Bitstream stream, Crc16 crc) {
if (allocation != 0) {
scfsi = stream.get_bits(2);
if (crc != null) crc.add_bits(scfsi, 2);
}
}
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
/**
*
*/
public boolean read_sampledata (Bitstream stream) {
boolean returnvalue = super.read_sampledata(stream);
if (channel2_allocation != 0) channel2_sample = stream.get_bits(channel2_samplelength);
return returnvalue;
}
代码示例来源:origin: com.googlecode.soundlibs/jlayer
/**
*
*/
public void read_scalefactor_selection (Bitstream stream, Crc16 crc)
{
if (allocation != 0)
{
scfsi = stream.get_bits(2);
if (crc != null) crc.add_bits(scfsi, 2);
}
}
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
/**
*
*/
public void read_scalefactor_selection (Bitstream stream, Crc16 crc) {
if (allocation != 0) {
scfsi = stream.get_bits(2);
channel2_scfsi = stream.get_bits(2);
if (crc != null) {
crc.add_bits(scfsi, 2);
crc.add_bits(channel2_scfsi, 2);
}
}
}
代码示例来源:origin: javazoom/jlayer
/**
*
*/
public void read_allocation(Bitstream stream, Header header, Crc16 crc)
{
int length = get_allocationlength(header);
allocation = stream.get_bits(length);
if (crc != null)
crc.add_bits(allocation, length);
}
代码示例来源:origin: com.googlecode.soundlibs/jlayer
/**
*
*/
public void read_allocation(Bitstream stream, Header header, Crc16 crc)
{
int length = get_allocationlength(header);
allocation = stream.get_bits(length);
if (crc != null)
crc.add_bits(allocation, length);
}
代码示例来源:origin: com.badlogicgames.jlayer/jlayer
/**
*
*/
public void read_allocation (Bitstream stream, Header header, Crc16 crc) {
int length = get_allocationlength(header);
allocation = stream.get_bits(length);
if (crc != null) crc.add_bits(allocation, length);
}
代码示例来源:origin: tulskiy/musique
/**
*
*/
public void read_allocation(Bitstream stream, Header header, Crc16 crc) {
int length = get_allocationlength(header);
allocation = stream.get_bits(length);
if (crc != null)
crc.add_bits(allocation, length);
}
内容来源于网络,如有侵权,请联系作者删除!