{"id":22101160,"url":"https://github.com/rmja/drone-framesync","last_synced_at":"2025-03-24T02:20:13.991Z","repository":{"id":96148993,"uuid":"335558194","full_name":"rmja/drone-framesync","owner":"rmja","description":"Fast frame synchronization algorithms for embedded systems","archived":false,"fork":false,"pushed_at":"2022-11-16T12:33:15.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T08:25:36.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-03T08:36:07.000Z","updated_at":"2022-11-16T12:33:19.000Z","dependencies_parsed_at":"2023-03-16T04:00:50.029Z","dependency_job_id":null,"html_url":"https://github.com/rmja/drone-framesync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdrone-framesync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdrone-framesync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdrone-framesync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdrone-framesync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmja","download_url":"https://codeload.github.com/rmja/drone-framesync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245196027,"owners_count":20575951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T05:23:47.467Z","updated_at":"2025-03-24T02:20:13.971Z","avatar_url":"https://github.com/rmja.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![maintenance](https://img.shields.io/badge/maintenance-actively--developed-brightgreen.svg)\n\n# drone-framesync\n\nFast frame synchronization algorithms for finding a position of a syncword within a bitstream with some allowed error tolerance.\n\nThe crate contains several algorithms that perform differently on different architectures.\nThere is a [benchmark project](benchmark) that tests all the algorithms and lists the number of cycles they use.\n\nFor Cortex-M4, the fastest algorithms have been determined and are selected based on the allowed threshold.\n\n```rust\n\nuse drone_framesync::detectors::{cortexm4, Detector};\n\n// Get the fastest detector for the 16 bit syncword 0xFFFF with an allowed tolerance of 2 bits.\nlet detector = cortexm4::sync16_tol2::\u003c0xFFFF\u003e();\nlet haystack = [0u8; 32];\nlet position = detector.position(\u0026haystack);\n\n// Get the fastest detector for the 32 bit syncword 0xFFFFFFFF with an allowed tolerance of 2 bits.\nlet detector = cortexm4::sync32_tol2::\u003c0xFFFFFFFF\u003e();\nlet haystack = [0u8; 32];\nlet position = detector.position(\u0026haystack);\n\n```\n\n## Usage\n\nAdd the crate to your `Cargo.toml` dependencies:\n\n```toml\n[dependencies]\ndrone-framesync = { git = \"https://github.com/rmja/drone-framesync\" }\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fdrone-framesync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmja%2Fdrone-framesync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fdrone-framesync/lists"}