Added images but also am trying to fix formatting
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
BasedOnStyle: Google
|
||||||
|
Standard: Latest
|
||||||
|
UseTab: Always
|
||||||
|
TabWidth: 8
|
||||||
|
IndentWidth: 8
|
||||||
|
BreakBeforeBraces: Allman
|
||||||
|
SpaceBeforeCpp11BracedList: true
|
||||||
|
SeparateDefinitionBlocks: Always
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
BreakAfterReturnType: TopLevel
|
||||||
|
AlignTrailingComments:
|
||||||
|
Kind: Always
|
||||||
|
ReflowComments: Always
|
||||||
|
AllowShortFunctionsOnASingleLine: All
|
||||||
|
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
||||||
|
AllowShortLoopsOnASingleLine: true
|
||||||
|
IndentAccessModifiers: false # Indent access specifiers by one level
|
||||||
|
AccessModifierOffset: -4 # Optional: adjust offset relative to the class indentation level
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
Checks: >
|
||||||
|
-*,
|
||||||
|
bugprone-*,
|
||||||
|
concurrency-*,
|
||||||
|
misc-*,
|
||||||
|
modernize-*,
|
||||||
|
performance-*,
|
||||||
|
readability-*,
|
||||||
|
portability-*,
|
||||||
|
-readability-braces-around-statements,
|
||||||
|
-readability-implicit-bool-conversion
|
||||||
|
|
||||||
|
WarningsAsErrors: ""
|
||||||
|
|
||||||
|
CheckOptions:
|
||||||
|
- key: readability-identifier-naming.VariableCase
|
||||||
|
value: lower_case
|
||||||
|
- key: readability-identifier-naming.FunctionCase
|
||||||
|
value: lower_case
|
||||||
|
---
|
||||||
|
|
||||||
Vendored
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
env/manifest.lock linguist-generated=true linguist-language=JSON
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
run/
|
||||||
|
cache/
|
||||||
|
lib/
|
||||||
|
log/
|
||||||
|
!env/
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"name": "image-rasterizer",
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
+295
@@ -0,0 +1,295 @@
|
|||||||
|
{
|
||||||
|
"lockfile-version": 1,
|
||||||
|
"manifest": {
|
||||||
|
"schema-version": "1.11.0",
|
||||||
|
"install": {
|
||||||
|
"libjpeg_turbo": {
|
||||||
|
"pkg-path": "libjpeg_turbo"
|
||||||
|
},
|
||||||
|
"pkgconfig": {
|
||||||
|
"pkg-path": "pkgconfig"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hook": {},
|
||||||
|
"profile": {},
|
||||||
|
"options": {}
|
||||||
|
},
|
||||||
|
"packages": [
|
||||||
|
{
|
||||||
|
"attr_path": "libjpeg_turbo",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/1a0iqp8da6npyr03r1dp0pidz2zwgv2w-libjpeg-turbo-2.1.5.1.drv",
|
||||||
|
"description": "A faster (using SIMD) libjpeg implementation",
|
||||||
|
"install_id": "libjpeg_turbo",
|
||||||
|
"license": "IJG",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "libjpeg-turbo-2.1.5.1",
|
||||||
|
"pname": "libjpeg_turbo",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "2.1.5.1",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"bin",
|
||||||
|
"man"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"bin": "/nix/store/nmd4d67xa8spln907xqvns5ybgwff27n-libjpeg-turbo-2.1.5.1-bin",
|
||||||
|
"dev": "/nix/store/afiz0d5hgh7nmfk1r79k56jglv1q5rd2-libjpeg-turbo-2.1.5.1-dev",
|
||||||
|
"dev_private": "/nix/store/sw29da9xn27nz9v5zw61dwka94h1al4p-libjpeg-turbo-2.1.5.1-dev_private",
|
||||||
|
"doc": "/nix/store/sq7dagbd30jgy1wcsakx253wx49wzx75-libjpeg-turbo-2.1.5.1-doc",
|
||||||
|
"man": "/nix/store/g3zq3w28l8a5fqshp1azhyivgrzbhllf-libjpeg-turbo-2.1.5.1-man",
|
||||||
|
"out": "/nix/store/v13fyls4qpvzs72rx4pni1rppih49hcv-libjpeg-turbo-2.1.5.1"
|
||||||
|
},
|
||||||
|
"system": "aarch64-darwin",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "libjpeg_turbo",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/p04rfk8fc73vcppib57yy0xkiqgfsy5y-libjpeg-turbo-2.1.5.1.drv",
|
||||||
|
"description": "A faster (using SIMD) libjpeg implementation",
|
||||||
|
"install_id": "libjpeg_turbo",
|
||||||
|
"license": "IJG",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "libjpeg-turbo-2.1.5.1",
|
||||||
|
"pname": "libjpeg_turbo",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "2.1.5.1",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"bin",
|
||||||
|
"man"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"bin": "/nix/store/bgdl3nl2r5x4nkfdf24nc02wrbw4nnaq-libjpeg-turbo-2.1.5.1-bin",
|
||||||
|
"dev": "/nix/store/9k3pba6barhf92lw68z0xswj5wms17lp-libjpeg-turbo-2.1.5.1-dev",
|
||||||
|
"dev_private": "/nix/store/ibifdmpilixc0hyhrrgy7p2zxnc73868-libjpeg-turbo-2.1.5.1-dev_private",
|
||||||
|
"doc": "/nix/store/0rz09f9r42apk17rxsimfzkp70vwdxwh-libjpeg-turbo-2.1.5.1-doc",
|
||||||
|
"man": "/nix/store/x7kiw576znfbjqf0lxzf7l0bjvz98mm8-libjpeg-turbo-2.1.5.1-man",
|
||||||
|
"out": "/nix/store/rp03nw4yizsssylgwh7q1n8jkrfrrmsb-libjpeg-turbo-2.1.5.1"
|
||||||
|
},
|
||||||
|
"system": "aarch64-linux",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "libjpeg_turbo",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/bz1q3yza7bvcfppf9djflvcawbsqfjab-libjpeg-turbo-2.1.5.1.drv",
|
||||||
|
"description": "A faster (using SIMD) libjpeg implementation",
|
||||||
|
"install_id": "libjpeg_turbo",
|
||||||
|
"license": "IJG",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "libjpeg-turbo-2.1.5.1",
|
||||||
|
"pname": "libjpeg_turbo",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "2.1.5.1",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"bin",
|
||||||
|
"man"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"bin": "/nix/store/7kmsflizc3ri9r7gsmp13yfk4kf9qqsg-libjpeg-turbo-2.1.5.1-bin",
|
||||||
|
"dev": "/nix/store/2a757j7zhigxl1l1sj0glpj9a8ra5s45-libjpeg-turbo-2.1.5.1-dev",
|
||||||
|
"dev_private": "/nix/store/9q1ihhgi8xai9m2w7lymz9zsw3z6hczm-libjpeg-turbo-2.1.5.1-dev_private",
|
||||||
|
"doc": "/nix/store/if8q5149y1dwsadzzf8qzfrlq8b8bmvl-libjpeg-turbo-2.1.5.1-doc",
|
||||||
|
"man": "/nix/store/sv66q13hz21wb432hzcb1rpjwkhqqdif-libjpeg-turbo-2.1.5.1-man",
|
||||||
|
"out": "/nix/store/z8704g4qyynq99y02dqcd2jjv3ns2bdr-libjpeg-turbo-2.1.5.1"
|
||||||
|
},
|
||||||
|
"system": "x86_64-darwin",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "libjpeg_turbo",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/aygqwc3jb2jkldvf7wi34qm5fyj2x2x6-libjpeg-turbo-2.1.5.1.drv",
|
||||||
|
"description": "A faster (using SIMD) libjpeg implementation",
|
||||||
|
"install_id": "libjpeg_turbo",
|
||||||
|
"license": "IJG",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "libjpeg-turbo-2.1.5.1",
|
||||||
|
"pname": "libjpeg_turbo",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "2.1.5.1",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"bin",
|
||||||
|
"man"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"bin": "/nix/store/53d1gx3hsf5aabq6spiqdxnq7646kr0y-libjpeg-turbo-2.1.5.1-bin",
|
||||||
|
"dev": "/nix/store/qf706fbqdgj2n7cwdbr0nyibf3h16if8-libjpeg-turbo-2.1.5.1-dev",
|
||||||
|
"dev_private": "/nix/store/rn7wkk5q17l9r3hh4ryj9rc79038q5k3-libjpeg-turbo-2.1.5.1-dev_private",
|
||||||
|
"doc": "/nix/store/2lcf4n0qx5aj3awvrjjs00mspnv0ghr2-libjpeg-turbo-2.1.5.1-doc",
|
||||||
|
"man": "/nix/store/1l5ialkzcihcalsa2zj6cynzdxh6ncr8-libjpeg-turbo-2.1.5.1-man",
|
||||||
|
"out": "/nix/store/dw932dvfv8vaa617g2kdg3hwnh5sr92y-libjpeg-turbo-2.1.5.1"
|
||||||
|
},
|
||||||
|
"system": "x86_64-linux",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "pkgconfig",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/m9yga2pklxghq9m0813zj73igmd1sm4i-pkg-config-wrapper-0.29.2.drv",
|
||||||
|
"description": "A tool that allows packages to find out information about other packages (wrapper script)",
|
||||||
|
"install_id": "pkgconfig",
|
||||||
|
"license": "GPL-2.0-or-later",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "pkg-config-wrapper-0.29.2",
|
||||||
|
"pname": "pkgconfig",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "0.29.2",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"man",
|
||||||
|
"out"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"doc": "/nix/store/d6shg9fwdh603k1jwqh973p0k28z9g4l-pkg-config-wrapper-0.29.2-doc",
|
||||||
|
"man": "/nix/store/hxj0fki6h9d9fj4a9k0qy9vbqp3yka7p-pkg-config-wrapper-0.29.2-man",
|
||||||
|
"out": "/nix/store/av3xsi32qifl0xk20xsgnb87h5sgyvyb-pkg-config-wrapper-0.29.2"
|
||||||
|
},
|
||||||
|
"system": "aarch64-darwin",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "pkgconfig",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/clgr1z1kpbrm2n6xvghqj8n7i0ayr7zb-pkg-config-wrapper-0.29.2.drv",
|
||||||
|
"description": "A tool that allows packages to find out information about other packages (wrapper script)",
|
||||||
|
"install_id": "pkgconfig",
|
||||||
|
"license": "GPL-2.0-or-later",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "pkg-config-wrapper-0.29.2",
|
||||||
|
"pname": "pkgconfig",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "0.29.2",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"man",
|
||||||
|
"out"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"doc": "/nix/store/rcpz2rx24d380hs80djvqyj0d7yx4f6p-pkg-config-wrapper-0.29.2-doc",
|
||||||
|
"man": "/nix/store/26h6w8dpqh0ainmdsmy24dqmqf7n7lbr-pkg-config-wrapper-0.29.2-man",
|
||||||
|
"out": "/nix/store/sj2d8gsc4rq55hhdqs3m5fn3pbg5p4rb-pkg-config-wrapper-0.29.2"
|
||||||
|
},
|
||||||
|
"system": "aarch64-linux",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "pkgconfig",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/gyjqnb26jx60bq4jz7d3d8k6s2pr2d7k-pkg-config-wrapper-0.29.2.drv",
|
||||||
|
"description": "A tool that allows packages to find out information about other packages (wrapper script)",
|
||||||
|
"install_id": "pkgconfig",
|
||||||
|
"license": "GPL-2.0-or-later",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "pkg-config-wrapper-0.29.2",
|
||||||
|
"pname": "pkgconfig",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "0.29.2",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"man",
|
||||||
|
"out"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"doc": "/nix/store/rv66cg2frg90y4w091nr16l4ijc84gyb-pkg-config-wrapper-0.29.2-doc",
|
||||||
|
"man": "/nix/store/yphb7y4yj6i1js0ahxryrbxsw7hh8rbk-pkg-config-wrapper-0.29.2-man",
|
||||||
|
"out": "/nix/store/3np6lyxwb7n5x2y31rb6nxfj6118ya2b-pkg-config-wrapper-0.29.2"
|
||||||
|
},
|
||||||
|
"system": "x86_64-darwin",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"attr_path": "pkgconfig",
|
||||||
|
"broken": false,
|
||||||
|
"derivation": "/nix/store/6ycm6d80nkw8yjkxjnzm5741lzgqhyyq-pkg-config-wrapper-0.29.2.drv",
|
||||||
|
"description": "A tool that allows packages to find out information about other packages (wrapper script)",
|
||||||
|
"install_id": "pkgconfig",
|
||||||
|
"license": "GPL-2.0-or-later",
|
||||||
|
"locked_url": "https://github.com/flox/nixpkgs?rev=3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"name": "pkg-config-wrapper-0.29.2",
|
||||||
|
"pname": "pkgconfig",
|
||||||
|
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||||
|
"rev_count": 524605,
|
||||||
|
"rev_date": "2023-09-11T08:56:06Z",
|
||||||
|
"scrape_date": "2024-08-16T00:12:06Z",
|
||||||
|
"stabilities": [
|
||||||
|
"unstable",
|
||||||
|
"staging"
|
||||||
|
],
|
||||||
|
"unfree": false,
|
||||||
|
"version": "0.29.2",
|
||||||
|
"outputs_to_install": [
|
||||||
|
"man",
|
||||||
|
"out"
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"doc": "/nix/store/ww3vgwch8xr6bnq27plkbajlyifjmk2m-pkg-config-wrapper-0.29.2-doc",
|
||||||
|
"man": "/nix/store/h6fp99akihksg5zx8p0lrmfalpbvm0dr-pkg-config-wrapper-0.29.2-man",
|
||||||
|
"out": "/nix/store/6gvzma127ffp5x7mg4fmf0snbm15cciz-pkg-config-wrapper-0.29.2"
|
||||||
|
},
|
||||||
|
"system": "x86_64-linux",
|
||||||
|
"group": "toplevel",
|
||||||
|
"priority": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+97
@@ -0,0 +1,97 @@
|
|||||||
|
schema-version = "1.11.0"
|
||||||
|
|
||||||
|
|
||||||
|
## Install Packages --------------------------------------------------
|
||||||
|
## $ flox install gum <- puts a package in [install] section below
|
||||||
|
## $ flox search gum <- search for a package
|
||||||
|
## $ flox show gum <- show all versions of a package
|
||||||
|
## -------------------------------------------------------------------
|
||||||
|
[install]
|
||||||
|
pkgconfig.pkg-path = "pkgconfig"
|
||||||
|
libjpeg_turbo.pkg-path = "libjpeg_turbo"
|
||||||
|
# gum.pkg-path = "gum"
|
||||||
|
# gum.version = "^0.14.5"
|
||||||
|
|
||||||
|
|
||||||
|
## Environment Variables ---------------------------------------------
|
||||||
|
## ... available for use in the activated environment
|
||||||
|
## as well as [hook], [profile] scripts and [services] below.
|
||||||
|
## -------------------------------------------------------------------
|
||||||
|
[vars]
|
||||||
|
# INTRO_MESSAGE = "It's gettin' Flox in here"
|
||||||
|
|
||||||
|
|
||||||
|
## Activation Hook ---------------------------------------------------
|
||||||
|
## ... run by _bash_ shell when you run 'flox activate'.
|
||||||
|
## -------------------------------------------------------------------
|
||||||
|
[hook]
|
||||||
|
# on-activate = '''
|
||||||
|
# # -> Set variables, create files and directories
|
||||||
|
# # -> Perform initialization steps, e.g. create a python venv
|
||||||
|
# # -> Useful environment variables:
|
||||||
|
# # - FLOX_ENV_PROJECT=/home/user/example
|
||||||
|
# # - FLOX_ENV=/home/user/example/.flox/run
|
||||||
|
# # - FLOX_ENV_CACHE=/home/user/example/.flox/cache
|
||||||
|
# '''
|
||||||
|
|
||||||
|
|
||||||
|
## Profile script ----------------------------------------------------
|
||||||
|
## ... sourced by _your shell_ when you run 'flox activate'.
|
||||||
|
## -------------------------------------------------------------------
|
||||||
|
[profile]
|
||||||
|
# common = '''
|
||||||
|
# gum style \
|
||||||
|
# --foreground 212 --border-foreground 212 --border double \
|
||||||
|
# --align center --width 50 --margin "1 2" --padding "2 4" \
|
||||||
|
# $INTRO_MESSAGE
|
||||||
|
# '''
|
||||||
|
## Shell-specific customizations such as setting aliases go here:
|
||||||
|
# bash = ...
|
||||||
|
# zsh = ...
|
||||||
|
# fish = ...
|
||||||
|
|
||||||
|
|
||||||
|
## Services ---------------------------------------------------------
|
||||||
|
## $ flox services start <- Starts all services
|
||||||
|
## $ flox services status <- Status of running services
|
||||||
|
## $ flox activate --start-services <- Activates & starts all
|
||||||
|
## ------------------------------------------------------------------
|
||||||
|
[services]
|
||||||
|
# myservice.command = "python3 -m http.server"
|
||||||
|
|
||||||
|
|
||||||
|
## Include ----------------------------------------------------------
|
||||||
|
## ... environments to create a composed environment
|
||||||
|
## ------------------------------------------------------------------
|
||||||
|
[include]
|
||||||
|
# environments = [
|
||||||
|
# { dir = "../common" }
|
||||||
|
# ]
|
||||||
|
|
||||||
|
|
||||||
|
## Build and publish your own packages ------------------------------
|
||||||
|
## $ flox build
|
||||||
|
## $ flox publish
|
||||||
|
## ------------------------------------------------------------------
|
||||||
|
[build]
|
||||||
|
# [build.myproject]
|
||||||
|
# description = "The coolest project ever"
|
||||||
|
# version = "0.0.1"
|
||||||
|
# command = """
|
||||||
|
# mkdir -p $out/bin
|
||||||
|
# cargo build --release
|
||||||
|
# cp target/release/myproject $out/bin/myproject
|
||||||
|
# """
|
||||||
|
|
||||||
|
|
||||||
|
## Other Environment Options -----------------------------------------
|
||||||
|
[options]
|
||||||
|
# Systems that environment is compatible with
|
||||||
|
# systems = [
|
||||||
|
# "aarch64-darwin",
|
||||||
|
# "aarch64-linux",
|
||||||
|
# "x86_64-darwin",
|
||||||
|
# "x86_64-linux",
|
||||||
|
# ]
|
||||||
|
# Uncomment to disable CUDA detection.
|
||||||
|
# cuda-detection = false
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
build/
|
||||||
|
.cache/
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
cmake_minimum_required(VERSION 4.2.1)
|
||||||
|
set(CMAKE_C_STANDARD 23)
|
||||||
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
include_directories(include)
|
||||||
|
project(image_rasterizer LANGUAGES C)
|
||||||
|
|
||||||
|
set(SOURCES
|
||||||
|
src/main.c
|
||||||
|
)
|
||||||
|
|
||||||
|
include(FetchContent)
|
||||||
|
FetchContent_Declare(PROCESSOR
|
||||||
|
GIT_REPOSITORY git@moo:dmm/image_processor.git
|
||||||
|
GIT_TAG main)
|
||||||
|
FetchContent_MakeAvailable(PROCESSOR)
|
||||||
|
|
||||||
|
add_executable(image_rasterizer ${SOURCES})
|
||||||
|
target_link_libraries(image_rasterizer PRIVATE PROCESSOR)
|
||||||
|
|
||||||
BIN
Binary file not shown.
+142324
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
|||||||
|
P6
|
||||||
|
0 0
|
||||||
|
255
|
||||||
Vendored
BIN
Binary file not shown.
+64
@@ -0,0 +1,64 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "image/filters.h"
|
||||||
|
#include "image/imgio.h"
|
||||||
|
#include "image/transformations.h"
|
||||||
|
#include "image/utils.h"
|
||||||
|
|
||||||
|
int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
JPEG out_1 = {
|
||||||
|
.name = "../test.jpg",
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
PPM out_2 = {
|
||||||
|
.name = "../MF8jno.ppm",
|
||||||
|
.fmt = '6',
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
PPM out_3 = {
|
||||||
|
.name = "../test.ppm",
|
||||||
|
.fmt = '6',
|
||||||
|
};
|
||||||
|
transcode_to_ppm(&out_1, &out_3);
|
||||||
|
unsigned int* src = ppm_load(out_3.name, &out_3);
|
||||||
|
// out_3 = inherit_from_jpeg(&out_1, '6');
|
||||||
|
// print_attr(&out_3);
|
||||||
|
for (int i = 0; i < out_3.len; i++)
|
||||||
|
{
|
||||||
|
src[i] = u32_grayscale(src[i]);
|
||||||
|
}
|
||||||
|
// src = u32_grayscale()
|
||||||
|
// src = u32_rotate(src, &out_3, out_1.le);
|
||||||
|
ppm_save(src, out_3);
|
||||||
|
// jpeg_save(src, &out_1, "../test-formatted.jpg");
|
||||||
|
free(src);
|
||||||
|
|
||||||
|
// unsigned int* ppm = ppm_load(out_2.name, &out_2);
|
||||||
|
// print_attr(&out_2);
|
||||||
|
// ppm = box_blur(ppm, &out_2, 100);
|
||||||
|
// ppm_save(ppm, out_2);
|
||||||
|
// free(ppm);
|
||||||
|
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// unsigned int* src = jpeg_load(&out_1);
|
||||||
|
// out_2 = inherit_from_jpeg(&out_1, '6');
|
||||||
|
// src = box_blur(b, const PPM *img, const int radius)
|
||||||
|
// // inherit_from_jpeg(src, '6');
|
||||||
|
// transcode_to_ppm(&out_1, &out_2);
|
||||||
|
// unsigned int* src = ppm_load(out_2.name, &out_2);
|
||||||
|
// src = box_blur(src, &out_2, 5);
|
||||||
|
// ppm_save(src, out_3);
|
||||||
|
// unsigned int* src_buf = ppm_load("../assets/8ktest.ppm", &out_2);
|
||||||
|
// unsigned int* blurred = box_blur(src_buf, &out_2, 10);
|
||||||
|
// unsigned int* flip = u32_rotate(src_buf_jpeg, );
|
||||||
|
// ppm_save(blurred, out_2);
|
||||||
|
// free(src_buf);
|
||||||
|
// free(blurred);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 6.3 MiB |
Reference in New Issue
Block a user