📄 mpeg2demux.h
字号:
/* * MPEG2-TS over IEEE 1394 decoder - receive and decode MPEG-2 transport * streams according to IEC 61883-4 * * Copyright (C) 2000-2007, Manfred Weihs <mweihs@users.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* MPEG 2 transport stream demultiplexer many ideas and some code taken from Alex Theo de Jong (NIST, February 1996)*/#ifndef __mpeg2demux_h#define __mpeg2demux_h#include <stdio.h>int mpeg2demux_init();void mpeg2demux_done();/***************************************************** * these both functions set or get the pids used for * * - the video decoder (videopid) * * - the audio decoder (audiopid) * * - synchronisation (pcrpid) * * * * the values have the following meaning: * * 0x0000 - 0x1FFF ... the desired pid * * -1 ........... disabled * * -2 ........... auto select (for video/audio) * *****************************************************/void set_pids(int videopid, int audiopid, int pcrpid);void get_pids(int *videopid, int *audiopid, int *pcrpid);int select_program(int program_number);int select_any_program();int select_first_program();int get_videobuffer_size();int get_videobuffer_state();int get_audiobuffer_size();int get_audiobuffer_state();void printPAT(FILE* ostream);void printPMT(FILE* ostream);void printPidTable(FILE* ostream);int getProgramNumbers(int *number_array); /* returns an array containing the program numbers of PMT */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -