libbluray | branch: master | hpi1 <[email protected]> | Mon Aug 18 15:45:14 2014 +0300| [1e811aca176431fd885c8d67def1cc43a92ed74a] | committer: hpi1
add missing hdmv_pids.h > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1e811aca176431fd885c8d67def1cc43a92ed74a --- src/libbluray/decoders/hdmv_pids.h | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/libbluray/decoders/hdmv_pids.h b/src/libbluray/decoders/hdmv_pids.h new file mode 100644 index 0000000..ac5bc6a --- /dev/null +++ b/src/libbluray/decoders/hdmv_pids.h @@ -0,0 +1,65 @@ +/* + * This file is part of libbluray + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * <http://www.gnu.org/licenses/>. + */ + +#if !defined(_HDMV_PIDS_H_) +#define _HDMV_PIDS_H_ + +/* + * HDMV transport stream PIDs + */ + +#define HDMV_PID_PAT 0 +#define HDMV_PID_PMT 0x0100 +#define HDMV_PID_PCR 0x1001 + +/* primary streams */ + +#define HDMV_PID_VIDEO 0x1011 +#define HDMV_PID_VIDEO_SS 0x1012 + +#define HDMV_PID_AUDIO_FIRST 0x1100 +#define HDMV_PID_AUDIO_LAST 0x111f + +/* graphics streams */ + +#define HDMV_PID_PG_FIRST 0x1200 +#define HDMV_PID_PG_LAST 0x121f + +#define HDMV_PID_IG_FIRST 0x1400 +#define HDMV_PID_IG_LAST 0x141f + +#define HDMV_PID_TEXTST 0x1800 + +/* secondary streams */ + +#define HDMV_PID_SEC_AUDIO_FIRST 0x1a00 +#define HDMV_PID_SEC_AUDIO_LAST 0x1a1f + +#define HDMV_PID_SEC_VIDEO_FIRST 0x1b00 +#define HDMV_PID_SEC_VIDEO_LAST 0x1b1f + +/* + * + */ + +#define IS_HDMV_PID_PG(pid) ((pid) >= HDMV_PID_PG_FIRST && (pid) <= HDMV_PID_PG_LAST) +#define IS_HDMV_PID_IG(pid) ((pid) >= HDMV_PID_IG_FIRST && (pid) <= HDMV_PID_IG_LAST) +#define IS_HDMV_PID_TEXTST(pid) ((pid) == HDMV_PID_TEXTST) + + +#endif // _HDMV_PIDS_H_ _______________________________________________ libbluray-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libbluray-devel
