H265 のサンプルエントリーを実際のストリームの内容から生成するようにする - #291
Merged
sile merged 24 commits intoJun 24, 2026
Merged
Conversation
- H.265 SPS パーサと共有するため codec 中立名の BitReader にする - エラーメッセージから H.264 固有の語彙を外し bit reader プレフィックスに統一する - skip_scaling_list 等の H.264 固有ロジックは h264.rs に残す
- H.264 経路の H264AnnexBNalUnits と対称の汎用イテレーターを新設する - nal_unit_type は NAL ヘッダ第 1 バイトの bit 1-6 から抽出する - forbidden_zero_bit が立つ NAL は早期に Err として弾く
- profile_tier_level / chroma / bit_depth / 解像度を SPS から抽出する内部関数 - chroma_format_idc / bit_depth / sps_max_sub_layers_minus1 / profile_idc の Err 化を初日から組み込む - HevcSpsBuilder で合成 SPS を組み立てて全 Err 経路を網羅したテストを追加する
…_string テストを追従する - 新ヘルパーで hvcC 各フィールドを SPS / VPS 由来実値で埋める - video_toolbox H.265 経路に空 VPS / SPS / PPS の skip ガードを追加する - nvcodec H.265 と codec_string テストフィクスチャを新シグネチャに追従する
- 全呼び出し側が h265_sample_entry_from_vps_sps_pps_lists に切り替わったため不要 - types::EvenUsize の use を削除する - HevcSpsParams docstring の追加予定表記を整理する
- 空 list Err と各 list の全要素 NAL タイプ検査 Err を担保する - Main / Main 10 で hvcC フィールドが SPS 由来実値で埋まることを assert する - conformance window 適用後の VideoFrameSize と Annex-B 経由の薄ラッパーも検証する
- emulation prevention byte 込みの実機 SPS を parse_hevc_sps に通す結合テストを追加する - 1920x1080 は raw 1920x1088 + conformance window 適用後の解像度を担保する - HvccBox の hvcC フィールドが実機 SPS 由来実値で埋まる経路も検証する
- 共通ヘルパー find_next_annexb_start_code を h264.rs に追加して H.265 経路と共有する - windows(4) ベースだと末尾 3 バイト [0, 0, 1] が検出できず現在 NAL に混入していた - ストリーミング経路のバッファ境界で発生し得る回帰を防ぐテストを追加する
…265-sample-entry-from-vps-sps-pps-lists
… SPS / PPS リスト受け取り版にリファクタして hvcC フィールドの固定値と Annex-B 走査の独自実装を解消する
…265-sample-entry-from-vps-sps-pps-lists
sile
deleted the
feature/refactor-h265-sample-entry-from-vps-sps-pps-lists
branch
June 24, 2026 05:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.