{"action":"created","issue":{"url":"https://api.github.com/repos/lz4/lz4/issues/273","repository_url":"https://api.github.com/repos/lz4/lz4","labels_url":"https://api.github.com/repos/lz4/lz4/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/lz4/lz4/issues/273/comments","events_url":"https://api.github.com/repos/lz4/lz4/issues/273/events","html_url":"https://github.com/lz4/lz4/issues/273","id":190837743,"number":273,"title":"How to correctly set LZ4F_preferences for high compression","user":{"login":"scherepanov","id":11700042,"avatar_url":"https://avatars.githubusercontent.com/u/11700042?v=3","gravatar_id":"","url":"https://api.github.com/users/scherepanov","html_url":"https://github.com/scherepanov","followers_url":"https://api.github.com/users/scherepanov/followers","following_url":"https://api.github.com/users/scherepanov/following{/other_user}","gists_url":"https://api.github.com/users/scherepanov/gists{/gist_id}","starred_url":"https://api.github.com/users/scherepanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scherepanov/subscriptions","organizations_url":"https://api.github.com/users/scherepanov/orgs","repos_url":"https://api.github.com/users/scherepanov/repos","events_url":"https://api.github.com/users/scherepanov/events{/privacy}","received_events_url":"https://api.github.com/users/scherepanov/received_events","type":"User","site_admin":false},"labels":[{"id":88224674,"url":"https://api.github.com/repos/lz4/lz4/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-21T21:15:44Z","updated_at":"2016-11-21T22:13:44Z","closed_at":null,"body":"Hi,\r\nI am trying to do high compression with frame API LZ4F_compressFrame.\r\nIt require to pass LZ4F preferences to do higher compression than default.\r\nI cannot find any docs how to set fields in LZ4F_preferences. I traces cli code and come with following, but it is not working.\r\nCan you point to some docs where LZ4F_preferences setting is described, or can you look and tell what fields I am setting wrong.\r\nAs of now, I am passing nullptr for preferences, it is doing default compression and works just fine.\r\nThank you\r\n\r\n/* High compression - not working! TODO\r\n  LZ4F_preferences_t prefs;\r\n  prefs.autoFlush = static_cast<blockMode_t>(1);\r\n  prefs.compressionLevel = 3;\r\n\r\n  //prefs.frameInfo.blockMode = blockIndependence;\r\n  prefs.frameInfo.blockMode = static_cast<blockMode_t>(1);\r\n  //prefs.frameInfo.blockSizeID = globalBlockSizeId;\r\n  prefs.frameInfo.blockSizeID = static_cast<blockSizeID_t>(7);\r\n  //prefs.frameInfo.contentChecksumFlag = streamChecksum;\r\n  prefs.frameInfo.contentChecksumFlag = static_cast<contentChecksum_t>(1);\r\n*/\r\n  LZ4F_errorCode_t errorCode = LZ4F_compressFrame(comp_buf, max_compressed_size, source_buf, source_size, nullptr);"},"comment":{"url":"https://api.github.com/repos/lz4/lz4/issues/comments/262084418","html_url":"https://github.com/lz4/lz4/issues/273#issuecomment-262084418","issue_url":"https://api.github.com/repos/lz4/lz4/issues/273","id":262084418,"user":{"login":"Cyan4973","id":750081,"avatar_url":"https://avatars.githubusercontent.com/u/750081?v=3","gravatar_id":"","url":"https://api.github.com/users/Cyan4973","html_url":"https://github.com/Cyan4973","followers_url":"https://api.github.com/users/Cyan4973/followers","following_url":"https://api.github.com/users/Cyan4973/following{/other_user}","gists_url":"https://api.github.com/users/Cyan4973/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyan4973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyan4973/subscriptions","organizations_url":"https://api.github.com/users/Cyan4973/orgs","repos_url":"https://api.github.com/users/Cyan4973/repos","events_url":"https://api.github.com/users/Cyan4973/events{/privacy}","received_events_url":"https://api.github.com/users/Cyan4973/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T22:13:44Z","updated_at":"2016-11-21T22:13:44Z","body":"I've used this opportunity to add some comments in `lz4frame.h`,\r\nin the hope that it helps reducing confusion."}}
{"actor":{"display_login":"Cyan4973"}}