Home | History | Annotate | Download | only in enc
      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 
     23 #include "./hash.h"
     24 #include "./command.h"
     25 
     26 namespace brotli {
     27 
     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                               Hashers* hashers,
     35                               Hashers::Type hash_type,
     36                               std::vector<Command>* commands);
     37 
     38 }  // namespace brotli
     39 
     40 #endif  // BROTLI_ENC_BACKWARD_REFERENCES_H_
     41