tagtreeencoder.cpp
来自「这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数」· C++ 代码 · 共 59 行
CPP
59 行
/* //////////////////////////////////////////////////////////////////////////// INTEL CORPORATION PROPRIETARY INFORMATION// This software is supplied under the terms of a license agreement or// nondisclosure agreement with Intel Corporation and may not be copied// or disclosed except in accordance with the terms of that agreement.// Copyright(c) 2002-2005 Intel Corporation. All Rights Reserved.//////*//*// TagTreeEncoder implements tag tree coding system defined// in B.10.2 article of standard. It is used for packed header writing.//////*/#include "tagtreeencoder.h"TagTreeEncoder::TagTreeEncoder(): TagTree(){}TagTreeEncoder::TagTreeEncoder(const TagTreeEncoder& tt){ Init(RectSize(tt.m_width, tt.m_height)); for(unsigned int i = 0; i < m_nodes.Size(); i++) m_nodes[i].CopyContent(tt.m_nodes[i]);}TagTreeEncoder& TagTreeEncoder::operator=(const TagTreeEncoder& tt){ if(&tt != this) { Init(RectSize(tt.m_width, tt.m_height)); for(unsigned int i = 0; i < m_nodes.Size(); i++) m_nodes[i].CopyContent(tt.m_nodes[i]); } return *this;}void TagTreeEncoder::SetValue(unsigned int n, int value) const{ Node *node = &m_nodes[n]; while (node && node->m_value > value) { node->m_value = value; node = node->m_parent; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?