📄 formatdata.h
字号:
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* This software is provided "AS IS" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of noninfringement, merchantability and/or
* fitness for a particular purpose.
* ---------------------------------------------------------------
*
* Copyright (c) 2008 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
#ifndef _FORMATDATA_H
#define _FORMATDATA_H
extern "C"
{
#include <wdm.h>
}
#include <windef.h>
#include <ks.h>
#include <ksmedia.h>
class FormatData
{
public:
FormatData();
FormatData( const KS_VIDEOINFOHEADER *p_info );
FormatData( const KS_VBIINFOHEADER *p_info );
INT imageHeight() const { return _image_height; }
INT imageWidth() const { return _image_width; }
INT strideInBytes() const { return _stride_in_bytes; }
INT bitCount() const { return _bit_count; }
DWORD compression() const { return _compression; }
private:
INT _image_height;
INT _image_width;
INT _stride_in_bytes;
INT _bit_count;
DWORD _compression;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -