{"id":17928522,"url":"https://github.com/hartwork/sdl_video_demo","last_synced_at":"2026-01-27T15:03:07.464Z","repository":{"id":136768578,"uuid":"580086080","full_name":"hartwork/sdl_video_demo","owner":"hartwork","description":"Demos fast blitting of a video buffer to the screen with scaling while respecting aspect-ratio in C99 for both SDL 2 and SDL 1","archived":false,"fork":false,"pushed_at":"2025-11-25T18:20:57.000Z","size":1810,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-28T23:54:58.609Z","etag":null,"topics":["blitting","c","c99","letterboxing","rendering","sdl","sdl2","windowboxing"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hartwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2022-12-19T17:24:06.000Z","updated_at":"2025-11-25T18:20:54.000Z","dependencies_parsed_at":"2024-05-07T19:25:31.526Z","dependency_job_id":"54be63a0-90c9-48ba-a583-94d07001a4ad","html_url":"https://github.com/hartwork/sdl_video_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hartwork/sdl_video_demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fsdl_video_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fsdl_video_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fsdl_video_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fsdl_video_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartwork","download_url":"https://codeload.github.com/hartwork/sdl_video_demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fsdl_video_demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["blitting","c","c99","letterboxing","rendering","sdl","sdl2","windowboxing"],"created_at":"2024-10-28T21:03:45.413Z","updated_at":"2026-01-27T15:03:07.434Z","avatar_url":"https://github.com/hartwork.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build on Linux](https://github.com/hartwork/sdl_video_demo/actions/workflows/linux.yml/badge.svg)](https://github.com/hartwork/sdl_video_demo/actions/workflows/linux.yml)\n[![Enforce clang-format](https://github.com/hartwork/sdl_video_demo/actions/workflows/clang-format.yml/badge.svg)](https://github.com/hartwork/sdl_video_demo/actions/workflows/clang-format.yml)\n\n\n# SDL video demo (for both SDL 2 and SDL 1)\n\nThis repository demos fast blitting of a video buffer\nto the screen with scaling while respecting aspect-ratio in C99.\n\nThere are two versions with ~70% identical code,\none for old SDL 1.x and one for current SDL 2.x.\nIt has been an explicit goal to allow holding\nthe two versions' code side by side easily,\ne.g. using [Meld](https://meldmerge.org/),\nand to be able to compare their performance.\n\nThe code is Software Libre licensed under GPL v3 or later.\n\nHere's a quick 256 color recording of what to expect at runtime:\n![Recording of sdl2_video_demo](recording.gif)\n\n\n# Requirements\n\n- SDL 2.x\n- SDL 1.x (or sdl12-compat)\n- sdl-gfx for SDL 1.x (not sdl2-gfx)\n\ne.g.:\n\n```console\n# sudo apt install --no-install-recommends --yes -V \\\n    build-essential \\\n    libsdl1.2-dev \\\n    libsdl-gfx1.2-dev \\\n    libsdl2-dev\n```\n\n\n# Compilation\n\n```console\n# make CFLAGS='-O2 -pipe' -j\n# ./sdl1_video_demo \u0026\n# ./sdl2_video_demo \u0026\n```\n\n\n# Hotkeys\n\n- \u003ckbd\u003ef\u003c/kbd\u003e or \u003ckbd\u003eF11\u003c/kbd\u003e — toggle fullscreen\n- \u003ckbd\u003eq\u003c/kbd\u003e or \u003ckbd\u003eESC\u003c/kbd\u003e — exit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fsdl_video_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartwork%2Fsdl_video_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fsdl_video_demo/lists"}