{"action":"created","comment":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/comments/62206937","id":62206937,"diff_hunk":"@@ -570,6 +570,141 @@ handle_audio_track(EbmlStream *&es,\n       show_unknown_element(l4, 4);\n }\n \n+void handle_video_colour_master_meta(EbmlStream *&es,\n+                                     EbmlElement *&l5,\n+                                     std::vector<std::string> &summary) {\n+  show_element(l5, 5, Y(\"Video colour mastering metadata\"));\n+  for (auto l6: *static_cast<EbmlMaster *>(l5)) {\n+    if (Is<KaxVideoRChromaX>(l6)) {\n+      KaxVideoRChromaX &x = *static_cast<KaxVideoRChromaX *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Red colour coordinate x: %1%\")) % x.GetValue());\n+      summary.push_back((boost::format(Y(\"Red colour coordinates x: %1%\")) % x.GetValue()).str());\n+\n+    } else if (Is<KaxVideoRChromaY>(l6)) {\n+      KaxVideoRChromaY &y = *static_cast<KaxVideoRChromaY *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Red colour coordinate y: %1%\")) % y.GetValue());\n+      summary.push_back((boost::format(Y(\"Red colour coordinates y: %1%\")) % y.GetValue()).str());\n+\n+    } else if (Is<KaxVideoGChromaX>(l6)) {\n+      KaxVideoGChromaX &x = *static_cast<KaxVideoGChromaX *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Green colour coordinate x: %1%\")) % x.GetValue());\n+      summary.push_back((boost::format(Y(\"Green colour coordinates x: %1%\")) % x.GetValue()).str());\n+\n+    } else if (Is<KaxVideoGChromaY>(l6)) {\n+      KaxVideoGChromaY &y = *static_cast<KaxVideoGChromaY *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Green colour coordinate y: %1%\")) % y.GetValue());\n+      summary.push_back((boost::format(Y(\"Green colour coordinates y: %1%\")) % y.GetValue()).str());\n+\n+    } else if (Is<KaxVideoBChromaX>(l6)) {\n+      KaxVideoBChromaX &x = *static_cast<KaxVideoBChromaX *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Blue colour coordinate x: %1%\")) % x.GetValue());\n+      summary.push_back((boost::format(Y(\"Blue colour coordinates x: %1%\")) % x.GetValue()).str());\n+\n+    } else if (Is<KaxVideoBChromaY>(l6)) {\n+      KaxVideoBChromaY &y = *static_cast<KaxVideoBChromaY *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Blue colour coordinate y: %1%\")) % y.GetValue());\n+      summary.push_back((boost::format(Y(\"Blue colour coordinates y: %1%\")) % y.GetValue()).str());\n+\n+    } else if (Is<KaxVideoWhitePointChromaX>(l6)) {\n+      KaxVideoWhitePointChromaX &x = *static_cast<KaxVideoWhitePointChromaX *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"White colour coordinate x: %1%\")) % x.GetValue());\n+      summary.push_back((boost::format(Y(\"White colour coordinates x: %1%\")) % x.GetValue()).str());\n+\n+    } else if (Is<KaxVideoWhitePointChromaY>(l6)) {\n+      KaxVideoWhitePointChromaY &y = *static_cast<KaxVideoWhitePointChromaY *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"White colour coordinate y: %1%\")) % y.GetValue());\n+      summary.push_back((boost::format(Y(\"White colour coordinates y: %1%\")) % y.GetValue()).str());\n+\n+    } else if (Is<KaxVideoLuminanceMax>(l6)) {\n+      KaxVideoLuminanceMax &luminance = *static_cast<KaxVideoLuminanceMax *>(l6);\n+      show_element(l6, 6, boost::format(Y(\"Max luminance : %1%\")) % luminance.GetValue());\n+      summary.push_back((boost::format(Y(\"Max luminancne : %1%\")) % luminance.GetValue()).str());","path":"src/info/mkvinfo.cpp","position":52,"original_position":52,"commit_id":"5ead6c9b05eda1b4117228eace43e40bc6033880","original_commit_id":"5ead6c9b05eda1b4117228eace43e40bc6033880","user":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"body":"There's a spelling error in the second usage of `luminance`. Please use the same string in both places.","created_at":"2016-05-05T15:49:22Z","updated_at":"2016-05-05T15:49:22Z","html_url":"https://github.com/mbunkus/mkvtoolnix/pull/1675#discussion_r62206937","pull_request_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675","_links":{"self":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/comments/62206937"},"html":{"href":"https://github.com/mbunkus/mkvtoolnix/pull/1675#discussion_r62206937"},"pull_request":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675"}}},"pull_request":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675","id":67827188,"html_url":"https://github.com/mbunkus/mkvtoolnix/pull/1675","diff_url":"https://github.com/mbunkus/mkvtoolnix/pull/1675.diff","patch_url":"https://github.com/mbunkus/mkvtoolnix/pull/1675.patch","issue_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1675","number":1675,"state":"open","locked":false,"title":"Add flags for setting the colour properties of a video track.","user":{"login":"chenchao1983","id":7074371,"avatar_url":"https://avatars.githubusercontent.com/u/7074371?v=3","gravatar_id":"","url":"https://api.github.com/users/chenchao1983","html_url":"https://github.com/chenchao1983","followers_url":"https://api.github.com/users/chenchao1983/followers","following_url":"https://api.github.com/users/chenchao1983/following{/other_user}","gists_url":"https://api.github.com/users/chenchao1983/gists{/gist_id}","starred_url":"https://api.github.com/users/chenchao1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenchao1983/subscriptions","organizations_url":"https://api.github.com/users/chenchao1983/orgs","repos_url":"https://api.github.com/users/chenchao1983/repos","events_url":"https://api.github.com/users/chenchao1983/events{/privacy}","received_events_url":"https://api.github.com/users/chenchao1983/received_events","type":"User","site_admin":false},"body":"Dear Colleagues\r\nPlease kindly review this patch.\r\n\r\nI have added a set of flags to enable configuring the colour properties for MKV container.\r\nmkvinfo is also updated to show the colour properties.","created_at":"2016-04-26T05:02:15Z","updated_at":"2016-05-05T15:49:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d76454f3e3649d54a3b903b45133c43b22f907f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675/commits","review_comments_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675/comments","review_comment_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1675/comments","statuses_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/statuses/5ead6c9b05eda1b4117228eace43e40bc6033880","head":{"label":"chenchao1983:add_flags_for_video_colour","ref":"add_flags_for_video_colour","sha":"5ead6c9b05eda1b4117228eace43e40bc6033880","user":{"login":"chenchao1983","id":7074371,"avatar_url":"https://avatars.githubusercontent.com/u/7074371?v=3","gravatar_id":"","url":"https://api.github.com/users/chenchao1983","html_url":"https://github.com/chenchao1983","followers_url":"https://api.github.com/users/chenchao1983/followers","following_url":"https://api.github.com/users/chenchao1983/following{/other_user}","gists_url":"https://api.github.com/users/chenchao1983/gists{/gist_id}","starred_url":"https://api.github.com/users/chenchao1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenchao1983/subscriptions","organizations_url":"https://api.github.com/users/chenchao1983/orgs","repos_url":"https://api.github.com/users/chenchao1983/repos","events_url":"https://api.github.com/users/chenchao1983/events{/privacy}","received_events_url":"https://api.github.com/users/chenchao1983/received_events","type":"User","site_admin":false},"repo":{"id":56622010,"name":"mkvtoolnix","full_name":"chenchao1983/mkvtoolnix","owner":{"login":"chenchao1983","id":7074371,"avatar_url":"https://avatars.githubusercontent.com/u/7074371?v=3","gravatar_id":"","url":"https://api.github.com/users/chenchao1983","html_url":"https://github.com/chenchao1983","followers_url":"https://api.github.com/users/chenchao1983/followers","following_url":"https://api.github.com/users/chenchao1983/following{/other_user}","gists_url":"https://api.github.com/users/chenchao1983/gists{/gist_id}","starred_url":"https://api.github.com/users/chenchao1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenchao1983/subscriptions","organizations_url":"https://api.github.com/users/chenchao1983/orgs","repos_url":"https://api.github.com/users/chenchao1983/repos","events_url":"https://api.github.com/users/chenchao1983/events{/privacy}","received_events_url":"https://api.github.com/users/chenchao1983/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chenchao1983/mkvtoolnix","description":"Creating and working with Matroska files","fork":true,"url":"https://api.github.com/repos/chenchao1983/mkvtoolnix","forks_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/forks","keys_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/teams","hooks_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/hooks","issue_events_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/issues/events{/number}","events_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/events","assignees_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/assignees{/user}","branches_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/branches{/branch}","tags_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/tags","blobs_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/git/refs{/sha}","trees_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/statuses/{sha}","languages_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/languages","stargazers_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/stargazers","contributors_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/contributors","subscribers_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/subscribers","subscription_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/subscription","commits_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/commits{/sha}","git_commits_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/git/commits{/sha}","comments_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/comments{/number}","issue_comment_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/issues/comments{/number}","contents_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/contents/{+path}","compare_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/merges","archive_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/downloads","issues_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/issues{/number}","pulls_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/pulls{/number}","milestones_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/milestones{/number}","notifications_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/labels{/name}","releases_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/releases{/id}","deployments_url":"https://api.github.com/repos/chenchao1983/mkvtoolnix/deployments","created_at":"2016-04-19T18:36:57Z","updated_at":"2016-04-19T18:37:01Z","pushed_at":"2016-04-26T04:55:35Z","git_url":"git://github.com/chenchao1983/mkvtoolnix.git","ssh_url":"git@github.com:chenchao1983/mkvtoolnix.git","clone_url":"https://github.com/chenchao1983/mkvtoolnix.git","svn_url":"https://github.com/chenchao1983/mkvtoolnix","homepage":null,"size":118546,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"mbunkus:master","ref":"master","sha":"d9e2ca294caf303f374fffbca6d0563feb59712c","user":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"repo":{"id":29777381,"name":"mkvtoolnix","full_name":"mbunkus/mkvtoolnix","owner":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbunkus/mkvtoolnix","description":"Creating and working with Matroska files","fork":false,"url":"https://api.github.com/repos/mbunkus/mkvtoolnix","forks_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/forks","keys_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/teams","hooks_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/hooks","issue_events_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/events{/number}","events_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/events","assignees_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/assignees{/user}","branches_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/branches{/branch}","tags_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/tags","blobs_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/statuses/{sha}","languages_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/languages","stargazers_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/stargazers","contributors_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/contributors","subscribers_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/subscribers","subscription_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/subscription","commits_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/contents/{+path}","compare_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/merges","archive_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/downloads","issues_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues{/number}","pulls_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls{/number}","milestones_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/milestones{/number}","notifications_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels{/name}","releases_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/releases{/id}","deployments_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/deployments","created_at":"2015-01-24T13:29:45Z","updated_at":"2016-05-03T23:32:12Z","pushed_at":"2016-05-05T15:22:20Z","git_url":"git://github.com/mbunkus/mkvtoolnix.git","ssh_url":"git@github.com:mbunkus/mkvtoolnix.git","clone_url":"https://github.com/mbunkus/mkvtoolnix.git","svn_url":"https://github.com/mbunkus/mkvtoolnix","homepage":null,"size":123449,"stargazers_count":169,"watchers_count":169,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":9,"forks":37,"open_issues":9,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675"},"html":{"href":"https://github.com/mbunkus/mkvtoolnix/pull/1675"},"issue":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1675"},"comments":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1675/comments"},"review_comments":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675/comments"},"review_comment":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/pulls/1675/commits"},"statuses":{"href":"https://api.github.com/repos/mbunkus/mkvtoolnix/statuses/5ead6c9b05eda1b4117228eace43e40bc6033880"}}}}