{"action":"created","comment":{"url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/comments/46804252","id":46804252,"diff_hunk":"@@ -10,6 +10,8 @@\n #include \"../vidhance/sensors/GyroReader.h\"\n #include \"../vidhance/sensors/OrientationReader.h\"\n #define LOG_TAG \"VidhanceProcessor\"\n+\n+#define NS_TO_TICKS(X) ((X) / 100)","path":"nexus6/VidhanceProcessor.cpp","position":5,"original_position":5,"commit_id":"2e02021af47b0d670f5a23f25183ef704240bcad","original_commit_id":"2e02021af47b0d670f5a23f25183ef704240bcad","user":{"login":"sebastianbaginski","id":13517893,"avatar_url":"https://avatars.githubusercontent.com/u/13517893?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbaginski","html_url":"https://github.com/sebastianbaginski","followers_url":"https://api.github.com/users/sebastianbaginski/followers","following_url":"https://api.github.com/users/sebastianbaginski/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbaginski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbaginski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbaginski/subscriptions","organizations_url":"https://api.github.com/users/sebastianbaginski/orgs","repos_url":"https://api.github.com/users/sebastianbaginski/repos","events_url":"https://api.github.com/users/sebastianbaginski/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbaginski/received_events","type":"User","site_admin":false},"body":"Or just leave the macro and ignore my comment :P  \r\n\r\nBtw. I can recommend this tool, if you don't know it yet http://cppcheck.sourceforge.net/","created_at":"2015-12-07T10:13:23Z","updated_at":"2015-12-07T10:13:23Z","html_url":"https://github.com/vidhance/android-camera-wrapper/pull/17#discussion_r46804252","pull_request_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/comments/46804252"},"html":{"href":"https://github.com/vidhance/android-camera-wrapper/pull/17#discussion_r46804252"},"pull_request":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17","id":52228427,"html_url":"https://github.com/vidhance/android-camera-wrapper/pull/17","diff_url":"https://github.com/vidhance/android-camera-wrapper/pull/17.diff","patch_url":"https://github.com/vidhance/android-camera-wrapper/pull/17.patch","issue_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/17","number":17,"state":"open","locked":false,"title":"Cleaned code.","user":{"login":"emilwestergren","id":7700995,"avatar_url":"https://avatars.githubusercontent.com/u/7700995?v=3","gravatar_id":"","url":"https://api.github.com/users/emilwestergren","html_url":"https://github.com/emilwestergren","followers_url":"https://api.github.com/users/emilwestergren/followers","following_url":"https://api.github.com/users/emilwestergren/following{/other_user}","gists_url":"https://api.github.com/users/emilwestergren/gists{/gist_id}","starred_url":"https://api.github.com/users/emilwestergren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilwestergren/subscriptions","organizations_url":"https://api.github.com/users/emilwestergren/orgs","repos_url":"https://api.github.com/users/emilwestergren/repos","events_url":"https://api.github.com/users/emilwestergren/events{/privacy}","received_events_url":"https://api.github.com/users/emilwestergren/received_events","type":"User","site_admin":false},"body":"@sebastianbaginski peer review","created_at":"2015-12-01T08:26:01Z","updated_at":"2015-12-07T10:13:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63f9427520800cd85da3eaa68df25e68684ed13f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17/commits","review_comments_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17/comments","review_comment_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/17/comments","statuses_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/statuses/2e02021af47b0d670f5a23f25183ef704240bcad","head":{"label":"vidhance:cleaned_code","ref":"cleaned_code","sha":"2e02021af47b0d670f5a23f25183ef704240bcad","user":{"login":"vidhance","id":7080835,"avatar_url":"https://avatars.githubusercontent.com/u/7080835?v=3","gravatar_id":"","url":"https://api.github.com/users/vidhance","html_url":"https://github.com/vidhance","followers_url":"https://api.github.com/users/vidhance/followers","following_url":"https://api.github.com/users/vidhance/following{/other_user}","gists_url":"https://api.github.com/users/vidhance/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhance/subscriptions","organizations_url":"https://api.github.com/users/vidhance/orgs","repos_url":"https://api.github.com/users/vidhance/repos","events_url":"https://api.github.com/users/vidhance/events{/privacy}","received_events_url":"https://api.github.com/users/vidhance/received_events","type":"Organization","site_admin":false},"repo":{"id":32535785,"name":"android-camera-wrapper","full_name":"vidhance/android-camera-wrapper","owner":{"login":"vidhance","id":7080835,"avatar_url":"https://avatars.githubusercontent.com/u/7080835?v=3","gravatar_id":"","url":"https://api.github.com/users/vidhance","html_url":"https://github.com/vidhance","followers_url":"https://api.github.com/users/vidhance/followers","following_url":"https://api.github.com/users/vidhance/following{/other_user}","gists_url":"https://api.github.com/users/vidhance/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhance/subscriptions","organizations_url":"https://api.github.com/users/vidhance/orgs","repos_url":"https://api.github.com/users/vidhance/repos","events_url":"https://api.github.com/users/vidhance/events{/privacy}","received_events_url":"https://api.github.com/users/vidhance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vidhance/android-camera-wrapper","description":"Example for integrating Vidhance by wrapping the userspace part of the Android camera driver","fork":false,"url":"https://api.github.com/repos/vidhance/android-camera-wrapper","forks_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/forks","keys_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/teams","hooks_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/hooks","issue_events_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/events","assignees_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/tags","blobs_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/languages","stargazers_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/stargazers","contributors_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/contributors","subscribers_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/subscribers","subscription_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/subscription","commits_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/merges","archive_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/downloads","issues_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/releases{/id}","created_at":"2015-03-19T17:16:40Z","updated_at":"2015-05-29T15:56:37Z","pushed_at":"2015-12-07T09:53:06Z","git_url":"git://github.com/vidhance/android-camera-wrapper.git","ssh_url":"git@github.com:vidhance/android-camera-wrapper.git","clone_url":"https://github.com/vidhance/android-camera-wrapper.git","svn_url":"https://github.com/vidhance/android-camera-wrapper","homepage":null,"size":948,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"vidhance:master","ref":"master","sha":"7ba41320e651280c8fb61ebec309ba3dda069ea3","user":{"login":"vidhance","id":7080835,"avatar_url":"https://avatars.githubusercontent.com/u/7080835?v=3","gravatar_id":"","url":"https://api.github.com/users/vidhance","html_url":"https://github.com/vidhance","followers_url":"https://api.github.com/users/vidhance/followers","following_url":"https://api.github.com/users/vidhance/following{/other_user}","gists_url":"https://api.github.com/users/vidhance/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhance/subscriptions","organizations_url":"https://api.github.com/users/vidhance/orgs","repos_url":"https://api.github.com/users/vidhance/repos","events_url":"https://api.github.com/users/vidhance/events{/privacy}","received_events_url":"https://api.github.com/users/vidhance/received_events","type":"Organization","site_admin":false},"repo":{"id":32535785,"name":"android-camera-wrapper","full_name":"vidhance/android-camera-wrapper","owner":{"login":"vidhance","id":7080835,"avatar_url":"https://avatars.githubusercontent.com/u/7080835?v=3","gravatar_id":"","url":"https://api.github.com/users/vidhance","html_url":"https://github.com/vidhance","followers_url":"https://api.github.com/users/vidhance/followers","following_url":"https://api.github.com/users/vidhance/following{/other_user}","gists_url":"https://api.github.com/users/vidhance/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhance/subscriptions","organizations_url":"https://api.github.com/users/vidhance/orgs","repos_url":"https://api.github.com/users/vidhance/repos","events_url":"https://api.github.com/users/vidhance/events{/privacy}","received_events_url":"https://api.github.com/users/vidhance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vidhance/android-camera-wrapper","description":"Example for integrating Vidhance by wrapping the userspace part of the Android camera driver","fork":false,"url":"https://api.github.com/repos/vidhance/android-camera-wrapper","forks_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/forks","keys_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/teams","hooks_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/hooks","issue_events_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/events","assignees_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/tags","blobs_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/languages","stargazers_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/stargazers","contributors_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/contributors","subscribers_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/subscribers","subscription_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/subscription","commits_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/merges","archive_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/downloads","issues_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/vidhance/android-camera-wrapper/releases{/id}","created_at":"2015-03-19T17:16:40Z","updated_at":"2015-05-29T15:56:37Z","pushed_at":"2015-12-07T09:53:06Z","git_url":"git://github.com/vidhance/android-camera-wrapper.git","ssh_url":"git@github.com:vidhance/android-camera-wrapper.git","clone_url":"https://github.com/vidhance/android-camera-wrapper.git","svn_url":"https://github.com/vidhance/android-camera-wrapper","homepage":null,"size":948,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17"},"html":{"href":"https://github.com/vidhance/android-camera-wrapper/pull/17"},"issue":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/17"},"comments":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/vidhance/android-camera-wrapper/statuses/2e02021af47b0d670f5a23f25183ef704240bcad"}}}}