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

📄 drm_bits.h

📁 SAMSUNG 5009的源代码
💻 H
字号:
/*
// $Header: /Mux_Demux_SDK/libDrmDecrypt/src/Bits.h 6     10/15/03 1:57p Wiley $
// Copyright (c) DivXNetworks, Inc. http://www.divxnetworks.com
// All rights reserved.
//
// This software is the confidential and proprietary information of DivxNetworks
// Inc. ("Confidential Information").  You shall not disclose such Confidential
// Information and shall use it only in accordance with the terms of the license
// agreement you entered into with DivXNetworks, Inc.
*/

/*
These functions help with bit manipulation and conversions of data.
*/

#ifndef BITS_H_INCLUDE
#define BITS_H_INCLUDE


#define A_BECOMES_B 1
#define B_BECOMES_A 2

#ifdef __cplusplus
extern "C" {
#endif

USHORT pack(UCHAR low, UCHAR hi);
void unpack(USHORT whole, UCHAR *hi, UCHAR *low);
void assign(UCHAR *a, UCHAR *b, UCHAR direction);
UCHAR getByteLoopSizeFromBits(UCHAR sizeInBits);

void quarterByteSwap(UCHAR *a, UCHAR *b, UCHAR position);
void halfByteSwap(UCHAR *a, UCHAR *b, UCHAR position);
void maskSwap(UCHAR *a, UCHAR *b, UCHAR mask);

#ifdef __cplusplus
};
#endif

#endif //BITS_H_INCLUDE

⌨️ 快捷键说明

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