{"id":37037918,"url":"https://github.com/sdcb/libyuv-build","last_synced_at":"2026-01-14T04:30:47.858Z","repository":{"id":329701128,"uuid":"1120441782","full_name":"sdcb/libyuv-build","owner":"sdcb","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-21T14:48:06.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T01:47:45.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdcb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-21T08:09:45.000Z","updated_at":"2025-12-21T14:48:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sdcb/libyuv-build","commit_stats":null,"previous_names":["sdcb/libyuv-build"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sdcb/libyuv-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcb%2Flibyuv-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcb%2Flibyuv-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcb%2Flibyuv-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcb%2Flibyuv-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdcb","download_url":"https://codeload.github.com/sdcb/libyuv-build/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcb%2Flibyuv-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-14T04:30:47.117Z","updated_at":"2026-01-14T04:30:47.848Z","avatar_url":"https://github.com/sdcb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# libyuv-build\n\n[![Build libyuv](https://github.com/sdcb/libyuv-build/actions/workflows/build.yml/badge.svg)](https://github.com/sdcb/libyuv-build/actions/workflows/build.yml)\n[![Test libyuv](https://github.com/sdcb/libyuv-build/actions/workflows/test.yml/badge.svg)](https://github.com/sdcb/libyuv-build/actions/workflows/test.yml)\n[![NuGet](https://github.com/sdcb/libyuv-build/actions/workflows/nuget.yml/badge.svg)](https://github.com/sdcb/libyuv-build/actions/workflows/nuget.yml)\n\nPre-built [libyuv](https://chromium.googlesource.com/libyuv/libyuv) native binaries and NuGet packages for multiple platforms.\n\n## What is libyuv?\n\nlibyuv is an open source project from Google that includes YUV scaling and conversion functionality. It provides highly optimized routines for:\n\n- YUV conversion (I420, NV12, NV21, YUY2, UYVY, etc.)\n- Color space conversion (YUV ↔ RGB/ARGB/BGRA)\n- Scaling and rotating\n- Planar functions\n\n## Supported Platforms\n\n| Platform | Architecture | NuGet Package |\n|----------|--------------|---------------|\n| Windows | x64 | `Sdcb.LibYuv.runtime.win-x64` |\n| Windows | x86 | `Sdcb.LibYuv.runtime.win-x86` |\n| Windows | arm64 | `Sdcb.LibYuv.runtime.win-arm64` |\n| macOS | arm64 | `Sdcb.LibYuv.runtime.osx-arm64` |\n| Linux (glibc) | x64 | `Sdcb.LibYuv.runtime.linux-x64` |\n| Linux (glibc) | arm64 | `Sdcb.LibYuv.runtime.linux-arm64` |\n| Linux (musl/Alpine) | x64 | `Sdcb.LibYuv.runtime.linux-musl-x64` |\n| Linux (musl/Alpine) | arm64 | `Sdcb.LibYuv.runtime.linux-musl-arm64` |\n| Android | arm64 | `Sdcb.LibYuv.runtime.android-arm64` |\n| Android | x64 | `Sdcb.LibYuv.runtime.android-x64` |\n\n## Installation\n\nInstall via NuGet Package Manager:\n\n```bash\n# For Windows x64\ndotnet add package Sdcb.LibYuv.runtime.win-x64\n\n# For Linux x64\ndotnet add package Sdcb.LibYuv.runtime.linux-x64\n\n# For macOS arm64\ndotnet add package Sdcb.LibYuv.runtime.osx-arm64\n\n# For Android arm64\ndotnet add package Sdcb.LibYuv.runtime.android-arm64\n```\n\n## Usage Example\n\nHere's a simple P/Invoke example in C#:\n\n```csharp\nusing System;\nusing System.Runtime.InteropServices;\n\nclass LibYuv\n{\n    const string LibName = \"libyuv\";\n\n    [DllImport(LibName, CallingConvention = CallingConvention.Cdecl)]\n    public static extern int I420ToARGB(\n        IntPtr src_y, int src_stride_y,\n        IntPtr src_u, int src_stride_u,\n        IntPtr src_v, int src_stride_v,\n        IntPtr dst_argb, int dst_stride_argb,\n        int width, int height);\n\n    [DllImport(LibName, CallingConvention = CallingConvention.Cdecl)]\n    public static extern int ARGBToI420(\n        IntPtr src_argb, int src_stride_argb,\n        IntPtr dst_y, int dst_stride_y,\n        IntPtr dst_u, int dst_stride_u,\n        IntPtr dst_v, int dst_stride_v,\n        int width, int height);\n}\n```\n\n## Build Compatibility\n\n### Linux (glibc)\n- **x64**: Built on OracleLinux 7 (glibc 2.17) - Compatible with CentOS 7+, RHEL 7+, Debian 8+, Ubuntu 14.04+\n- **arm64**: Built on OracleLinux 8 (glibc 2.28) - Compatible with RHEL 8+, Debian 10+, Ubuntu 20.04+\n\n### Linux (musl)\n- Built on Alpine 3.22 (musl-libc 1.2.5) - Compatible with Alpine 3.13+\n\n### Android\n- Built with Android NDK, API Level 24+ (Android 7.0+)\n\n## CI/CD Workflows\n\nThis repository includes three GitHub Actions workflows:\n\n1. **build.yml** - Compiles libyuv for all supported platforms\n2. **test.yml** - Runs native tests on various OS versions and Docker containers\n3. **nuget.yml** - Creates and publishes NuGet packages\n\n## License\n\nThis project is licensed under the [BSD 3-Clause License](LICENSE).\n\nlibyuv itself is licensed under the BSD 3-Clause License by Google.\n\n## Links\n\n- [libyuv Official Repository](https://chromium.googlesource.com/libyuv/libyuv)\n- [libyuv Documentation](https://chromium.googlesource.com/libyuv/libyuv/+/HEAD/docs/)\n- [NuGet Packages](https://github.com/sdcb/libyuv-build/packages)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdcb%2Flibyuv-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdcb%2Flibyuv-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdcb%2Flibyuv-build/lists"}