{"action":"closed","number":1481,"pull_request":{"url":"https://api.github.com/repos/OpenImageIO/oiio/pulls/1481","id":84418362,"html_url":"https://github.com/OpenImageIO/oiio/pull/1481","diff_url":"https://github.com/OpenImageIO/oiio/pull/1481.diff","patch_url":"https://github.com/OpenImageIO/oiio/pull/1481.patch","issue_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1481","number":1481,"state":"closed","locked":false,"title":"ImageCache/TextureSystem: collect stats on total size on disk.","user":{"login":"lgritz","id":504179,"avatar_url":"https://avatars.githubusercontent.com/u/504179?v=3","gravatar_id":"","url":"https://api.github.com/users/lgritz","html_url":"https://github.com/lgritz","followers_url":"https://api.github.com/users/lgritz/followers","following_url":"https://api.github.com/users/lgritz/following{/other_user}","gists_url":"https://api.github.com/users/lgritz/gists{/gist_id}","starred_url":"https://api.github.com/users/lgritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgritz/subscriptions","organizations_url":"https://api.github.com/users/lgritz/orgs","repos_url":"https://api.github.com/users/lgritz/repos","events_url":"https://api.github.com/users/lgritz/events{/privacy}","received_events_url":"https://api.github.com/users/lgritz/received_events","type":"User","site_admin":false},"body":"The size statistics reported by IC/TS are the *data* size -- that is,\r\nthe size of all pixels of the image if they were read into memory, as\r\nrepresented in the cache (uncompressed, and in one of the data types\r\nsupported by the cache).\r\n\r\nBut this doesn't accurately reflect the size of the images as they exist\r\non disk. The three main ways they differ are: (a) the image data doesn't\r\ncount the size of the headers, metadata, etc; (b) the pixel data on disk\r\nis often compressed, making it much smaller stored on disk than the\r\nin-cache size; (c) the data on disk may be in a format not directly\r\nsupported by the cache, and is \"expanded\" upon being read (for example,\r\n10 bit per channel data would be expanded to 16 bits per channel in\r\nthe cache, palette images might be represented by one byte per pixel\r\non disk but 3 bytes of RGB per pixel in the cache, and so on).\r\n\r\nThis patch records the actual file size on disk for each file referenced\r\nby the ImageCache.\r\n\r\nNow the stats try to more clearly describe these two separate values:\r\n\r\n    Total pixel data size of all images referenced : 120.0 MB\r\n    Total actual file size of all images referenced : 6.6 MB\r\n\r\nThe stats also can be accessed through the IC or TS APIs, as totals for\r\nall files via getattribute queries for \"stat:image_size\" and\r\n\"stat:file_size\", and for individual files using get_image_info queries\r\nof the same name (all are int64 values).","created_at":"2016-09-08T05:51:55Z","updated_at":"2016-09-12T20:58:55Z","closed_at":"2016-09-12T20:58:55Z","merged_at":"2016-09-12T20:58:55Z","merge_commit_sha":"a1e1d4ac6dcf58af4808f5a0acb9b15cc0927924","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenImageIO/oiio/pulls/1481/commits","review_comments_url":"https://api.github.com/repos/OpenImageIO/oiio/pulls/1481/comments","review_comment_url":"https://api.github.com/repos/OpenImageIO/oiio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1481/comments","statuses_url":"https://api.github.com/repos/OpenImageIO/oiio/statuses/b5391f269c083451f41e472209bec477335b763a","head":{"label":"lgritz:lg-filesize","ref":"lg-filesize","sha":"b5391f269c083451f41e472209bec477335b763a","user":{"login":"lgritz","id":504179,"avatar_url":"https://avatars.githubusercontent.com/u/504179?v=3","gravatar_id":"","url":"https://api.github.com/users/lgritz","html_url":"https://github.com/lgritz","followers_url":"https://api.github.com/users/lgritz/followers","following_url":"https://api.github.com/users/lgritz/following{/other_user}","gists_url":"https://api.github.com/users/lgritz/gists{/gist_id}","starred_url":"https://api.github.com/users/lgritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgritz/subscriptions","organizations_url":"https://api.github.com/users/lgritz/orgs","repos_url":"https://api.github.com/users/lgritz/repos","events_url":"https://api.github.com/users/lgritz/events{/privacy}","received_events_url":"https://api.github.com/users/lgritz/received_events","type":"User","site_admin":false},"repo":{"id":1322330,"name":"oiio","full_name":"lgritz/oiio","owner":{"login":"lgritz","id":504179,"avatar_url":"https://avatars.githubusercontent.com/u/504179?v=3","gravatar_id":"","url":"https://api.github.com/users/lgritz","html_url":"https://github.com/lgritz","followers_url":"https://api.github.com/users/lgritz/followers","following_url":"https://api.github.com/users/lgritz/following{/other_user}","gists_url":"https://api.github.com/users/lgritz/gists{/gist_id}","starred_url":"https://api.github.com/users/lgritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgritz/subscriptions","organizations_url":"https://api.github.com/users/lgritz/orgs","repos_url":"https://api.github.com/users/lgritz/repos","events_url":"https://api.github.com/users/lgritz/events{/privacy}","received_events_url":"https://api.github.com/users/lgritz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lgritz/oiio","description":"OpenImageIO","fork":true,"url":"https://api.github.com/repos/lgritz/oiio","forks_url":"https://api.github.com/repos/lgritz/oiio/forks","keys_url":"https://api.github.com/repos/lgritz/oiio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lgritz/oiio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lgritz/oiio/teams","hooks_url":"https://api.github.com/repos/lgritz/oiio/hooks","issue_events_url":"https://api.github.com/repos/lgritz/oiio/issues/events{/number}","events_url":"https://api.github.com/repos/lgritz/oiio/events","assignees_url":"https://api.github.com/repos/lgritz/oiio/assignees{/user}","branches_url":"https://api.github.com/repos/lgritz/oiio/branches{/branch}","tags_url":"https://api.github.com/repos/lgritz/oiio/tags","blobs_url":"https://api.github.com/repos/lgritz/oiio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lgritz/oiio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lgritz/oiio/git/refs{/sha}","trees_url":"https://api.github.com/repos/lgritz/oiio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lgritz/oiio/statuses/{sha}","languages_url":"https://api.github.com/repos/lgritz/oiio/languages","stargazers_url":"https://api.github.com/repos/lgritz/oiio/stargazers","contributors_url":"https://api.github.com/repos/lgritz/oiio/contributors","subscribers_url":"https://api.github.com/repos/lgritz/oiio/subscribers","subscription_url":"https://api.github.com/repos/lgritz/oiio/subscription","commits_url":"https://api.github.com/repos/lgritz/oiio/commits{/sha}","git_commits_url":"https://api.github.com/repos/lgritz/oiio/git/commits{/sha}","comments_url":"https://api.github.com/repos/lgritz/oiio/comments{/number}","issue_comment_url":"https://api.github.com/repos/lgritz/oiio/issues/comments{/number}","contents_url":"https://api.github.com/repos/lgritz/oiio/contents/{+path}","compare_url":"https://api.github.com/repos/lgritz/oiio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lgritz/oiio/merges","archive_url":"https://api.github.com/repos/lgritz/oiio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lgritz/oiio/downloads","issues_url":"https://api.github.com/repos/lgritz/oiio/issues{/number}","pulls_url":"https://api.github.com/repos/lgritz/oiio/pulls{/number}","milestones_url":"https://api.github.com/repos/lgritz/oiio/milestones{/number}","notifications_url":"https://api.github.com/repos/lgritz/oiio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lgritz/oiio/labels{/name}","releases_url":"https://api.github.com/repos/lgritz/oiio/releases{/id}","deployments_url":"https://api.github.com/repos/lgritz/oiio/deployments","created_at":"2011-02-02T23:16:23Z","updated_at":"2015-05-07T17:17:35Z","pushed_at":"2016-09-12T19:45:02Z","git_url":"git://github.com/lgritz/oiio.git","ssh_url":"git@github.com:lgritz/oiio.git","clone_url":"https://github.com/lgritz/oiio.git","svn_url":"https://github.com/lgritz/oiio","homepage":"http://www.openimageio.org","size":113310,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":5,"default_branch":"master"}},"base":{"label":"OpenImageIO:master","ref":"master","sha":"5b04f867a60bb4ea0fbe7701bee0868f15e71b11","user":{"login":"OpenImageIO","id":547887,"avatar_url":"https://avatars.githubusercontent.com/u/547887?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenImageIO","html_url":"https://github.com/OpenImageIO","followers_url":"https://api.github.com/users/OpenImageIO/followers","following_url":"https://api.github.com/users/OpenImageIO/following{/other_user}","gists_url":"https://api.github.com/users/OpenImageIO/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenImageIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenImageIO/subscriptions","organizations_url":"https://api.github.com/users/OpenImageIO/orgs","repos_url":"https://api.github.com/users/OpenImageIO/repos","events_url":"https://api.github.com/users/OpenImageIO/events{/privacy}","received_events_url":"https://api.github.com/users/OpenImageIO/received_events","type":"Organization","site_admin":false},"repo":{"id":1322284,"name":"oiio","full_name":"OpenImageIO/oiio","owner":{"login":"OpenImageIO","id":547887,"avatar_url":"https://avatars.githubusercontent.com/u/547887?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenImageIO","html_url":"https://github.com/OpenImageIO","followers_url":"https://api.github.com/users/OpenImageIO/followers","following_url":"https://api.github.com/users/OpenImageIO/following{/other_user}","gists_url":"https://api.github.com/users/OpenImageIO/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenImageIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenImageIO/subscriptions","organizations_url":"https://api.github.com/users/OpenImageIO/orgs","repos_url":"https://api.github.com/users/OpenImageIO/repos","events_url":"https://api.github.com/users/OpenImageIO/events{/privacy}","received_events_url":"https://api.github.com/users/OpenImageIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenImageIO/oiio","description":"OpenImageIO","fork":false,"url":"https://api.github.com/repos/OpenImageIO/oiio","forks_url":"https://api.github.com/repos/OpenImageIO/oiio/forks","keys_url":"https://api.github.com/repos/OpenImageIO/oiio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenImageIO/oiio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenImageIO/oiio/teams","hooks_url":"https://api.github.com/repos/OpenImageIO/oiio/hooks","issue_events_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/events{/number}","events_url":"https://api.github.com/repos/OpenImageIO/oiio/events","assignees_url":"https://api.github.com/repos/OpenImageIO/oiio/assignees{/user}","branches_url":"https://api.github.com/repos/OpenImageIO/oiio/branches{/branch}","tags_url":"https://api.github.com/repos/OpenImageIO/oiio/tags","blobs_url":"https://api.github.com/repos/OpenImageIO/oiio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenImageIO/oiio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenImageIO/oiio/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenImageIO/oiio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenImageIO/oiio/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenImageIO/oiio/languages","stargazers_url":"https://api.github.com/repos/OpenImageIO/oiio/stargazers","contributors_url":"https://api.github.com/repos/OpenImageIO/oiio/contributors","subscribers_url":"https://api.github.com/repos/OpenImageIO/oiio/subscribers","subscription_url":"https://api.github.com/repos/OpenImageIO/oiio/subscription","commits_url":"https://api.github.com/repos/OpenImageIO/oiio/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenImageIO/oiio/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenImageIO/oiio/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenImageIO/oiio/contents/{+path}","compare_url":"https://api.github.com/repos/OpenImageIO/oiio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenImageIO/oiio/merges","archive_url":"https://api.github.com/repos/OpenImageIO/oiio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenImageIO/oiio/downloads","issues_url":"https://api.github.com/repos/OpenImageIO/oiio/issues{/number}","pulls_url":"https://api.github.com/repos/OpenImageIO/oiio/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenImageIO/oiio/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenImageIO/oiio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenImageIO/oiio/labels{/name}","releases_url":"https://api.github.com/repos/OpenImageIO/oiio/releases{/id}","deployments_url":"https://api.github.com/repos/OpenImageIO/oiio/deployments","created_at":"2011-02-02T23:03:28Z","updated_at":"2016-09-08T13:33:05Z","pushed_at":"2016-09-12T20:58:56Z","git_url":"git://github.com/OpenImageIO/oiio.git","ssh_url":"git@github.com:OpenImageIO/oiio.git","clone_url":"https://github.com/OpenImageIO/oiio.git","svn_url":"https://github.com/OpenImageIO/oiio","homepage":"http://www.openimageio.org","size":138669,"stargazers_count":464,"watchers_count":464,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":227,"mirror_url":null,"open_issues_count":85,"forks":227,"open_issues":85,"watchers":464,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenImageIO/oiio/pulls/1481"},"html":{"href":"https://github.com/OpenImageIO/oiio/pull/1481"},"issue":{"href":"https://api.github.com/repos/OpenImageIO/oiio/issues/1481"},"comments":{"href":"https://api.github.com/repos/OpenImageIO/oiio/issues/1481/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenImageIO/oiio/pulls/1481/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenImageIO/oiio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenImageIO/oiio/pulls/1481/commits"},"statuses":{"href":"https://api.github.com/repos/OpenImageIO/oiio/statuses/b5391f269c083451f41e472209bec477335b763a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lgritz","id":504179,"avatar_url":"https://avatars.githubusercontent.com/u/504179?v=3","gravatar_id":"","url":"https://api.github.com/users/lgritz","html_url":"https://github.com/lgritz","followers_url":"https://api.github.com/users/lgritz/followers","following_url":"https://api.github.com/users/lgritz/following{/other_user}","gists_url":"https://api.github.com/users/lgritz/gists{/gist_id}","starred_url":"https://api.github.com/users/lgritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgritz/subscriptions","organizations_url":"https://api.github.com/users/lgritz/orgs","repos_url":"https://api.github.com/users/lgritz/repos","events_url":"https://api.github.com/users/lgritz/events{/privacy}","received_events_url":"https://api.github.com/users/lgritz/received_events","type":"User","site_admin":false},"comments":5,"review_comments":4,"commits":1,"additions":47,"deletions":9,"changed_files":4}}
{"actor":{"display_login":"lgritz"}}