diff --git a/LICENSE b/LICENSE index 403572b..6298a5d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2015 by the Brotli Authors. +Copyright (c) 2009, 2010, 2013-2015 by the Brotli Authors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dec/bit_reader.c b/dec/bit_reader.c index ddd014e..983a039 100644 --- a/dec/bit_reader.c +++ b/dec/bit_reader.c @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Bit reading helpers */ diff --git a/dec/bit_reader.h b/dec/bit_reader.h index 468afe1..d226868 100644 --- a/dec/bit_reader.h +++ b/dec/bit_reader.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Bit reading helpers */ diff --git a/dec/context.h b/dec/context.h index fcc4276..cb5eeea 100644 --- a/dec/context.h +++ b/dec/context.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Lookup table to map the previous two bytes to a context id. diff --git a/dec/decode.c b/dec/decode.c index 5d4af1d..f83dd45 100644 --- a/dec/decode.c +++ b/dec/decode.c @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ #include diff --git a/dec/decode.h b/dec/decode.h index 57b6861..3fe84d8 100644 --- a/dec/decode.h +++ b/dec/decode.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* API for Brotli decompression */ diff --git a/dec/dictionary.c b/dec/dictionary.c index 4033ae9..6f95122 100644 --- a/dec/dictionary.c +++ b/dec/dictionary.c @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ #include "./dictionary.h" diff --git a/dec/dictionary.h b/dec/dictionary.h index c016686..a1f899b 100644 --- a/dec/dictionary.h +++ b/dec/dictionary.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Collection of static dictionary words. */ diff --git a/dec/huffman.c b/dec/huffman.c index a580aae..26fc627 100644 --- a/dec/huffman.c +++ b/dec/huffman.c @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Utilities for building Huffman decoding tables. */ diff --git a/dec/huffman.h b/dec/huffman.h index 783cd7d..12bd6e4 100644 --- a/dec/huffman.h +++ b/dec/huffman.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Utilities for building Huffman decoding tables. */ diff --git a/dec/port.h b/dec/port.h index 2f5b0ce..4370e12 100644 --- a/dec/port.h +++ b/dec/port.h @@ -1,16 +1,8 @@ /* Copyright 2015 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Macros for compiler / platform specific features and build options. diff --git a/dec/prefix.h b/dec/prefix.h index 91e43e9..d85df90 100644 --- a/dec/prefix.h +++ b/dec/prefix.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Lookup tables to map prefix codes to value ranges. This is used during diff --git a/dec/state.c b/dec/state.c index 32c1ece..be8b070 100644 --- a/dec/state.c +++ b/dec/state.c @@ -1,16 +1,8 @@ /* Copyright 2015 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ #include "./huffman.h" diff --git a/dec/state.h b/dec/state.h index 2adf26c..07eb0bd 100644 --- a/dec/state.h +++ b/dec/state.h @@ -1,16 +1,8 @@ /* Copyright 2015 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Brotli state for partial streaming decoding. */ diff --git a/dec/streams.c b/dec/streams.c index 007c513..296ae5a 100644 --- a/dec/streams.c +++ b/dec/streams.c @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Functions for streaming input and output. */ diff --git a/dec/streams.h b/dec/streams.h index 99eb125..adf0bf0 100644 --- a/dec/streams.h +++ b/dec/streams.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Functions for streaming input and output. */ diff --git a/dec/transform.h b/dec/transform.h index 572914a..a74e902 100644 --- a/dec/transform.h +++ b/dec/transform.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Transformations on dictionary words. */ diff --git a/dec/types.h b/dec/types.h index 096b591..2ffe302 100644 --- a/dec/types.h +++ b/dec/types.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Common types */ diff --git a/enc/backward_references.cc b/enc/backward_references.cc index c694f02..51049d7 100644 --- a/enc/backward_references.cc +++ b/enc/backward_references.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Function to find backward reference copies. #include "./backward_references.h" diff --git a/enc/backward_references.h b/enc/backward_references.h index 67fcfe3..ffd3c2a 100644 --- a/enc/backward_references.h +++ b/enc/backward_references.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Function to find backward reference copies. #ifndef BROTLI_ENC_BACKWARD_REFERENCES_H_ diff --git a/enc/bit_cost.h b/enc/bit_cost.h index 922be3b..5f8fd03 100644 --- a/enc/bit_cost.h +++ b/enc/bit_cost.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Functions to estimate the bit cost of Huffman trees. #ifndef BROTLI_ENC_BIT_COST_H_ diff --git a/enc/block_splitter.cc b/enc/block_splitter.cc index 62d80a3..983dac7 100644 --- a/enc/block_splitter.cc +++ b/enc/block_splitter.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Block split point selection utilities. #include "./block_splitter.h" diff --git a/enc/block_splitter.h b/enc/block_splitter.h index 0d24b39..05b403e 100644 --- a/enc/block_splitter.h +++ b/enc/block_splitter.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Block split point selection utilities. #ifndef BROTLI_ENC_BLOCK_SPLITTER_H_ diff --git a/enc/brotli_bit_stream.cc b/enc/brotli_bit_stream.cc index 2e4a2eb..a774dc4 100644 --- a/enc/brotli_bit_stream.cc +++ b/enc/brotli_bit_stream.cc @@ -1,17 +1,10 @@ -// Copyright 2014 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2014 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Brotli bit stream functions to support the low level format. There are no // compression algorithms here, just the right ordering of bits to match the // specs. diff --git a/enc/brotli_bit_stream.h b/enc/brotli_bit_stream.h index 2cf0655..024256f 100644 --- a/enc/brotli_bit_stream.h +++ b/enc/brotli_bit_stream.h @@ -1,17 +1,10 @@ -// Copyright 2014 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2014 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Functions to convert brotli-related data structures into the // brotli bit stream. The functions here operate under // assumption that there is enough space in the storage, i.e., there are diff --git a/enc/cluster.h b/enc/cluster.h index 108e855..b4f780f 100644 --- a/enc/cluster.h +++ b/enc/cluster.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Functions for clustering similar histograms together. #ifndef BROTLI_ENC_CLUSTER_H_ diff --git a/enc/command.h b/enc/command.h index e097ab5..5e0f0c5 100644 --- a/enc/command.h +++ b/enc/command.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // This class models a sequence of literals and a backward reference copy. #ifndef BROTLI_ENC_COMMAND_H_ diff --git a/enc/context.h b/enc/context.h index 0509e1f..6f4df5b 100644 --- a/enc/context.h +++ b/enc/context.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Functions to map previous bytes into a context id. #ifndef BROTLI_ENC_CONTEXT_H_ diff --git a/enc/dictionary.cc b/enc/dictionary.cc index e0544c7..bd84fd9 100644 --- a/enc/dictionary.cc +++ b/enc/dictionary.cc @@ -1,16 +1,9 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ #include "./dictionary.h" diff --git a/enc/dictionary.h b/enc/dictionary.h index b7bca7b..df6789c 100644 --- a/enc/dictionary.h +++ b/enc/dictionary.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Collection of static dictionary words. #ifndef BROTLI_ENC_DICTIONARY_H_ diff --git a/enc/dictionary_hash.h b/enc/dictionary_hash.h index 2ce6ced..aa88617 100644 --- a/enc/dictionary_hash.h +++ b/enc/dictionary_hash.h @@ -1,17 +1,10 @@ -// Copyright 2015 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2015 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Hash table on the 4-byte prefixes of static dictionary words. #ifndef BROTLI_ENC_DICTIONARY_HASH_H_ diff --git a/enc/encode.cc b/enc/encode.cc index e77ee4d..d4e773f 100644 --- a/enc/encode.cc +++ b/enc/encode.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Implementation of Brotli compressor. #include "./encode.h" diff --git a/enc/encode.h b/enc/encode.h index 13d2e5c..85c69e2 100644 --- a/enc/encode.h +++ b/enc/encode.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // API for Brotli compression #ifndef BROTLI_ENC_ENCODE_H_ diff --git a/enc/encode_parallel.cc b/enc/encode_parallel.cc index cb073cf..24fff74 100644 --- a/enc/encode_parallel.cc +++ b/enc/encode_parallel.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Implementation of parallel Brotli compressor. #include "./encode_parallel.h" diff --git a/enc/encode_parallel.h b/enc/encode_parallel.h index d7359b1..e2edec1 100644 --- a/enc/encode_parallel.h +++ b/enc/encode_parallel.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // API for parallel Brotli compression // Note that this is only a proof of concept currently and not part of the // final API yet. diff --git a/enc/entropy_encode.cc b/enc/entropy_encode.cc index 935ac30..739b6ed 100644 --- a/enc/entropy_encode.cc +++ b/enc/entropy_encode.cc @@ -1,17 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2010 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Entropy encoding (Huffman) utilities. #include "./entropy_encode.h" diff --git a/enc/entropy_encode.h b/enc/entropy_encode.h index 352f462..f054550 100644 --- a/enc/entropy_encode.h +++ b/enc/entropy_encode.h @@ -1,17 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2010 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Entropy encoding (Huffman) utilities. #ifndef BROTLI_ENC_ENTROPY_ENCODE_H_ diff --git a/enc/fast_log.h b/enc/fast_log.h index e5692dd..1329039 100644 --- a/enc/fast_log.h +++ b/enc/fast_log.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Utilities for fast computation of logarithms. #ifndef BROTLI_ENC_FAST_LOG_H_ diff --git a/enc/find_match_length.h b/enc/find_match_length.h index f9ea059..c9625eb 100644 --- a/enc/find_match_length.h +++ b/enc/find_match_length.h @@ -1,17 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2010 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Function to find maximal matching prefixes of strings. #ifndef BROTLI_ENC_FIND_MATCH_LENGTH_H_ diff --git a/enc/hash.h b/enc/hash.h index 71a4e96..4e11492 100644 --- a/enc/hash.h +++ b/enc/hash.h @@ -1,17 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2010 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // A (forgetful) hash table to the data seen by the compressor, to // help create backward references to previous data. diff --git a/enc/histogram.cc b/enc/histogram.cc index 15bf97b..91f1202 100644 --- a/enc/histogram.cc +++ b/enc/histogram.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Build per-context histograms of literals, commands and distance codes. #include "./histogram.h" diff --git a/enc/histogram.h b/enc/histogram.h index c0f8ce5..7615821 100644 --- a/enc/histogram.h +++ b/enc/histogram.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Models the histograms of literals, commands and distance codes. #ifndef BROTLI_ENC_HISTOGRAM_H_ diff --git a/enc/literal_cost.cc b/enc/literal_cost.cc index 76f8acf..c0a4801 100644 --- a/enc/literal_cost.cc +++ b/enc/literal_cost.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Literal cost model to allow backward reference replacement to be efficient. #include "./literal_cost.h" diff --git a/enc/literal_cost.h b/enc/literal_cost.h index 03d8b1a..2ab6bd0 100644 --- a/enc/literal_cost.h +++ b/enc/literal_cost.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Literal cost model to allow backward reference replacement to be efficient. #ifndef BROTLI_ENC_LITERAL_COST_H_ diff --git a/enc/metablock.cc b/enc/metablock.cc index 3e1094d..d6cb9bb 100644 --- a/enc/metablock.cc +++ b/enc/metablock.cc @@ -1,17 +1,10 @@ -// Copyright 2015 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2015 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Algorithms for distributing the literals and commands of a metablock between // block types and contexts. diff --git a/enc/metablock.h b/enc/metablock.h index f98a2e3..fd4e4a1 100644 --- a/enc/metablock.h +++ b/enc/metablock.h @@ -1,17 +1,10 @@ -// Copyright 2015 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2015 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Algorithms for distributing the literals and commands of a metablock between // block types and contexts. diff --git a/enc/port.h b/enc/port.h index 95ea648..c0069c1 100644 --- a/enc/port.h +++ b/enc/port.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Macros for endianness, branch prediction and unaligned loads and stores. #ifndef BROTLI_ENC_PORT_H_ diff --git a/enc/prefix.h b/enc/prefix.h index 1228ef0..20b8c02 100644 --- a/enc/prefix.h +++ b/enc/prefix.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Functions for encoding of integers into prefix codes the amount of extra // bits, and the actual values of the extra bits. diff --git a/enc/ringbuffer.h b/enc/ringbuffer.h index 97121fd..8734391 100644 --- a/enc/ringbuffer.h +++ b/enc/ringbuffer.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Sliding window over the input data. #ifndef BROTLI_ENC_RINGBUFFER_H_ diff --git a/enc/static_dict.cc b/enc/static_dict.cc index abe975f..8f229c2 100644 --- a/enc/static_dict.cc +++ b/enc/static_dict.cc @@ -1,3 +1,10 @@ +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + #include "./static_dict.h" #include diff --git a/enc/static_dict.h b/enc/static_dict.h index 08447c9..892da93 100644 --- a/enc/static_dict.h +++ b/enc/static_dict.h @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Class to model the static dictionary. #ifndef BROTLI_ENC_STATIC_DICT_H_ diff --git a/enc/static_dict_lut.h b/enc/static_dict_lut.h index 1bdbebf..93b6929 100644 --- a/enc/static_dict_lut.h +++ b/enc/static_dict_lut.h @@ -1,17 +1,10 @@ -// Copyright 2015 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2015 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Lookup table for static dictionary and transforms. #ifndef BROTLI_ENC_DICTIONARY_LUT_H_ diff --git a/enc/streams.cc b/enc/streams.cc index e2e96cb..1eff769 100644 --- a/enc/streams.cc +++ b/enc/streams.cc @@ -1,17 +1,10 @@ -// Copyright 2009 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2009 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Convience routines to make Brotli I/O classes from some memory containers and // files. diff --git a/enc/streams.h b/enc/streams.h index a2ee028..bf2d75a 100644 --- a/enc/streams.h +++ b/enc/streams.h @@ -1,17 +1,10 @@ -// Copyright 2009 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2009 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Input and output classes for streaming brotli compression. #ifndef BROTLI_ENC_STREAMS_H_ diff --git a/enc/transform.h b/enc/transform.h index 02117d4..ec10c6e 100644 --- a/enc/transform.h +++ b/enc/transform.h @@ -1,17 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2010 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Transformations on dictionary words. #ifndef BROTLI_ENC_TRANSFORM_H_ diff --git a/enc/types.h b/enc/types.h index 2610449..000686a 100644 --- a/enc/types.h +++ b/enc/types.h @@ -1,16 +1,8 @@ /* Copyright 2013 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Common types */ diff --git a/enc/utf8_util.cc b/enc/utf8_util.cc index fe91dba..b05d2bc 100644 --- a/enc/utf8_util.cc +++ b/enc/utf8_util.cc @@ -1,17 +1,10 @@ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Heuristics for deciding about the UTF8-ness of strings. #include "./utf8_util.h" diff --git a/enc/utf8_util.h b/enc/utf8_util.h index 5ee9c27..c5cff1e 100644 --- a/enc/utf8_util.h +++ b/enc/utf8_util.h @@ -1,22 +1,15 @@ +/* Copyright 2013 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + +// Heuristics for deciding about the UTF8-ness of strings. + #ifndef BROTLI_ENC_UTF8_UTIL_H_ #define BROTLI_ENC_UTF8_UTIL_H_ -// Copyright 2013 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Heuristics for deciding about the UTF8-ness of strings. - #include "./types.h" namespace brotli { diff --git a/enc/write_bits.h b/enc/write_bits.h index 7d4c75b..f26120d 100644 --- a/enc/write_bits.h +++ b/enc/write_bits.h @@ -1,17 +1,10 @@ -// Copyright 2010 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* Copyright 2010 Google Inc. All Rights Reserved. + + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + // Write bits into a byte array. #ifndef BROTLI_ENC_WRITE_BITS_H_ diff --git a/tools/bro.cc b/tools/bro.cc index 752e667..187ca01 100644 --- a/tools/bro.cc +++ b/tools/bro.cc @@ -1,20 +1,12 @@ /* Copyright 2014 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - Example main() function for Brotli library. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ +/* Example main() function for Brotli library. */ + #include #include #include diff --git a/tools/version.h b/tools/version.h index 4532fcc..6d8d3ea 100644 --- a/tools/version.h +++ b/tools/version.h @@ -1,20 +1,12 @@ /* Copyright 2015 Google Inc. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - Defines a common version string used by all of the brotli tools. + Distributed under MIT license, or public domain if desired and + recognized in your jurisdiction. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ +/* Defines a common version string used by all of the brotli tools. */ + #ifndef BROTLI_TOOLS_VERSION_H_ #define BROTLI_TOOLS_VERSION_H_