+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
main
| 1 | /* Simple Plugin API */ |
| 2 | /* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */ |
| 3 | /* SPDX-License-Identifier: MIT */ |
| 4 | |
| 5 | #ifndef SPA_VIDEO_H264_H |
| 6 | #define SPA_VIDEO_H264_H |
| 7 | |
| 8 | #include <spa/param/format.h> |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /** |
| 15 | * \addtogroup spa_param |
| 16 | * \{ |
| 17 | */ |
| 18 | |
| 19 | enum spa_h264_stream_format { |
| 20 | SPA_H264_STREAM_FORMAT_UNKNOWN = 0, |
| 21 | SPA_H264_STREAM_FORMAT_AVC, |
| 22 | SPA_H264_STREAM_FORMAT_AVC3, |
| 23 | SPA_H264_STREAM_FORMAT_BYTESTREAM |
| 24 | }; |
| 25 | |
| 26 | enum spa_h264_alignment { |
| 27 | SPA_H264_ALIGNMENT_UNKNOWN = 0, |
| 28 | SPA_H264_ALIGNMENT_AU, |
| 29 | SPA_H264_ALIGNMENT_NAL |
| 30 | }; |
| 31 | |
| 32 | struct spa_video_info_h264 { |
| 33 | struct spa_rectangle size; |
| 34 | struct spa_fraction framerate; |
| 35 | struct spa_fraction max_framerate; |
| 36 | enum spa_h264_stream_format stream_format; |
| 37 | enum spa_h264_alignment alignment; |
| 38 | }; |
| 39 | |
| 40 | /** |
| 41 | * \} |
| 42 | */ |
| 43 | |
| 44 | #ifdef __cplusplus |
| 45 | } /* extern "C" */ |
| 46 | #endif |
| 47 | |
| 48 | #endif /* SPA_VIDEO_H264_H */ |