#ifndef COMPONENTS_ZUCCHINI_ZUCCHINI_APPLY_H_
#define COMPONENTS_ZUCCHINI_ZUCCHINI_APPLY_H_
#include "components/zucchini/image_utils.h"
#include "components/zucchini/patch_reader.h"
#include "components/zucchini/zucchini.h"
namespace zucchini {
bool ApplyEquivalenceAndExtraData(ConstBufferView old_image,
const PatchElementReader& patch_reader,
MutableBufferView new_image);
bool ApplyRawDelta(const PatchElementReader& patch_reader,
MutableBufferView new_image);
bool ApplyReferencesCorrection(ExecutableType exe_type,
ConstBufferView old_image,
const PatchElementReader& patch_reader,
MutableBufferView new_image);
bool ApplyElement(ExecutableType exe_type,
ConstBufferView old_image,
const PatchElementReader& patch_reader,
MutableBufferView new_image);
}
#endif