diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-05-27 19:19:52 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-02 17:00:40 +0200 |
commit | 3c5700c255f4603b5df9c6d183d13dd71a083cc3 (patch) | |
tree | 0f01c62c54b56d009b341922fa3441907a2e560b /include/qpdf/QPDFStreamFilter.hh | |
parent | 6e6a73d28f5f61f038209a61a3e85995dc71aa32 (diff) | |
download | qpdf-3c5700c255f4603b5df9c6d183d13dd71a083cc3.tar.zst |
Code tidy - reflow comments and strings
Diffstat (limited to 'include/qpdf/QPDFStreamFilter.hh')
-rw-r--r-- | include/qpdf/QPDFStreamFilter.hh | 60 |
1 files changed, 25 insertions, 35 deletions
diff --git a/include/qpdf/QPDFStreamFilter.hh b/include/qpdf/QPDFStreamFilter.hh index fec12851..4664f213 100644 --- a/include/qpdf/QPDFStreamFilter.hh +++ b/include/qpdf/QPDFStreamFilter.hh @@ -2,22 +2,19 @@ // // This file is part of qpdf. // -// 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 +// 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. +// 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. // -// Versions of qpdf prior to version 7 were released under the terms -// of version 2.0 of the Artistic License. At your option, you may -// continue to consider qpdf to be licensed under those terms. Please -// see the manual for additional information. +// Versions of qpdf prior to version 7 were released under the terms of version 2.0 of the Artistic +// License. At your option, you may continue to consider qpdf to be licensed under those terms. +// Please see the manual for additional information. #ifndef QPDFSTREAMFILTER_HH #define QPDFSTREAMFILTER_HH @@ -35,36 +32,29 @@ class QPDF_DLL_CLASS QPDFStreamFilter QPDF_DLL virtual ~QPDFStreamFilter() = default; - // A QPDFStreamFilter class must implement, at a minimum, - // setDecodeParms() and getDecodePipeline(). QPDF will always call - // setDecodeParms() before calling getDecodePipeline(). It is - // expected that you will store any needed information from - // decode_parms (or the decode_parms object itself) in your - // instance so that it can be used to construct the decode - // pipeline. + // A QPDFStreamFilter class must implement, at a minimum, setDecodeParms() and + // getDecodePipeline(). QPDF will always call setDecodeParms() before calling + // getDecodePipeline(). It is expected that you will store any needed information from + // decode_parms (or the decode_parms object itself) in your instance so that it can be used to + // construct the decode pipeline. - // Return a boolean indicating whether your filter can proceed - // with the given /DecodeParms. The default implementation accepts - // a null object and rejects everything else. + // Return a boolean indicating whether your filter can proceed with the given /DecodeParms. The + // default implementation accepts a null object and rejects everything else. QPDF_DLL virtual bool setDecodeParms(QPDFObjectHandle decode_parms); - // Return a pipeline that will decode data encoded with your - // filter. Your implementation must ensure that the pipeline is - // deleted when the instance of your class is destroyed. + // Return a pipeline that will decode data encoded with your filter. Your implementation must + // ensure that the pipeline is deleted when the instance of your class is destroyed. QPDF_DLL virtual Pipeline* getDecodePipeline(Pipeline* next) = 0; - // If your filter implements "specialized" compression or lossy - // compression, override one or both of these methods. The default - // implementations return false. See comments in QPDFWriter for - // details. QPDF defines specialized compression as non-lossy - // compression not intended for general-purpose data. qpdf, by - // default, doesn't mess with streams that are compressed with - // specialized compression, the idea being that the decision to - // use that compression scheme would fall outside of what - // QPDFWriter would know anything about, so any attempt to decode - // and re-encode would probably be undesirable. + // If your filter implements "specialized" compression or lossy compression, override one or + // both of these methods. The default implementations return false. See comments in QPDFWriter + // for details. QPDF defines specialized compression as non-lossy compression not intended for + // general-purpose data. qpdf, by default, doesn't mess with streams that are compressed with + // specialized compression, the idea being that the decision to use that compression scheme + // would fall outside of what QPDFWriter would know anything about, so any attempt to decode and + // re-encode would probably be undesirable. QPDF_DLL virtual bool isSpecializedCompression(); QPDF_DLL |