Zoltan Szabadka | 79e99af | 2013-10-23 13:06:13 +0200 | [diff] [blame] | 1 | // Copyright 2013 Google Inc. All Rights Reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | // |
| 15 | // Function to find backward reference copies. |
| 16 | |
| 17 | #ifndef BROTLI_ENC_BACKWARD_REFERENCES_H_ |
| 18 | #define BROTLI_ENC_BACKWARD_REFERENCES_H_ |
| 19 | |
| 20 | #include <stdint.h> |
| 21 | #include <vector> |
| 22 | |
Zoltan Szabadka | 1571db3 | 2013-11-15 19:02:17 +0100 | [diff] [blame] | 23 | #include "./hash.h" |
Zoltan Szabadka | 79e99af | 2013-10-23 13:06:13 +0200 | [diff] [blame] | 24 | #include "./command.h" |
| 25 | |
| 26 | namespace brotli { |
| 27 | |
Zoltan Szabadka | 1571db3 | 2013-11-15 19:02:17 +0100 | [diff] [blame] | 28 | void CreateBackwardReferences(size_t num_bytes, |
| 29 | size_t position, |
| 30 | const uint8_t* ringbuffer, |
| 31 | const float* literal_cost, |
| 32 | size_t ringbuffer_mask, |
| 33 | const size_t max_backward_limit, |
| 34 | Hasher* hasher, |
Zoltan Szabadka | 79e99af | 2013-10-23 13:06:13 +0200 | [diff] [blame] | 35 | std::vector<Command>* commands); |
| 36 | |
| 37 | } // namespace brotli |
| 38 | |
| 39 | #endif // BROTLI_ENC_BACKWARD_REFERENCES_H_ |