{"id":7145,"date":"2019-02-16T19:54:00","date_gmt":"2019-02-16T10:54:00","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7145"},"modified":"2019-02-16T19:57:32","modified_gmt":"2019-02-16T10:57:32","slug":"halide-%e3%81%a7%e9%81%8a%e3%82%93%e3%81%a7%e3%81%bf%e3%82%88%e3%81%86%e3%81%a8%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7145","title":{"rendered":"Halide \u3067\u904a\u3093\u3067\u307f\u3088\u3046\u3068\u3059\u308b"},"content":{"rendered":"<p>Ut Video Codec Suite \u3067 Halide \u3092\u4f7f\u3046\u524d\u63d0\u3067\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u524d\u63d0\u306b\u7acb\u3064\u9650\u308a Halide \u306f\u4f7f\u3044\u7269\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u307e\u305a<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7130\">\u524d\u306e\u8a18\u4e8b<\/a>\u3067\u66f8\u3044\u305f\u901a\u308a\u3001 UMxx \u306e\u51e6\u7406 (8SymPack) \u306f\u305d\u3082\u305d\u3082 Halide \u3067\u8a18\u8ff0\u3067\u304d\u306a\u3055\u305d\u3046\u3067\u3059\u3002\u30c0\u30e1\u305d\u3046\u3060\u3068\u601d\u3044\u3064\u3064\u3082 StackOverflow \u3067\u805e\u3044\u3066\u307f\u307e\u3057\u305f\u304c\u89e3\u7b54\u306f\u4ed8\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u306e\u6642\u70b9\u3067\u534a\u5206\u3050\u3089\u3044\u306e\u30eb\u30fc\u30c1\u30f3\u306f Halide \u3067\u306f\u66f8\u3051\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001ULxx \u3067\u4f7f\u3063\u3066\u3044\u308b\u30d5\u30ec\u30fc\u30e0\u5185\u4e88\u6e2c\u306e\u3046\u3061 predict left \u3092\u8a18\u8ff0\u3057\u3066\u307f\u307e\u3059\u3002\u975e\u5e38\u306b\u5358\u7d14\u306a\u51e6\u7406\u306a\u306e\u3067\u672c\u8cea\u7684\u306a\u90e8\u5206\u306f1\u884c\u3067\u66f8\u3051\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>Func predict_left;\nVar x;\nImageParam input(type_of&lt;uint8_t&gt;(), 1);\nFunc input_ = BoundaryConditions::constant_exterior(input, (uint8_t)0x80);\npredict_left(x) = input_(x) - input_(x-1);\npredict_left.vectorize(x, 16);\n<\/pre>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/umezawatakeshi\/utvideo\/blob\/utvideo-20.2.0\/utv_core\/Predict_x86x64.cpp#L113-L140\">UtVideo \u306b\u3042\u308b intrinsic \u7248<\/a>\uff08\u6b63\u78ba\u306b\u306f\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u53d6\u308b\u51e6\u7406\u3092\u53d6\u308a\u9664\u3044\u305f\u3082\u306e\uff09\u3068\u901f\u5ea6\u3092\u6bd4\u8f03\u3057\u305f\u3068\u3053\u308d\u3001Halide \u304c\u5410\u3044\u305f\u30d0\u30a4\u30ca\u30ea\u306e\u65b9\u304c1-2%\u307b\u3069\u901f\u3044\u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3060\u3051\u5358\u7d14\u306a\u51e6\u7406\u5185\u5bb9\u3067\u3042\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a Halide \u304c\u5410\u3044\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u8aad\u3093\u3067\u3082\u4f55\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u304b\u30b5\u30c3\u30d1\u30ea\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u78ba\u304b\u306b\u4f55\u5ea6\u8a08\u6e2c\u3057\u3066\u3082\u3061\u3083\u3093\u3068\u901f\u304f\u52d5\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3053\u306e\u9006\u306e\u51e6\u7406\u3067\u3042\u308b restore left \u3092\u8a18\u8ff0\u3057\u3066\u307f\u307e\u3059\u3002\u3053\u308c\u307e\u305f\u5358\u7d14\u306a\u51e6\u7406\u3067\u3059\u304c\u3001predict \u306e\u65b9\u307b\u3069\u306f\u5358\u7d14\u3067\u306f\u306a\u304f\u3001 <code>RDom<\/code> \u304c\u767b\u5834\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>Func restore_left;\nVar x;\nImageParam input(type_of&lt;uint8_t&gt;(), 1);\nrestore_left(x) = input(0) + (uint8_t)0x80;\nRDom r(1, input.width()-1);\nrestore_left(r) = input(r) + restore_left(r-1);\nrestore_left.vectorize(x, 32);\n<\/pre>\n<\/blockquote>\n<p>\u3067\u3001<a href=\"https:\/\/github.com\/umezawatakeshi\/utvideo\/blob\/utvideo-20.2.0\/utv_core\/Predict_x86x64.cpp#L151-L184\">\u5bfe\u5fdc\u3059\u308b intrinsic \u7248<\/a>\u3068\u901f\u5ea6\u3092\u6bd4\u8f03\u3057\u307e\u3057\u305f\u304c\u3001Halide \u306e\u65b9\u304c3\u500d\u4ee5\u4e0a\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u8a66\u3057\u306b\u30d9\u30af\u30c8\u30eb\u5316\u3082\u30eb\u30fc\u30d7\u30a2\u30f3\u30ed\u30fc\u30ea\u30f3\u30b0\u3082\u5168\u304f\u3057\u3066\u3044\u306a\u3044\u3082\u306e\u3092 C \u3067\u66f8\u3044\u3066\u307f\u305f\u3068\u3053\u308d Halide \u3088\u308a\u3061\u3087\u3063\u3068\u9045\u3044\u3050\u3089\u3044\u3060\u3063\u305f\u306e\u3067\u3001 Halide \u306f\u30ed\u30af\u306b\u30d9\u30af\u30c8\u30eb\u5316\u3067\u304d\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>restore left \u3059\u3089\u3046\u307e\u304f\u6271\u3048\u306a\u3044\u3088\u3046\u3067\u306f\u4f7f\u3044\u7269\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u73fe\u72b6 Halide \u3092 UtVideo \u306b\u9069\u7528\u3059\u308b\u306e\u306f\u6642\u671f\u5c1a\u65e9\u306e\u3088\u3046\u3067\u3059\u3002Halide \u3092\u4f7f\u3046\u3053\u3068\u3067\u51e6\u7406\u306e fusion \u3092\u7c21\u5358\u306b\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u8ae6\u3081\u3066 intrinsic \u3067\u66f8\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ut Video Codec Suite \u3067 Halide \u3092\u4f7f\u3046\u524d\u63d0\u3067\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u524d\u63d0\u306b\u7acb\u3064\u9650\u308a Halide \u306f\u4f7f\u3044\u7269\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,27],"tags":[],"class_list":["post-7145","post","type-post","status-publish","format-standard","hentry","category-ut-video-codec-suite","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7145"}],"version-history":[{"count":5,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7145\/revisions"}],"predecessor-version":[{"id":7150,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7145\/revisions\/7150"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7145"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}