mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
The copyright year was last time updated in 2018. There is some cleanup
involved in this commit and the next copyright year update is supposed
to be simpler (i.e. substitute "-2020").
- Substitute occurrences of "-2018" with "-2020" using:
git grep -I -l -e '-2018' -- ':(exclude)*.bak' | xargs \
sed -b -i -e 's/-2018/-2020/g'
- Update special cases:
CUEPlayer
git grep -I -l -e 'Grigory Chudov 2010' -- | xargs \
sed -b -i -e 's/Grigory Chudov 2010/2010-2020 Grigory Chudov/g'
CUERipper
git grep -I -l -e '2008-2009' -- | xargs \
sed -b -i -e 's/2008-2009/2008-2020/g'
CUETools, CUETools.FLACCL.cmd
git grep -I -l -e '2008-2010' -- ':(exclude)*FlaCuda*' | xargs \
sed -b -i -e 's/2008-2010/2008-2020/g'
git grep -I -l -e '2010-2013' -- | xargs \
sed -b -i -e 's/2010-2013/2010-2020/g'
CUETools.ChaptersToCue
git grep -I -l -e 'Grigory Chudov 2017' -- | xargs \
sed -b -i -e 's/Grigory Chudov 2017/2017-2020 Grigory Chudov/g'
CUETools.CTDB.EACPlugin
git grep -I -l -e 'Grigory Chudov 2012' -- | xargs \
sed -b -i -e 's/Grigory Chudov 2012/2012-2020 Grigory Chudov/g'
git grep -I -l -e '2011-12' -- | xargs \
sed -b -i -e 's/2011-12/2011-2020/g'
CUETools.Codecs.FLACCL
git grep -I -l -e '2009-2010' -- ':(exclude)*FlaCuda*' | xargs \
sed -b -i -e 's/2009-2010/2009-2020/g'
CUETools.eac3ui (BluTools)
git grep -I -l -e '© 2018' -- | xargs \
sed -b -i -e 's/© 2018/© 2018-2020 Grigory Chudov/g'
CUETools.Flake
git grep -I -l -e ' 2009-2014 Gr' -- | xargs \
sed -b -i -e 's/ 2009-2014 Gr/ 2009-2020 Gr/g'
CUETools.Processor
git grep -I -l -e ' 2008-2013 Gr' -- | xargs \
sed -b -i -e 's/ 2008-2013 Gr/ 2008-2020 Gr/g'
CUETools.Ripper.Console
git grep -I -l -e ' 2008-10 Gr' -- | xargs \
sed -b -i -e 's/ 2008-10 Gr/ 2008-2020 Gr/g'
CUETools.Ripper.Console, CUETools.Ripper.SCSI
git grep -I -l -e ' 2008-13 Gr' -- | xargs \
sed -b -i -e 's/ 2008-13 Gr/ 2008-2020 Gr/g'
Single year entries: 2008, 2009, 2010, 2011, 2017, 2018
git grep -I -l -e ' 2008 Gr' -- | xargs \
sed -b -i -e 's/ 2008 Gr/ 2008-2020 Gr/g'
git grep -I -l -e ' 2009 Gr' -- ':(exclude)*FlaCuda*' | xargs \
sed -b -i -e 's/ 2009 Gr/ 2009-2020 Gr/g'
git grep -I -l -e ' 2010 Gr' -- | xargs \
sed -b -i -e 's/ 2010 Gr/ 2010-2020 Gr/g'
git grep -I -l -e ' 2011 Gr' -- | xargs \
sed -b -i -e 's/ 2011 Gr/ 2011-2020 Gr/g'
git grep -I -l -e ' 2017 Gr' -- | xargs \
sed -b -i -e 's/ 2017 Gr/ 2017-2020 Gr/g'
git grep -I -l -e ' 2018 Gr' -- | xargs \
sed -b -i -e 's/ 2018 Gr/ 2018-2020 Gr/g'
Fix typo in copyright year of CUETools.Codecs.WMA/AudioDecoder.cs:
Copyright (c) 20139 Grigory Chudov
git grep -I -lw -e '20139' -- | xargs \
sed -b -i -e 's/20139/2013-2020/g'
75 lines
2.9 KiB
C#
75 lines
2.9 KiB
C#
/**
|
|
* CUETools.Flake: pure managed FLAC audio encoder
|
|
* Copyright (c) 2009-2020 Grigory Chudov
|
|
* Based on Flake encoder, http://flake-enc.sourceforge.net/
|
|
* Copyright (c) 2006-2009 Justin Ruggles
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
using System;
|
|
|
|
namespace CUETools.Codecs.Flake
|
|
{
|
|
public class FlakeConstants
|
|
{
|
|
public const int MAX_BLOCKSIZE = 65535;
|
|
public const int MAX_RICE_PARAM = 14;
|
|
public const int MAX_PARTITION_ORDER = 8;
|
|
public const int MAX_PARTITIONS = 1 << MAX_PARTITION_ORDER;
|
|
|
|
public const int FLAC__STREAM_METADATA_SEEKPOINT_SAMPLE_NUMBER_LEN = 64; /* bits */
|
|
public const int FLAC__STREAM_METADATA_SEEKPOINT_STREAM_OFFSET_LEN = 64; /* bits */
|
|
public const int FLAC__STREAM_METADATA_SEEKPOINT_FRAME_SAMPLES_LEN = 16; /* bits */
|
|
|
|
public static readonly int[] flac_samplerates = new int[16] {
|
|
0, 88200, 176400, 192000,
|
|
8000, 16000, 22050, 24000, 32000, 44100, 48000, 96000,
|
|
0, 0, 0, 0
|
|
};
|
|
//1100 : get 8 bit sample rate (in kHz) from end of header
|
|
//1101 : get 16 bit sample rate (in Hz) from end of header
|
|
//1110 : get 16 bit sample rate (in tens of Hz) from end of header
|
|
public static readonly int[] flac_blocksizes = new int[15] { 0, 192, 576, 1152, 2304, 4608, 0, 0, 256, 512, 1024, 2048, 4096, 8192, 16384 };
|
|
//0110 : get 8 bit (blocksize-1) from end of header
|
|
//0111 : get 16 bit (blocksize-1) from end of header
|
|
public static readonly int[] flac_bitdepths = new int[8] { 0, 8, 12, 0, 16, 20, 24, 0 };
|
|
|
|
public static PredictionType LookupPredictionType(string name)
|
|
{
|
|
return (PredictionType)(Enum.Parse(typeof(PredictionType), name, true));
|
|
}
|
|
|
|
public static StereoMethod LookupStereoMethod(string name)
|
|
{
|
|
return (StereoMethod)(Enum.Parse(typeof(StereoMethod), name, true));
|
|
}
|
|
|
|
public static WindowMethod LookupWindowMethod(string name)
|
|
{
|
|
return (WindowMethod)(Enum.Parse(typeof(WindowMethod), name, true));
|
|
}
|
|
|
|
public static OrderMethod LookupOrderMethod(string name)
|
|
{
|
|
return (OrderMethod)(Enum.Parse(typeof(OrderMethod), name, true));
|
|
}
|
|
|
|
public static WindowFunction LookupWindowFunction(string name)
|
|
{
|
|
return (WindowFunction)(Enum.Parse(typeof(WindowFunction), name, true));
|
|
}
|
|
}
|
|
}
|