blob: f666ef6288dbac8e357cbc3227af7f5262fc0a3b [file] [log] [blame]
Zoltan Szabadka79e99af2013-10-23 13:06:13 +02001// 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 Szabadka1571db32013-11-15 19:02:17 +010023#include "./hash.h"
Zoltan Szabadka79e99af2013-10-23 13:06:13 +020024#include "./command.h"
25
26namespace brotli {
27
Zoltan Szabadka1571db32013-11-15 19:02:17 +010028void 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 Szabadka79e99af2013-10-23 13:06:13 +020035 std::vector<Command>* commands);
36
37} // namespace brotli
38
39#endif // BROTLI_ENC_BACKWARD_REFERENCES_H_