00001 #ifndef _xv_dvframe_h 00002 #define _xv_dvframe_h 00003 /* 00004 * frame.h -- utilities for process digital video frames 00005 * Copyright (C) 2000 Arne Schirmacher <arne@schirmacher.de> 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software Foundation, 00019 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 */ 00021 00022 class DVFrame 00023 { 00024 00025 class Pack 00026 { 00027 public: 00028 unsigned char data[5]; 00029 }; 00030 public: 00031 unsigned char *data; 00032 int bytesInDVFrame; 00033 00034 DVFrame(); 00035 ~DVFrame(); 00036 00037 void GetSSYBPack(int packNum, Pack &pack); 00038 void GetVAUXPack(int packNum, Pack &pack); 00039 void GetAAUXPack(int packNum, Pack &pack); 00040 void GetTimeCode(char *s); 00041 void GetRecordingDate(char *s); 00042 bool IsPAL(void) {return (data[3] & 0x80)!=0;}; 00043 bool is61834(void) {return (data[3] & 0x1)!=0;}; 00044 bool IsNewRecording(void); 00045 bool IsComplete(void); 00046 }; 00047 #endif