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

📄 bits.h

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 H
字号:
/*
// $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_Clips/AviDrm/libDrmDecrypt/Bits.h 2     2/15/04 7:41p Lotan $
// 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

#include "Config.h"		// Global Configuration - do not remove!

#ifdef AVI_DRM_SUPPORT

#include "Playcore\Nav_Clips\AviDrm\LibDrmCommon\portable.h" /* uint8_t, uint16_t */

#define A_BECOMES_B 1
#define B_BECOMES_A 2

#ifdef __cplusplus
extern "C" {
#endif

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

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

#ifdef __cplusplus
};
#endif

#endif // AVI_DRM_SUPPORT

#endif BITS_H_INCLUDE

⌨️ 快捷键说明

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