AN75779のサンプルデザインのデータフォーマットについて

Tip / ログイン to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TeMa_2997106
Level 6
Level 6
Distributor - TED (Japan)
10 likes received 10 solutions authored 250 replies posted

AN75779ではビデオデータフォーマットとしてYUVを使用しているかと思います。

これは、Y0、U0、Y1、V0と来ることを前提としている、とAN75779上では記載がありました。

現在のセンサから、YUVのデータがU0、Y0、V0、Y1と来ており、これにより最終出力画像が狂ってしまっています。

このように来るデータを内部でUYVY→YUYVのようにスワップする方法はありませんでしょうか。

0 件の賞賛
1 解決策
HirotakaT_91
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

UYVYシーケンスでデータがFX3に送られて来ている場合、VS format descriptorを適切に変更することで対処可能です。

初期状態では、以下のようにGUIDが設定されており、YUYVシーケンスを想定しています。

0x59,0x55,0x59,0x32,            /* GUID used to identify streaming-encoding format: YUY2  */

UVYVシーケンスでは、以下のように設定してください。

0x55, 0x59, 0x56, 0x59, /* GUID used to identify streaming-encoding format: UYVY*/

FYI: GUIDの情報はMicrosoftのページにございます。

Media Type Identifiers - Windows applications | Microsoft Docs

よろしくお願い致します。

Hirotaka Takayama

元の投稿で解決策を見る

3 返答(返信)
HirotakaT_91
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

UYVYシーケンスでデータがFX3に送られて来ている場合、VS format descriptorを適切に変更することで対処可能です。

初期状態では、以下のようにGUIDが設定されており、YUYVシーケンスを想定しています。

0x59,0x55,0x59,0x32,            /* GUID used to identify streaming-encoding format: YUY2  */

UVYVシーケンスでは、以下のように設定してください。

0x55, 0x59, 0x56, 0x59, /* GUID used to identify streaming-encoding format: UYVY*/

FYI: GUIDの情報はMicrosoftのページにございます。

Media Type Identifiers - Windows applications | Microsoft Docs

よろしくお願い致します。

Hirotaka Takayama

TeMa_2997106
Level 6
Level 6
Distributor - TED (Japan)
10 likes received 10 solutions authored 250 replies posted

ありがとうございます。試してみます。

0 件の賞賛
TeMa_2997106
Level 6
Level 6
Distributor - TED (Japan)
10 likes received 10 solutions authored 250 replies posted

ご指摘いただいた当該箇所を変更したところ、フォーマットも変更されたことが確認できました。

ご対応ありがとうございました。

0 件の賞賛