Skip to content

Feature/encoder scaling formats#27

Merged
voluntas merged 12 commits intodevelopfrom
feature/encoder-scaling-formats
Jan 27, 2026
Merged

Feature/encoder scaling formats#27
voluntas merged 12 commits intodevelopfrom
feature/encoder-scaling-formats

Conversation

@voluntas
Copy link
Member

No description provided.

- pytest.mark.parametrize を使用してテストをリファクタリング
- I420, I422, I444, NV12, RGBA, BGRA, RGB, BGR の全フォーマットをテスト
- テスト数: 8 → 64 (8 フォーマット × 8 テスト関数)
- 対応ピクセルフォーマット一覧を追加
- Apple Video Toolbox の制限を明記 (I420, NV12, BGRA のみ直接対応)
- libyuv による変換処理の説明を更新
- video_scaler.h/cpp を追加
  - scale_to_i420(): AOM/VPX エンコーダ向け
  - scale_to_nv12(): NVENC/Intel VPL エンコーダ向け
- 各エンコーダから重複コードを削除してヘルパーを使用
- 対応フォーマット: I420, I422, I444, NV12, RGBA, BGRA, RGB, BGR
- scale_to_i420: I420 の場合に result.buffer.resize() を呼ばないように修正
- scale_to_i420: 到達不能なコードパス (needs_scaling == false) を削除
- scale_to_nv12: 到達不能なコードパス (needs_scaling == false) を削除
8 つの関数を 3 つに統合:
- test_encode_with_scaling (AV1, VP8, VP9)
- test_encode_scaling_same_resolution (AV1, VP8, VP9)
- test_encode_scaling_multiple_frames (AV1, VP9)
4 つの個別テストを 2 つのパラメタライズされたテストに統合:
- test_encode_with_scaling (H264, HEVC × I420, NV12, BGRA)
- test_encode_scaling_same_resolution (H264, HEVC × I420, NV12)
@voluntas voluntas merged commit 516d89e into develop Jan 27, 2026
68 checks passed
@voluntas voluntas deleted the feature/encoder-scaling-formats branch January 27, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant