diff options
| author | cirakg <cirakg@cirakg.xyz> | 2026-11-03 01:20:05 +0100 |
|---|---|---|
| committer | cirakg <cirakg@cirakg.xyz> | 2026-11-03 01:20:05 +0100 |
| commit | e9211374ad3728cad12e6520dbaa8f90c3cce280 (patch) | |
| tree | ff6fd65114cd4e1f1abf6e1e589d1b657e1f878b /src/video_core/host1x/nx2_video_decoder.h | |
| parent | b3244c282332506d904c866b76945ce9872329b2 (diff) | |
| parent | ebec180bf1125b4f29b068922d1220c8af9b63b0 (diff) | |
Merge upstream Djihads80/Eglantine nx2 into nx2
Diffstat (limited to 'src/video_core/host1x/nx2_video_decoder.h')
| -rw-r--r-- | src/video_core/host1x/nx2_video_decoder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/host1x/nx2_video_decoder.h b/src/video_core/host1x/nx2_video_decoder.h index c979a2c801..347b0e6525 100644 --- a/src/video_core/host1x/nx2_video_decoder.h +++ b/src/video_core/host1x/nx2_video_decoder.h @@ -32,6 +32,9 @@ enum class Nx2PictureFormat : u32 { Bgra8, }; +/// Checks if stream data begins with an H.264 Annex-B start code or avcC/MP4 length-prefixed NALUs. +bool IsH264Stream(std::span<const u8> data); + /// The decoder behind the Switch 2 video decoder service (nn::codec::video): FFmpeg decodes the /// elementary stream the game demuxed, in software or on the host GPU (NVDEC emulation setting). /// Used from one thread at a time. |
