{"id":17540459,"url":"https://github.com/fromkk/applelogsampler","last_synced_at":"2025-10-26T20:02:10.377Z","repository":{"id":230211200,"uuid":"778771656","full_name":"fromkk/AppleLogSampler","owner":"fromkk","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-28T23:57:10.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T14:27:17.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/fromkk.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":"2024-03-28T11:21:53.000Z","updated_at":"2025-01-07T14:00:25.000Z","dependencies_parsed_at":"2024-03-28T12:53:42.351Z","dependency_job_id":"0b553161-0a7a-4196-bd94-acd6d1635ab0","html_url":"https://github.com/fromkk/AppleLogSampler","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"bdba2695f12a3d503c2a706d427c7665bc72cb9e"},"previous_names":["fromkk/applelogsampler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FAppleLogSampler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FAppleLogSampler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FAppleLogSampler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FAppleLogSampler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fromkk","download_url":"https://codeload.github.com/fromkk/AppleLogSampler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140537,"owners_count":20729797,"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-10-20T22:23:57.176Z","updated_at":"2025-10-26T20:02:10.328Z","avatar_url":"https://github.com/fromkk.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppleLog Sampler\n\nThis is sample app for capture with `.appleLog` color mode.\n\n## How\n\n1. Set `automaticallyConfiguresCaptureDeviceForWideColor` of AVCaptureSession to `false` (this might be the most important part)\n2. Search for a format in `formats` of `AVCaptureDevice` that contains `.appleLog` in `supportedColorSpaces` and set it as `activeFormat`\n3. Set `activeColorSpace = .appleLog` on `AVCaptureDevice`\n\n```swift\nprivate func isAppleLogAvailable(for device: AVCaptureDevice) -\u003e Bool {\n    device.formats.first(where: {\n        $0.supportedColorSpaces.contains(.appleLog)\n    }) != nil\n}\n\nprivate func configureAppleLogIfNeeded(for device: AVCaptureDevice) throws {\n    guard isAppleLogAvailable(for: device) else {\n        return\n    }\n\n    try device.lockForConfiguration()\n    defer {\n        device.unlockForConfiguration()\n    }\n\n    /// set up for .appleLog\n    if let format = device.formats.first(where: {\n        $0.supportedColorSpaces.contains(.appleLog)\n    }) {\n        device.activeFormat = format\n        device.activeColorSpace = .appleLog\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Fapplelogsampler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffromkk%2Fapplelogsampler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Fapplelogsampler/lists"}