videobuffer.h

来自「从 IEEE 1394总线接收传输流」· C头文件 代码 · 共 56 行

H
56
字号
/* * 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 */#ifndef VIDEOBUFFER_H#define VIDEOBUFFER_H#include <semaphore.h>#define VIDEOBUFFER_ENTRY_SIZE 30000#define VIDEOPESPACKETSINBUFFER 300#define VIDEOBUFFER_FLAGS_CLEARSCREEN 1 /* this flag tells the video system to clear the screen after processing this buffer */struct videobuffer_entry {	int havedts;	unsigned long long dts;	int continuation; /* is this a new PES packet or the continuation of the previous one */	int flags; /* currently only used for clearscreen */	unsigned char buffer[VIDEOBUFFER_ENTRY_SIZE];	unsigned long length;};extern struct videobuffer_entry videobuffer[VIDEOPESPACKETSINBUFFER];extern volatile int videobufferstart; /* points to the entry which the consumer currently consumes */extern volatile int videobufferend;   /* points to the entry which the producer currently fills */extern sem_t videobuffer_sem;int video_system_init();int video_system_done();void print_vo_drivers();void set_vo_driver(const char* driver_name);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?