{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments/188258394","pull_request_review_id":120197537,"id":188258394,"diff_hunk":"@@ -0,0 +1,32 @@\n+# Codecs\n+\n+This folder contains a self-contained sub-project for each codec that squoosh supports.\n+\n+## Build\n+\n+Each subproject can be built using the following commands:\n+\n+```\n+$ npm install\n+$ npm run build\n+```\n+\n+This will build two files: `<codec name>_codec.js` and `<codec name>_codec.wasm`. Due to some current limitations in Emscripten, both of these files have to be served from the root folder. When the `.js` file is loaded, a global `<codec name>` is created with the same API as an [Emscripten `Module`](https://kripken.github.io/emscripten-site/docs/api_reference/module.html).\n+\n+Each codec offers at least 2 functions:\n+\n+- `void encode(uint8_t* img_in, int width, int height, float quality)`\n+- `void decode(???)`","path":"codecs/README.md","position":19,"original_position":19,"commit_id":"953a0c9124ac63ac2405d93c8d15f7e23cf540ea","original_commit_id":"953a0c9124ac63ac2405d93c8d15f7e23cf540ea","user":{"login":"surma","id":234957,"avatar_url":"https://avatars1.githubusercontent.com/u/234957?v=4","gravatar_id":"","url":"https://api.github.com/users/surma","html_url":"https://github.com/surma","followers_url":"https://api.github.com/users/surma/followers","following_url":"https://api.github.com/users/surma/following{/other_user}","gists_url":"https://api.github.com/users/surma/gists{/gist_id}","starred_url":"https://api.github.com/users/surma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surma/subscriptions","organizations_url":"https://api.github.com/users/surma/orgs","repos_url":"https://api.github.com/users/surma/repos","events_url":"https://api.github.com/users/surma/events{/privacy}","received_events_url":"https://api.github.com/users/surma/received_events","type":"User","site_admin":false},"body":"LOL I left a comment and forgot to submit it >.>\r\n\r\nGood call regarding splitting encoder and decoder. I’ll adjust wording.","created_at":"2018-05-15T11:54:11Z","updated_at":"2018-05-15T11:54:11Z","html_url":"https://github.com/GoogleChromeLabs/squoosh/pull/28#discussion_r188258394","pull_request_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments/188258394"},"html":{"href":"https://github.com/GoogleChromeLabs/squoosh/pull/28#discussion_r188258394"},"pull_request":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28"}},"in_reply_to_id":188250885},"pull_request":{"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28","id":187809864,"html_url":"https://github.com/GoogleChromeLabs/squoosh/pull/28","diff_url":"https://github.com/GoogleChromeLabs/squoosh/pull/28.diff","patch_url":"https://github.com/GoogleChromeLabs/squoosh/pull/28.patch","issue_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/28","number":28,"state":"open","locked":false,"title":"Basic codec setup","user":{"login":"surma","id":234957,"avatar_url":"https://avatars1.githubusercontent.com/u/234957?v=4","gravatar_id":"","url":"https://api.github.com/users/surma","html_url":"https://github.com/surma","followers_url":"https://api.github.com/users/surma/followers","following_url":"https://api.github.com/users/surma/following{/other_user}","gists_url":"https://api.github.com/users/surma/gists{/gist_id}","starred_url":"https://api.github.com/users/surma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surma/subscriptions","organizations_url":"https://api.github.com/users/surma/orgs","repos_url":"https://api.github.com/users/surma/repos","events_url":"https://api.github.com/users/surma/events{/privacy}","received_events_url":"https://api.github.com/users/surma/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-14T12:24:23Z","updated_at":"2018-05-15T11:54:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94ce4b9d4ef5a67745b32657c3f3c307f01af5ac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28/commits","review_comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28/comments","review_comment_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/28/comments","statuses_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/953a0c9124ac63ac2405d93c8d15f7e23cf540ea","head":{"label":"GoogleChromeLabs:codecs","ref":"codecs","sha":"953a0c9124ac63ac2405d93c8d15f7e23cf540ea","user":{"login":"GoogleChromeLabs","id":31970254,"avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":124303364,"name":"squoosh","full_name":"GoogleChromeLabs/squoosh","owner":{"login":"GoogleChromeLabs","id":31970254,"avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleChromeLabs/squoosh","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh","forks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/forks","keys_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/teams","hooks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/hooks","issue_events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/events","assignees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/tags","blobs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/languages","stargazers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/stargazers","contributors_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contributors","subscribers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscribers","subscription_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscription","commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/merges","archive_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/downloads","issues_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/deployments","created_at":"2018-03-07T22:42:03Z","updated_at":"2018-05-15T10:49:18Z","pushed_at":"2018-05-15T11:05:41Z","git_url":"git://github.com/GoogleChromeLabs/squoosh.git","ssh_url":"git@github.com:GoogleChromeLabs/squoosh.git","clone_url":"https://github.com/GoogleChromeLabs/squoosh.git","svn_url":"https://github.com/GoogleChromeLabs/squoosh","homepage":null,"size":807,"stargazers_count":7,"watchers_count":7,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":16,"watchers":7,"default_branch":"master"}},"base":{"label":"GoogleChromeLabs:master","ref":"master","sha":"444e59c69c2bdb1ddcf1e10a5deb7dc1f9e38615","user":{"login":"GoogleChromeLabs","id":31970254,"avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":124303364,"name":"squoosh","full_name":"GoogleChromeLabs/squoosh","owner":{"login":"GoogleChromeLabs","id":31970254,"avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleChromeLabs/squoosh","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh","forks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/forks","keys_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/teams","hooks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/hooks","issue_events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/events","assignees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/tags","blobs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/languages","stargazers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/stargazers","contributors_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contributors","subscribers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscribers","subscription_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscription","commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/merges","archive_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/downloads","issues_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/deployments","created_at":"2018-03-07T22:42:03Z","updated_at":"2018-05-15T10:49:18Z","pushed_at":"2018-05-15T11:05:41Z","git_url":"git://github.com/GoogleChromeLabs/squoosh.git","ssh_url":"git@github.com:GoogleChromeLabs/squoosh.git","clone_url":"https://github.com/GoogleChromeLabs/squoosh.git","svn_url":"https://github.com/GoogleChromeLabs/squoosh","homepage":null,"size":807,"stargazers_count":7,"watchers_count":7,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":16,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28"},"html":{"href":"https://github.com/GoogleChromeLabs/squoosh/pull/28"},"issue":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/28"},"comments":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/953a0c9124ac63ac2405d93c8d15f7e23cf540ea"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"surma"}}