Skip to content

Commit 257c0e4

Browse files
authored
Merge pull request #35 from leiteszeke/up/09-bridge-cleanup
fix: drop remaining feature_flags/rotation leftovers
2 parents 7e3ee89 + ac2ece2 commit 257c0e4

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎data/locale/ja-JP.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ crop_left="クロップ — 左(px)"
2121
crop_top="クロップ — 上(px)"
2222
crop_right="クロップ — 右(px)"
2323
crop_bottom="クロップ — 下(px)"
24-
preview_input="検出器入力のプレビュー(検出結果の代わりにクロップ/回転されたフレームを表示)"
24+
preview_input="検出器入力のプレビュー(検出結果の代わりにクロップされたフレームを表示)"
2525
preview="プレビュー処理中 "
2626
feature_debug="デバッグログを有効にする(詳細なバックエンド+キャプチャログ)"
2727
player_1="プレイヤー 1"

‎readmes/README_fr.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Une fois le plugin installé et les poids du modèle téléchargés, vous pouvez
224224
- **Activer le recadrage de l'entrée du détecteur** — ajoute des champs **Rogner (Gauche/Haut/Droite/Bas, px)** à la source,
225225
pour cibler la zone où les cartes sont posées.
226226
- Lorsque qu'elle est activée, l'option **Aperçu de l'entrée du détecteur** apparait:
227-
activez-la pour que la source affiche l'image recadrée/pivotée qu'elle envoie au détecteur (afin de
227+
activez-la pour que la source affiche l'image recadrée qu'elle envoie au détecteur (afin de
228228
régler le recadrage directement dans l'aperçu de la source), puis désactivez-le pour revenir à
229229
l'affichage des cartes détectées.
230230
- **Enable debug logging** (désactivé par défaut) : affiche des diagnostics détaillés — le journal du dock

‎readmes/README_jp.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ OSに応じた手順に従ってセットアップしてください。
138138
* **Advanced features**(デフォルトでオフ):ライブ出力には影響せず、検出器が見る映像のみに作用する2つのオプション設定です。ここで有効にし、`Draw Display` ソースで値を設定してください:
139139
* **Enable two players** — **Player 2** のデッキリストセットを追加し、**プレイヤーごとに独立したディテクター**を実行するため、2人のプレイヤーを同時に処理できます。通常の1人プレイ構成の場合はオフのままにしてください。
140140
* **Enable detector input crop** — カードが置かれる領域に検出を絞り込むため、ソースに **Crop (Left/Top/Right/Bottom, px)** フィールドを追加します。
141-
* この機能を有効にすると、ソースに「**プレビュー検出器入力**」のトグルも追加されます。オンにすると、ソースから検出器に送信されるトリミングおよび回転処理済みのフレームが表示されます(トリミングはソースのプレビュー画面で直接調整可能です)。オフにすると、検出されたカードの表示に戻ります。
141+
* この機能を有効にすると、ソースに「**プレビュー検出器入力**」のトグルも追加されます。オンにすると、ソースから検出器に送信されるトリミング済みのフレームが表示されます(トリミングはソースのプレビュー画面で直接調整可能です)。オフにすると、検出されたカードの表示に戻ります。
142142
* **Enable debug logging**(デフォルトでオフ):詳細な診断情報を表示します — ドックのログにはバックエンドの
143143
起動詳細(解決済みデッキパス、チャンネル、閾値)とバックエンドの全ログ行がフィルタなしで表示され、
144144
OBSログにはキャプチャの詳細(入力ソース、サイズ、クロップ)が記録されます。

‎src/bridge.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Optional, opt-in plugin features. See feature_flags.h.
2+
// Bridge between the C source code (draw.c) and the C++ dock. See bridge.h.
33
//
44

55
#include "bridge.h"

‎src/bridge.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// state to both the C source code (draw.c) and the C++ code.
88
//
99

10-
#ifndef DRAW_FEATURE_FLAGS_H
11-
#define DRAW_FEATURE_FLAGS_H
10+
#ifndef DRAW_BRIDGE_H
11+
#define DRAW_BRIDGE_H
1212

1313
#pragma once
1414
#include <stdbool.h>
@@ -33,4 +33,4 @@ void draw_dock_set_button_enabled(bool enable);
3333
}
3434
#endif
3535

36-
#endif // DRAW_FEATURE_FLAGS_H
36+
#endif // DRAW_BRIDGE_H

‎src/draw.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void draw_source_video_render(void *data, gs_effect_t *effect)
176176

177177
obs_source_release(source);
178178

179-
// Tuning aid: render the cropped/rotated input this source feeds the
179+
// Tuning aid: render the cropped input this source feeds the
180180
// detector (instead of the detected-card overlay), so the crop can be
181181
// dialed in from this source's own preview. Detection still runs above.
182182
if (context->preview_input) {
@@ -301,8 +301,8 @@ obs_properties_t *draw_source_get_properties(void *data)
301301
obs_properties_add_int(props, "crop_bottom", obs_module_text("crop_bottom"), 0, 4320, 1);
302302
}
303303

304-
// Tuning aid: preview the cropped/rotated input in this source. Shown only
305-
// when crop or rotation is enabled (it's pointless otherwise).
304+
// Tuning aid: preview the cropped input in this source. Shown only
305+
// when crop is enabled (it's pointless otherwise).
306306
if (draw_feature_enabled(FEATURE_CROP))
307307
obs_properties_add_bool(props, "preview_input", obs_module_text("preview_input"));
308308

‎src/draw.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct draw_source_data {
2424
uint32_t crop_right;
2525
uint32_t crop_bottom;
2626

27-
// Tuning aid: when true, this source renders the cropped/rotated input it
27+
// Tuning aid: when true, this source renders the cropped input it
2828
// feeds the detector (instead of the detected-card overlay), so the crop
2929
// can be dialed in from the source's own preview. Detection keeps running.
3030
bool preview_input;

0 commit comments

Comments
 (0)