{"id":975,"date":"2024-04-23T12:29:41","date_gmt":"2024-04-23T03:29:41","guid":{"rendered":"https:\/\/elosove.com\/?p=975"},"modified":"2024-04-23T12:29:42","modified_gmt":"2024-04-23T03:29:42","slug":"obs-studio%e3%81%ae%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9-4-%e3%82%ab%e3%83%a9%e3%83%bc%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf","status":"publish","type":"post","link":"https:\/\/elosove.com\/?p=975","title":{"rendered":"OBS Studio\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f5c\u308a\u65b9 #4 \u30ab\u30e9\u30fc\u30d5\u30a3\u30eb\u30bf"},"content":{"rendered":"\n<p>OBS\u306e\u30bd\u30fc\u30b9\u6620\u50cf\u306e\u4e0a\u306b\u9078\u629e\u3057\u305f\u30ab\u30e9\u30fc\u3092\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306e\u3088\u3046\u306b\u4e57\u7b97\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u308a\u3082\u3084\u3063\u3068\u4eca\u56de\u3067\u5b9f\u7528\u7684\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u304d\u305f&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-thumnail-1024x573.png\" alt=\"\" class=\"wp-image-982\" srcset=\"https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-thumnail-1024x573.png 1024w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-thumnail-300x168.png 300w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-thumnail-768x430.png 768w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-thumnail.png 1076w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u6a5f\u80fd\u3068\u3057\u3066\u306f\u30d5\u30a3\u30eb\u30bf\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30e6\u30fc\u30b6\u30fc\u304c\u9078\u3093\u3060\u8272\u3092\u30bd\u30fc\u30b9\u306e\u4e0a\u306b\u4e0a\u66f8\u304d\u3059\u308b\u5358\u7d14\u306a\u3082\u306e\u3067\u3001\u7dd1\u8272\u56fa\u5b9a\u306e\u5358\u7d14\u30b1\u30fc\u30b9\u306f\u516c\u5f0f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>test-filter.c\u30b3\u30fc\u30c9<\/strong>\uff1a<a href=\"https:\/\/github.com\/obsproject\/obs-studio\/blob\/master\/test\/test-input\/test-filter.c\">https:\/\/github.com\/obsproject\/obs-studio\/blob\/master\/test\/test-input\/test-filter.c<\/a><br><strong>.effect\u30b5\u30f3\u30d7\u30eb<\/strong>\uff1a<a href=\"https:\/\/github.com\/obsproject\/obs-studio\/blob\/master\/test\/test-input\/data\/test.effect\">https:\/\/github.com\/obsproject\/obs-studio\/blob\/master\/test\/test-input\/data\/test.effect<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>\u30d3\u30eb\u30c9\u3059\u308b\u306b\u306f<a href=\"https:\/\/elosove.com\/?p=396\">#1<\/a>\u3067\u884c\u3063\u305fplugin-main.c\u3092test-filter.c\u306e\u5185\u5bb9\u306b\u66f8\u304d\u63db\u3048\u308b\u3068\u30d3\u30eb\u30c9\u5b8c\u6210\u3067\u3059\u3002<\/p>\n\n\n\n<p>effect\u30d5\u30a1\u30a4\u30eb\u306f\u8a00\u8a9e\u8a2d\u5b9a\u306e\u4e00\u3064\u4e0a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002(<em>root\/data\/<\/em>)<\/p>\n\n\n\n<p>effect\u30d5\u30a1\u30a4\u30eb\u306fDirect3D 11 HLSL effect files\u3068\u6b86\u3069\u540c\u3058\u3082\u306e\u3067\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u8a00\u3046\u3068\u30b7\u30a7\u30fc\u30c0\u30fc\u3067\u3059\u3002[<a href=\"https:\/\/docs.obsproject.com\/graphics#the-graphics-context\">Rendering Graphics<\/a>]<\/p>\n\n\n\n<p>\u8a00\u8a9e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f<a href=\"https:\/\/elosove.com\/?p=943\">#3<\/a>\u3068\u540c\u3058\u69cb\u9020\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002(<em>root\/data\/locate\/<\/em>)<\/p>\n\n\n\n<p>\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4fee\u6b63\u3057\u3066\u4e0b\u56f3\u306e\u3088\u3046\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"332\" src=\"https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin.png\" alt=\"\" class=\"wp-image-988\" srcset=\"https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin.png 800w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin-300x125.png 300w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin-768x319.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/elosove.com\/?p=975\/#obs_source_info%E3%81%AE%E5%AE%9F%E8%A3%85\" title=\"obs_source_info\u306e\u5b9f\u88c5\">obs_source_info\u306e\u5b9f\u88c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/elosove.com\/?p=975\/#%E3%82%AB%E3%83%A9%E3%83%BC%E9%81%B8%E6%8A%9E%E3%81%AEUI%E5%AE%9F%E8%A3%85%E6%B3%95get_properties\" title=\"\u30ab\u30e9\u30fc\u9078\u629e\u306eUI\u5b9f\u88c5\u6cd5[get_properties]\">\u30ab\u30e9\u30fc\u9078\u629e\u306eUI\u5b9f\u88c5\u6cd5[get_properties]<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/elosove.com\/?p=975\/#%E3%82%AB%E3%83%A9%E3%83%BC%E9%81%B8%E6%8A%9E%E6%99%82%E3%81%AB%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BE%E3%82%8C%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E9%96%A2%E6%95%B0update\" title=\"\u30ab\u30e9\u30fc\u9078\u629e\u6642\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u95a2\u6570[update]\">\u30ab\u30e9\u30fc\u9078\u629e\u6642\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u95a2\u6570[update]<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/elosove.com\/?p=975\/#%E3%82%AB%E3%83%A9%E3%83%BC%E9%81%B8%E6%8A%9E%E3%81%AE%E5%80%A4%E3%81%A8RGBA%E3%81%AE%E5%A4%89%E6%8F%9B\" title=\"\u30ab\u30e9\u30fc\u9078\u629e\u306e\u5024\u3068RGBA\u306e\u5909\u63db\">\u30ab\u30e9\u30fc\u9078\u629e\u306e\u5024\u3068RGBA\u306e\u5909\u63db<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/elosove.com\/?p=975\/#%E3%82%B7%E3%82%A7%E3%83%BC%E3%83%80%E3%83%BCeffect%E3%81%AE%E5%A4%89%E6%95%B0%E8%A8%AD%E5%AE%9A\" title=\"\u30b7\u30a7\u30fc\u30c0\u30fc(.effect)\u306e\u5909\u6570\u8a2d\u5b9a\">\u30b7\u30a7\u30fc\u30c0\u30fc(.effect)\u306e\u5909\u6570\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/elosove.com\/?p=975\/#%E5%88%9D%E6%9C%9F%E5%8C%96%E3%83%BB%E7%B5%82%E4%BA%86%E5%87%A6%E7%90%86\" title=\"\u521d\u671f\u5316\u30fb\u7d42\u4e86\u51e6\u7406\">\u521d\u671f\u5316\u30fb\u7d42\u4e86\u51e6\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/elosove.com\/?p=975\/#obs_enter_graphicsobs_leave_graphics%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9\" title=\"obs_enter_graphics\/obs_leave_graphics\u306e\u4f7f\u3044\u65b9\">obs_enter_graphics\/obs_leave_graphics\u306e\u4f7f\u3044\u65b9<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"obs_source_info%E3%81%AE%E5%AE%9F%E8%A3%85\"><\/span>obs_source_info\u306e\u5b9f\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"struct obs_source_info my_ef_info = {\n\t.id = &quot;my plugin sample&quot;,\n\t.type = OBS_SOURCE_TYPE_FILTER,\n\t.output_flags = OBS_SOURCE_VIDEO,\n\t.get_name = get_my_plugin_name,\n\t.create = my_filter_create,\n\t.destroy = my_filter_destroy,\n\t.update = my_filter_update,\n\t.video_render = my_video_render,\n\t.get_properties = get_my_filter_properties,\n};\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> obs_source_info my_ef_info = {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.id = <\/span><span style=\"color: #CE9178\">&quot;my plugin sample&quot;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.type = OBS_SOURCE_TYPE_FILTER,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.output_flags = OBS_SOURCE_VIDEO,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.get_name = get_my_plugin_name,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.create = my_filter_create,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.destroy = my_filter_destroy,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.update = my_filter_update,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.video_render = my_video_render,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t.get_properties = get_my_filter_properties,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">};<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>id,type,output_flags,get_name,get_properties\u306e\uff15\u3064\u306f<a href=\"https:\/\/elosove.com\/?p=943\">\u524d\u56de\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8868\u793a<\/a>\u3059\u308b\u70ba\u306e\u95a2\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u52a0\u3048\u3066\u4eca\u56de\u306fcreate,destroy,update,video_render\u306e\uff14\u3064\u3092\u7a7a\u306e\u30c0\u30df\u30fc\u5b9f\u88c5\u3067\u306f\u306a\u304f\u3001\u307e\u3058\u3081\u306b\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u5185\u306e\u3069\u306e\u95a2\u6570\u304b\u3089\u3082\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30af\u30e9\u30b9\u5909\u6570\u7684\u306a\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>test-filter.c\u3067\u306ftest_filter\u69cb\u9020\u4f53\u304c\u5192\u982d\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u898b\u3066\u3044\u308b\u3068context\u3068\u3044\u3046\u5909\u6570\u540d\u304c\u591a\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u3067\u4eca\u56de\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u69cb\u9020\u4f53\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"struct my_context {\n\tobs_source_t *source; \/\/\u9069\u7528\u3059\u308b\u30bd\u30fc\u30b9\n\tgs_effect_t *effect; \/\/\u9069\u7528\u3059\u308b\u30b7\u30a7\u30fc\u30c0\u30fc(effect\u30d5\u30a1\u30a4\u30eb)\n\tstruct vec4 color_rgba; \/\/\u4e57\u7b97\u3057\u305f\u3044\u8272\n};\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> my_context {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #4EC9B0\">obs_source_t<\/span><span style=\"color: #D4D4D4\"> *source;<\/span><span style=\"color: #6A9955\"> \/\/\u9069\u7528\u3059\u308b\u30bd\u30fc\u30b9<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #4EC9B0\">gs_effect_t<\/span><span style=\"color: #D4D4D4\"> *effect;<\/span><span style=\"color: #6A9955\"> \/\/\u9069\u7528\u3059\u308b\u30b7\u30a7\u30fc\u30c0\u30fc(effect\u30d5\u30a1\u30a4\u30eb)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> vec4 color_rgba;<\/span><span style=\"color: #6A9955\"> \/\/\u4e57\u7b97\u3057\u305f\u3044\u8272<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">};<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%AB%E3%83%A9%E3%83%BC%E9%81%B8%E6%8A%9E%E3%81%AEUI%E5%AE%9F%E8%A3%85%E6%B3%95get_properties\"><\/span>\u30ab\u30e9\u30fc\u9078\u629e\u306eUI\u5b9f\u88c5\u6cd5[get_properties]<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30d7\u30ed\u30d1\u30c6\u30a3\u306eUI\u306f<a href=\"https:\/\/docs.obsproject.com\/reference-properties\">\u516c\u5f0f\u306eapi\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066<strong>obs_properties_add_color_alpha<\/strong>\u3092\u4f7f\u3046\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>(RGBA\u305d\u308c\u305e\u308c\u306e\u5024\u3092\u30b9\u30e9\u30a4\u30c0\u3067\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f<strong>obs_properties_add_float_slider<\/strong>\u3092\u7528\u610f\u3059\u308b\u306e\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093)<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"static obs_properties_t *get_my_filter_properties(void *data)\n{\n\tobs_properties_t *props = obs_properties_create();\n\n\tobs_properties_add_color_alpha(props, &quot;color1&quot;, obs_module_text(&quot;MyLabel&quot;));\n\n\tUNUSED_PARAMETER(data);\n\treturn props;\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">static<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">obs_properties_t<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #DCDCAA\">get_my_filter_properties<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">data<\/span><span style=\"color: #D4D4D4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #4EC9B0\">obs_properties_t<\/span><span style=\"color: #D4D4D4\"> *props = <\/span><span style=\"color: #DCDCAA\">obs_properties_create<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">obs_properties_add_color_alpha<\/span><span style=\"color: #D4D4D4\">(props, <\/span><span style=\"color: #CE9178\">&quot;color1&quot;<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #DCDCAA\">obs_module_text<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;MyLabel&quot;<\/span><span style=\"color: #D4D4D4\">));<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">UNUSED_PARAMETER<\/span><span style=\"color: #D4D4D4\">(data);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> props;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u95a2\u6570\u4e00\u3064\u3067\u4e0b\u8a18\u306e\u30ab\u30e9\u30fc\u30d1\u30ec\u30c3\u30c8\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4fbf\u5229\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"332\" src=\"https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin-1-e1713840346694.png\" alt=\"\" class=\"wp-image-991\" srcset=\"https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin-1-e1713840346694.png 334w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin-1-e1713840346694-300x298.png 300w, https:\/\/elosove.com\/wp-content\/uploads\/2024\/04\/obs-color-filter-plugin-1-e1713840346694-150x150.png 150w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/figure>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%AB%E3%83%A9%E3%83%BC%E9%81%B8%E6%8A%9E%E6%99%82%E3%81%AB%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BE%E3%82%8C%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E9%96%A2%E6%95%B0update\"><\/span>\u30ab\u30e9\u30fc\u9078\u629e\u6642\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u95a2\u6570[update]<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>obs_source_info\u306f\u6ca2\u5c71\u306e\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306fupdate\u3092\u5229\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u307e\u3067\u306b\u4e0b\u8a18\u304c\u3088\u304f\u4f7f\u308f\u308c\u308b\u66f4\u65b0\u7528\u306e\u95a2\u6570\u3067\u3059\u3002\uff08<a href=\"https:\/\/docs.obsproject.com\/reference-sources?highlight=obs_source_info#c.obs_source_info\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>create <\/em>: \u30d7\u30e9\u30b0\u30a4\u30f3\u8aad\u307f\u8fbc\u307f\u6642\u306b\u5b9f\u884c\u3002init\u95a2\u6570\u7684\u306a\u6271\u3044\u3067\u3059\u3002<\/li>\n\n\n\n<li><em>destroy <\/em>: \u30d7\u30e9\u30b0\u30a4\u30f3\u7834\u68c4\u6642\u306b\u5b9f\u884c\u3002\u7d42\u4e86\u51e6\u7406\u3092\u4e3b\u306b\u62c5\u5f53\u3002<\/li>\n\n\n\n<li><em>update <\/em>: \u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u5024\u5909\u66f4\u6642\u3002<\/li>\n\n\n\n<li><em>video_render <\/em>: \u30d3\u30c7\u30aa\u63cf\u753b\u306e\u70ba\u306b\u6bce\u30d5\u30ec\u30fc\u30e0\u547c\u3070\u308c\u308b\u3002<\/li>\n\n\n\n<li><em>video_tick <\/em>: \u6307\u5b9a\u6642\u9593\u6bce\u306b\u547c\u3070\u308c\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p>update\u95a2\u6570\u3067\u884c\u3046\u3053\u3068\u306f\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8a2d\u5b9a\u3055\u308c\u305f\u5024\u3092obs_data_get_int\u95a2\u6570\u3067unit32\u3068\u3057\u3066\u53d6\u5f97\u3057\u3066\u3001vec4(RGBA)\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"static void my_filter_update(void *data, obs_data_t *settings)\n{\n\tstruct my_context *context = data;\n\tuint32_to_rgba(&amp;context-&gt;color_rgba,\n\t\t\t\t\t(uint32_t)obs_data_get_int(settings, &quot;color1&quot;));\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">static<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">my_filter_update<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">data<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4EC9B0\">obs_data_t<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">settings<\/span><span style=\"color: #D4D4D4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> my_context *context = data;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">uint32_to_rgba<\/span><span style=\"color: #D4D4D4\">(&amp;<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">color_rgba<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t\t\t\t(<\/span><span style=\"color: #569CD6\">uint32_t<\/span><span style=\"color: #D4D4D4\">)<\/span><span style=\"color: #DCDCAA\">obs_data_get_int<\/span><span style=\"color: #D4D4D4\">(settings, <\/span><span style=\"color: #CE9178\">&quot;color1&quot;<\/span><span style=\"color: #D4D4D4\">));<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%AB%E3%83%A9%E3%83%BC%E9%81%B8%E6%8A%9E%E3%81%AE%E5%80%A4%E3%81%A8RGBA%E3%81%AE%E5%A4%89%E6%8F%9B\"><\/span>\u30ab\u30e9\u30fc\u9078\u629e\u306e\u5024\u3068RGBA\u306e\u5909\u63db<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5909\u63db\u95a2\u6570\u306euint32_to_rgba\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"void uint32_to_rgba(struct vec4 *color, uint32_t rgba) {\n    color-&gt;x = (rgba &amp; 0xff) \/ 255.0f; \/\/ R\n\tcolor-&gt;y = ((rgba &amp; 0xff00) &gt;&gt; 8) \/ 255.0f; \/\/ G\n    color-&gt;z = ((rgba &amp; 0xff0000) &gt;&gt; 16) \/ 255.0f;  \/\/ B\n\tcolor-&gt;w = ((rgba &amp; 0xff000000) &gt;&gt; 24) \/ 255.0f; \/\/ A\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">uint32_to_rgba<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> vec4 *<\/span><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #569CD6\">uint32_t<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">rgba<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">x<\/span><span style=\"color: #D4D4D4\"> = (rgba &amp; <\/span><span style=\"color: #B5CEA8\">0xff<\/span><span style=\"color: #D4D4D4\">) \/ <\/span><span style=\"color: #B5CEA8\">255.0f<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #6A9955\"> \/\/ R<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">y<\/span><span style=\"color: #D4D4D4\"> = ((rgba &amp; <\/span><span style=\"color: #B5CEA8\">0xff00<\/span><span style=\"color: #D4D4D4\">) &gt;&gt; <\/span><span style=\"color: #B5CEA8\">8<\/span><span style=\"color: #D4D4D4\">) \/ <\/span><span style=\"color: #B5CEA8\">255.0f<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #6A9955\"> \/\/ G<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">z<\/span><span style=\"color: #D4D4D4\"> = ((rgba &amp; <\/span><span style=\"color: #B5CEA8\">0xff0000<\/span><span style=\"color: #D4D4D4\">) &gt;&gt; <\/span><span style=\"color: #B5CEA8\">16<\/span><span style=\"color: #D4D4D4\">) \/ <\/span><span style=\"color: #B5CEA8\">255.0f<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #6A9955\">  \/\/ B<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">w<\/span><span style=\"color: #D4D4D4\"> = ((rgba &amp; <\/span><span style=\"color: #B5CEA8\">0xff000000<\/span><span style=\"color: #D4D4D4\">) &gt;&gt; <\/span><span style=\"color: #B5CEA8\">24<\/span><span style=\"color: #D4D4D4\">) \/ <\/span><span style=\"color: #B5CEA8\">255.0f<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #6A9955\"> \/\/ A<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5909\u63db\u95a2\u6570\u306f<a href=\"https:\/\/github.com\/kkartaltepe\/obs-text-pango\/blob\/master\/text-utilities.h\">obs-text-pango<\/a>\u3068\u3044\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%B7%E3%82%A7%E3%83%BC%E3%83%80%E3%83%BCeffect%E3%81%AE%E5%A4%89%E6%95%B0%E8%A8%AD%E5%AE%9A\"><\/span>\u30b7\u30a7\u30fc\u30c0\u30fc(.effect)\u306e\u5909\u6570\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>video_render\u95a2\u6570\u5185\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>gs_effect_get_param_by_name\u95a2\u6570\u3067effect\u30d5\u30a1\u30a4\u30eb\u5185\u306euniform float4 color\u5909\u6570\u3092\u6307\u5b9a\u3057\u3001update\u95a2\u6570\u3067\u53d6\u5f97\u3057\u305frgba\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"static void my_video_render(void *data, gs_effect_t *effect)\n{\n\tstruct my_context *context = data;\n\n\tif (!obs_source_process_filter_begin(context-&gt;source, GS_RGBA,\n\t\t\t\t\t     OBS_ALLOW_DIRECT_RENDERING))\n\t\treturn;\n\n\tgs_eparam_t *color_val =\n\t\tgs_effect_get_param_by_name(context-&gt;effect, &quot;color&quot;);\n\n\tgs_effect_set_vec4(gs_effect_get_param_by_name(context-&gt;effect, &quot;color&quot;),\n\t\t\t    &amp;context-&gt;color_rgba);\n\n\tobs_source_process_filter_end(context-&gt;source, context-&gt;effect, 0, 0);\n\n\tUNUSED_PARAMETER(effect);\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">static<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">my_video_render<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">data<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4EC9B0\">gs_effect_t<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> my_context *context = data;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (!<\/span><span style=\"color: #DCDCAA\">obs_source_process_filter_begin<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">source<\/span><span style=\"color: #D4D4D4\">, GS_RGBA,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t\t\t\t     OBS_ALLOW_DIRECT_RENDERING))<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #4EC9B0\">gs_eparam_t<\/span><span style=\"color: #D4D4D4\"> *color_val =<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #DCDCAA\">gs_effect_get_param_by_name<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">&quot;color&quot;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">gs_effect_set_vec4<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #DCDCAA\">gs_effect_get_param_by_name<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">&quot;color&quot;<\/span><span style=\"color: #D4D4D4\">),<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t\t    &amp;<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">color_rgba<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">obs_source_process_filter_end<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">source<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">UNUSED_PARAMETER<\/span><span style=\"color: #D4D4D4\">(effect);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%88%9D%E6%9C%9F%E5%8C%96%E3%83%BB%E7%B5%82%E4%BA%86%E5%87%A6%E7%90%86\"><\/span>\u521d\u671f\u5316\u30fb\u7d42\u4e86\u51e6\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6b86\u3069\u30b5\u30f3\u30d7\u30eb\u901a\u308a\u306e\u3053\u3068\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"static void my_filter_destroy(void *data)\n{\n\tstruct my_context *context = data;\n\n\tif (context) {\n\t\tobs_enter_graphics();\n\n\t\tgs_effect_destroy(context-&gt;effect);\n\t\tbfree(context);\n\n\t\tobs_leave_graphics();\n\t}\n\tobs_log(LOG_INFO, &quot;my plugin desutroy&quot;);\n}\n\nstatic void *my_filter_create(obs_data_t *settings, obs_source_t *source)\n{\n\tstruct my_context *context = bzalloc(sizeof(struct my_context));\n\n\tchar *effect_file;\n\n\tobs_enter_graphics();\n\n\teffect_file = obs_module_file(&quot;my-sample.effect&quot;);\n\n\tcontext-&gt;source = source;\n\tcontext-&gt;effect = gs_effect_create_from_file(effect_file, NULL);\n\tcontext-&gt;color_rgba = (struct vec4){0.5f, 1.0f, 0.5f, 1.0f};\n\n\tbfree(effect_file);\n\n\tif (!context-&gt;effect) {\n\t\tmy_filter_destroy(context);\n\t\tcontext = NULL;\n\t}\n\n\tobs_leave_graphics();\n\n\tUNUSED_PARAMETER(settings);\n\treturn context;\n}\n\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">static<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">my_filter_destroy<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">data<\/span><span style=\"color: #D4D4D4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> my_context *context = data;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (context) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #DCDCAA\">obs_enter_graphics<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #DCDCAA\">gs_effect_destroy<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #DCDCAA\">bfree<\/span><span style=\"color: #D4D4D4\">(context);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #DCDCAA\">obs_leave_graphics<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">obs_log<\/span><span style=\"color: #D4D4D4\">(LOG_INFO, <\/span><span style=\"color: #CE9178\">&quot;my plugin desutroy&quot;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">static<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">void<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #DCDCAA\">my_filter_create<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #4EC9B0\">obs_data_t<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">settings<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4EC9B0\">obs_source_t<\/span><span style=\"color: #D4D4D4\"> *<\/span><span style=\"color: #9CDCFE\">source<\/span><span style=\"color: #D4D4D4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> my_context *context = <\/span><span style=\"color: #DCDCAA\">bzalloc<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">sizeof<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> my_context));<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #569CD6\">char<\/span><span style=\"color: #D4D4D4\"> *effect_file;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">obs_enter_graphics<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\teffect_file = <\/span><span style=\"color: #DCDCAA\">obs_module_file<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;my-sample.effect&quot;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">source<\/span><span style=\"color: #D4D4D4\"> = source;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">gs_effect_create_from_file<\/span><span style=\"color: #D4D4D4\">(effect_file, <\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">color_rgba<\/span><span style=\"color: #D4D4D4\"> = (<\/span><span style=\"color: #569CD6\">struct<\/span><span style=\"color: #D4D4D4\"> vec4){<\/span><span style=\"color: #B5CEA8\">0.5f<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">1.0f<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0.5f<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">1.0f<\/span><span style=\"color: #D4D4D4\">};<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">bfree<\/span><span style=\"color: #D4D4D4\">(effect_file);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (!<\/span><span style=\"color: #9CDCFE\">context<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">effect<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\t<\/span><span style=\"color: #DCDCAA\">my_filter_destroy<\/span><span style=\"color: #D4D4D4\">(context);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t\tcontext = <\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">obs_leave_graphics<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #DCDCAA\">UNUSED_PARAMETER<\/span><span style=\"color: #D4D4D4\">(settings);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\t<\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> context;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"obs_enter_graphicsobs_leave_graphics%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9\"><\/span>obs_enter_graphics\/obs_leave_graphics\u306e\u4f7f\u3044\u65b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e0a\u8a18\u306ecreate\u95a2\u6570\u3001destroy\u95a2\u6570\u3067\u306fvideo_render\u95a2\u6570\u3067\u4f7f\u7528\u3057\u306a\u304b\u3063\u305f<em>obs_enter_graphics()<\/em>\/<em>obs_leave_graphics()<\/em>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>video_render\u95a2\u6570\u3068<a href=\"https:\/\/docs.obsproject.com\/reference-core#c.obs_display_add_draw_callback\"><code>obs_display_add_draw_callback()<\/code><\/a>\u3001\u00a0<a href=\"https:\/\/docs.obsproject.com\/reference-core#c.obs_add_main_render_callback\"><code>obs_add_main_render_callback()<\/code><\/a>\u5916\u3067\u30b7\u30a7\u30fc\u30c0\u30fc\u95a2\u9023\u306e\u95a2\u6570\u3084\u5909\u6570\u3092\u6271\u3046\u5834\u5408\u306f<em>obs_enter_graphics()<\/em>\/<em>obs_leave_graphics()<\/em>\u306e\u95a2\u6570\u3067\u631f\u3093\u3067\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002[<a href=\"https:\/\/docs.obsproject.com\/graphics#the-graphics-context\">https:\/\/docs.obsproject.com\/graphics#the-graphics-context<\/a>]<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ee5\u4e0a\u304cAPI\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u516c\u5f0f\u30b5\u30f3\u30d7\u30eb\u5b9f\u88c5\u306e\u88dc\u8db3\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3060\u3051\u8aad\u3093\u3067\u5b9f\u88c5\u51fa\u6765\u308b\u4eba\u3044\u308b\u3093\u3060\u308d\u3046\u304b\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OBS\u306e\u30bd\u30fc\u30b9\u6620\u50cf\u306e\u4e0a\u306b\u9078\u629e\u3057\u305f\u30ab\u30e9\u30fc\u3092\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306e\u3088\u3046\u306b\u4e57\u7b97\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002 \u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u308a\u3082\u3084\u3063\u3068\u4eca\u56de\u3067\u5b9f\u7528\u7684\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u304d\u305f&#8230; \u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u6a5f\u80fd\u3068\u3057\u3066\u306f\u30d5\u30a3\u30eb\u30bf\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30e6\u30fc\u30b6\u30fc\u304c\u9078\u3093 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":410,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18],"class_list":["post-975","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-obs_studio"],"_links":{"self":[{"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elosove.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=975"}],"version-history":[{"count":22,"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":1002,"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions\/1002"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elosove.com\/index.php?rest_route=\/wp\/v2\/media\/410"}],"wp:attachment":[{"href":"https:\/\/elosove.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elosove.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elosove.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}