⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 avi_guid.c

📁 这个库实现了录象功能
💻 C
字号:
/******************************************************************************* avi_guid.c libquicktime - A library for reading and writing quicktime/avi/mp4 files. http://libquicktime.sourceforge.net Copyright (C) 2002 Heroine Virtual Ltd. Copyright (C) 2002-2007 Members of the libquicktime project. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA*******************************************************************************/ #include "lqt_private.h"#include <string.h>void quicktime_GUID_dump(quicktime_GUID_t * g)  {  lqt_dump("%08x-%04x-%04x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x\n",         g->v1, g->v2, g->v3, g->v4[0], g->v4[1], g->v4[2], g->v4[3],         g->v4[4], g->v4[5], g->v4[6], g->v4[7]);  }int  quicktime_GUID_equal(const quicktime_GUID_t * g1, const quicktime_GUID_t * g2)  {  return (g1->v1 == g2->v1) &&    (g1->v2 == g2->v2) &&    (g1->v3 == g2->v3) &&    !memcmp(g1->v4, g2->v4, 8);  }void quicktime_GUID_read(quicktime_t * file, quicktime_GUID_t * guid)  {  guid->v1 = quicktime_read_int32_le(file);  guid->v2 = quicktime_read_int16_le(file);  guid->v3 = quicktime_read_int16_le(file);  quicktime_read_data(file, guid->v4, 8);  }void quicktime_GUID_write(quicktime_t * file, quicktime_GUID_t * guid)  {  quicktime_write_int32_le(file, guid->v1);  quicktime_write_int16_le(file, guid->v2);  quicktime_write_int16_le(file, guid->v3);  quicktime_write_data(file, guid->v4, 8);    }

⌨️ 快捷键说明

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