📄 decqtbl.cpp
字号:
/*//// 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) 2001-2005 Intel Corporation. All Rights Reserved.//*/#include "precomp.h"#ifndef __DECQTBL_H__#include "decqtbl.h"#endifCJPEGDecoderQuantTable::CJPEGDecoderQuantTable(void){ m_id = 0; m_precision = 0; m_initialized = 0; m_raw = (Ipp8u*)OWN_ALIGN_PTR(m_rbf,CPU_CACHE_LINE); m_qnt = (Ipp16u*)OWN_ALIGN_PTR(m_qbf,CPU_CACHE_LINE); // align for max performance ippsZero_8u(m_raw,sizeof(m_raw)); ippsZero_8u((Ipp8u*)m_qnt,sizeof(m_qnt)); return;} // ctorCJPEGDecoderQuantTable::~CJPEGDecoderQuantTable(void){ m_initialized = 0; ippsZero_8u(m_raw,sizeof(m_raw)); ippsZero_8u((Ipp8u*)m_qnt,sizeof(m_qnt)); return;} // dtorJERRCODE CJPEGDecoderQuantTable::Init(int id,Ipp8u raw[64]){ IppStatus status; m_id = id & 0x0f; m_precision = 0; // 8-bit hardcoded ippsCopy_8u(raw,m_raw,DCTSIZE2); status = ippiQuantInvTableInit_JPEG_8u16u(m_raw,m_qnt); if(ippStsNoErr != status) { LOG1("IPP Error: ippiQuantInvTableInit_JPEG_8u16u() failed - ",status); return JPEG_INTERNAL_ERROR; } m_initialized = 1; return JPEG_OK;} // CJPEGDecoderQuantTable::Init()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -