Lines Matching refs:zucchini

39 zucchini::status::Code MainGen(MainParams params) {  in MainGen()
41 return zucchini::Generate( in MainGen()
48 zucchini::status::Code MainApply(MainParams params) { in MainApply()
50 return zucchini::Apply(params.file_paths[0], params.file_paths[1], in MainApply()
55 zucchini::status::Code MainRead(MainParams params) { in MainRead()
60 zucchini::MappedFileReader input(std::move(input_file)); in MainRead()
64 return zucchini::status::kStatusFileReadError; in MainRead()
68 zucchini::status::Code status = zucchini::ReadReferences( in MainRead()
70 if (status != zucchini::status::kStatusSuccess) in MainRead()
75 zucchini::status::Code MainDetect(MainParams params) { in MainDetect()
80 zucchini::MappedFileReader input(std::move(input_file)); in MainDetect()
84 return zucchini::status::kStatusFileReadError; in MainDetect()
87 std::vector<zucchini::ConstBufferView> sub_image_list; in MainDetect()
88 zucchini::status::Code result = zucchini::DetectAll( in MainDetect()
90 if (result != zucchini::status::kStatusSuccess) in MainDetect()
95 zucchini::status::Code MainMatch(MainParams params) { in MainMatch()
100 zucchini::MappedFileReader old_image(std::move(old_file)); in MainMatch()
104 return zucchini::status::kStatusFileReadError; in MainMatch()
108 zucchini::MappedFileReader new_image(std::move(new_file)); in MainMatch()
112 return zucchini::status::kStatusFileReadError; in MainMatch()
117 zucchini::status::Code status = in MainMatch()
118 zucchini::MatchAll({old_image.data(), old_image.length()}, in MainMatch()
121 if (status != zucchini::status::kStatusSuccess) in MainMatch()
126 zucchini::status::Code MainCrc32(MainParams params) { in MainCrc32()
131 zucchini::MappedFileReader image(std::move(image_file)); in MainCrc32()
135 return zucchini::status::kStatusFileReadError; in MainCrc32()
139 zucchini::CalculateCrc32(image.data(), image.data() + image.length()); in MainCrc32()
140 params.out << "CRC32: " << zucchini::AsHex<8>(crc) << std::endl; in MainCrc32()
141 return zucchini::status::kStatusSuccess; in MainCrc32()