{"action":"created","issue":{"url":"https://api.github.com/repos/AviSynth/AviSynthPlus/issues/101","repository_url":"https://api.github.com/repos/AviSynth/AviSynthPlus","labels_url":"https://api.github.com/repos/AviSynth/AviSynthPlus/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/AviSynth/AviSynthPlus/issues/101/comments","events_url":"https://api.github.com/repos/AviSynth/AviSynthPlus/issues/101/events","html_url":"https://github.com/AviSynth/AviSynthPlus/pull/101","id":172724279,"number":101,"title":"Conversion of 10/12/14 bit types. Info() new params.","user":{"login":"pinterf","id":6673201,"avatar_url":"https://avatars.githubusercontent.com/u/6673201?v=3","gravatar_id":"","url":"https://api.github.com/users/pinterf","html_url":"https://github.com/pinterf","followers_url":"https://api.github.com/users/pinterf/followers","following_url":"https://api.github.com/users/pinterf/following{/other_user}","gists_url":"https://api.github.com/users/pinterf/gists{/gist_id}","starred_url":"https://api.github.com/users/pinterf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinterf/subscriptions","organizations_url":"https://api.github.com/users/pinterf/orgs","repos_url":"https://api.github.com/users/pinterf/repos","events_url":"https://api.github.com/users/pinterf/events{/privacy}","received_events_url":"https://api.github.com/users/pinterf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-23T15:04:48Z","updated_at":"2016-08-30T09:52:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AviSynth/AviSynthPlus/pulls/101","html_url":"https://github.com/AviSynth/AviSynthPlus/pull/101","diff_url":"https://github.com/AviSynth/AviSynthPlus/pull/101.diff","patch_url":"https://github.com/AviSynth/AviSynthPlus/pull/101.patch"},"body":"When a color space with bit-depth 10/12/14 is involved, conversion assumes the real 10-12-14 range, unless truerange=false is specified.\r\nWhen truerange==false, the internal range is expanded to 16 bits, only the pixel_format hints to the limited range.\r\nYUV(A) conversions are using bit-shifts. For planar RGB, full range is used (0-1023/4095/16383/65535). Planar RGB is always using 65535 when truerange==false is specified."},"comment":{"url":"https://api.github.com/repos/AviSynth/AviSynthPlus/issues/comments/243390263","html_url":"https://github.com/AviSynth/AviSynthPlus/pull/101#issuecomment-243390263","issue_url":"https://api.github.com/repos/AviSynth/AviSynthPlus/issues/101","id":243390263,"user":{"login":"pinterf","id":6673201,"avatar_url":"https://avatars.githubusercontent.com/u/6673201?v=3","gravatar_id":"","url":"https://api.github.com/users/pinterf","html_url":"https://github.com/pinterf","followers_url":"https://api.github.com/users/pinterf/followers","following_url":"https://api.github.com/users/pinterf/following{/other_user}","gists_url":"https://api.github.com/users/pinterf/gists{/gist_id}","starred_url":"https://api.github.com/users/pinterf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinterf/subscriptions","organizations_url":"https://api.github.com/users/pinterf/orgs","repos_url":"https://api.github.com/users/pinterf/repos","events_url":"https://api.github.com/users/pinterf/events{/privacy}","received_events_url":"https://api.github.com/users/pinterf/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T09:52:33Z","updated_at":"2016-08-30T09:52:33Z","body":"As for the other issue of 10-12-14 bits:\r\n\r\nAll internal filters assume such bit-depth formats having pixels in 0-65535 range.\r\nE.g. when you put an Info() on a 10 bit format having true range, it will also seem to be incorrect.\r\n\r\nRange truncation occurs only when calling ConvertTo16bit(10) (12) (14).\r\n\r\nWhen you want to have filters work on 10-12-14 bits, use ConvertTo16bit(... truerange=false). The pixel_format will be changed, but the range will stay at 0-65535. It would be a lot of work to treat 10-12-14 bit formats with their real range in all internal filters.\r\n\r\nBtw, I agree that once we have these formats, limited true range should be the default for either internal or external filter use. Until the development is reaching this point, read source in 10-12-14 bits, convert it with truerange=false for 16 bits, filter, then if the output requires, convert it back with e.g. ConvertTo16bit(10) (note that truerange=true by default to have a 0-1023 range)\r\n"}}
{"actor":{"display_login":"pinterf"}}