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

📄 diskinfo.h

📁 这是DVD中伺服部分的核心代码
💻 H
字号:
/*****************************************************************************
******************************************************************************
**                                                                          **
**  Copyright (c) 2002 Videon Central, Inc.                                 **
**  All rights reserved.                                                    **
**                                                                          **
**  The computer program contained herein contains proprietary information  **
**  which is the property of Videon Central, Inc.  The program may be used  **
**  and/or copied only with the written permission of Videon Central, Inc.  **
**  or in accordance with the terms and conditions stipulated in the        **
**  agreement/contract under which the programs have been supplied.         **
**                                                                          **
******************************************************************************
*****************************************************************************/
/**
 * @file diskinfo.h
 *
 * Defines the cDiskInfo class used to examine the disk media for valid disk
 * formats. The main function is getSupportedMediaFormats, which processes the
 * disk to determine which media formats are available.
 *
 * $Id: diskinfo.h,v 1.12 2006/06/16 20:40:23 ccoble Exp $
 */

#ifndef DISKINFO_H
#define DISKINFO_H

#ifdef DMALLOC
#include "dmalloc.h"
#endif

class cDiskInfo
{
public:
    cDiskInfo();
    ~cDiskInfo();

    /* override new operator to use OS_MemAlloc */
    void * operator new( size_t size )
    {
        return (PVOID) OS_MemAlloc( size );
    }

    /* override delete operator to use OS_MemFree */
    void operator delete( void * pvPM )
    {
        OS_MemFree(pvPM);
    }

    void readDiskInfo(LOADER_HANDLE tLoader);
    VDVD_MEDIA_FORMAT getSupportedMediaFormats(void);

private:
    LOADER_TYPE           m_LoaderType;
    VDVD_MEDIA_FORMAT     m_AvailableMediaFormats;

    BOOLEAN cDiskInfo::IsHDDVD(LOADER_HANDLE tLoader, BOOLEAN &fAdvancedContent);
    BOOLEAN cDiskInfo::IsBDROM(LOADER_HANDLE tLoader);
    BOOLEAN cDiskInfo::IsDVD_A(LOADER_HANDLE tLoader);
    BOOLEAN cDiskInfo::IsDVD_V(LOADER_HANDLE tLoader);
    BOOLEAN cDiskInfo::IsCDDA(BYTE bDiskType, BYTE bControl);
    BOOLEAN cDiskInfo::IsMP3(LOADER_HANDLE tLoader, BYTE bDiskType, BYTE bControl);
    BOOLEAN cDiskInfo::IsVCD(LOADER_HANDLE tLoader, BYTE bDiskType);
    BOOLEAN cDiskInfo::IsSVCD(LOADER_HANDLE tLoader, BYTE bDiskType);
    BOOLEAN cDiskInfo::IsVR(LOADER_HANDLE tLoader);
};


#endif

⌨️ 快捷键说明

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