{"action":"created","issue":{"url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/68","repository_url":"https://api.github.com/repos/TheImagingSource/tiscamera","labels_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/68/comments","events_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/68/events","html_url":"https://github.com/TheImagingSource/tiscamera/issues/68","id":161086233,"number":68,"title":"DFK / VIDIOC_S_CTRL Problem","user":{"login":"Ishtar-UK","id":19150260,"avatar_url":"https://avatars.githubusercontent.com/u/19150260?v=3","gravatar_id":"","url":"https://api.github.com/users/Ishtar-UK","html_url":"https://github.com/Ishtar-UK","followers_url":"https://api.github.com/users/Ishtar-UK/followers","following_url":"https://api.github.com/users/Ishtar-UK/following{/other_user}","gists_url":"https://api.github.com/users/Ishtar-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/Ishtar-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ishtar-UK/subscriptions","organizations_url":"https://api.github.com/users/Ishtar-UK/orgs","repos_url":"https://api.github.com/users/Ishtar-UK/repos","events_url":"https://api.github.com/users/Ishtar-UK/events{/privacy}","received_events_url":"https://api.github.com/users/Ishtar-UK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-06-19T18:49:26Z","updated_at":"2016-06-21T10:39:22Z","closed_at":null,"body":"Hello Everyone\r\n\r\nI am in the process of writing a Linux application to control the Imaging Source USB cameras and testing with both a DMK21 (GREY) and an DFK colour camera. However, I have run into a problem.\r\n\r\nI have written the following code to update the Gamma (Or indeed, any camera parameters I choose to set). This code snippet works perfectly with normal webcams (that is, the gamma is updated when cam_ctrl_gamma is changed) but does nothing with the DFK / DMK cameras. \r\n\r\nDoes anybody know what I am doing wrong?\r\n\r\n`struct` v4l2_control control;\r\nmemset(&control, 0, sizeof (control));\r\n\r\n control.id = V4L2_CID_GAMMA;\r\n control.value = cam_ctrl_gamma;\r\n\r\n if (ioctl(fd, VIDIOC_S_CTRL, &control) < 0)\r\n {\r\n      cerr << \"ERROR: \" + (string) strerror(errno) << \"\\n\";\r\n      return;\r\n }`\r\n\r\nKind Regards\r\nAmanda"},"comment":{"url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/comments/227403418","html_url":"https://github.com/TheImagingSource/tiscamera/issues/68#issuecomment-227403418","issue_url":"https://api.github.com/repos/TheImagingSource/tiscamera/issues/68","id":227403418,"user":{"login":"Ishtar-UK","id":19150260,"avatar_url":"https://avatars.githubusercontent.com/u/19150260?v=3","gravatar_id":"","url":"https://api.github.com/users/Ishtar-UK","html_url":"https://github.com/Ishtar-UK","followers_url":"https://api.github.com/users/Ishtar-UK/followers","following_url":"https://api.github.com/users/Ishtar-UK/following{/other_user}","gists_url":"https://api.github.com/users/Ishtar-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/Ishtar-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ishtar-UK/subscriptions","organizations_url":"https://api.github.com/users/Ishtar-UK/orgs","repos_url":"https://api.github.com/users/Ishtar-UK/repos","events_url":"https://api.github.com/users/Ishtar-UK/events{/privacy}","received_events_url":"https://api.github.com/users/Ishtar-UK/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T10:39:22Z","updated_at":"2016-06-21T10:39:22Z","body":"Thanks Stefan\r\n\r\nThe reason I'm getting a greenish image is because I am using an SDL2 Texture specifically set for YUY2 and have no conversion in place yet. I will try this on another Linux system. \r\n\r\nThanks for your help\r\nRegards\r\nAmanda"}}
{"actor":{"display_login":"Ishtar-UK"}}