colorcomp.cpp
Go to the documentation of this file.
00001 /*
00002 //
00003 //               INTEL CORPORATION PROPRIETARY INFORMATION
00004 //  This software is supplied under the terms of a license agreement or
00005 //  nondisclosure agreement with Intel Corporation and may not be copied
00006 //  or disclosed except in accordance with the terms of that agreement.
00007 //    Copyright (c) 2001-2004 Intel Corporation. All Rights Reserved.
00008 //
00009 //  Intel® Integrated Performance Primitives JPEG Viewer Sample for Windows*
00010 //
00011 //  By downloading and installing this sample, you hereby agree that the
00012 //  accompanying Materials are being provided to you under the terms and
00013 //  conditions of the End User License Agreement for the Intel® Integrated
00014 //  Performance Primitives product previously accepted by you. Please refer
00015 //  to the file ipplic.htm located in the root directory of your Intel® IPP product
00016 //  installation for more information.
00017 //
00018 //  JPEG is an international standard promoted by ISO/IEC and other organizations.
00019 //  Implementations of these standards, or the standard enabled platforms may
00020 //  require licenses from various entities, including Intel Corporation.
00021 //
00022 //
00023 */
00024 
00025 #include "precomp.h"
00026 
00027 #ifndef __COLORCOMP_H__
00028 #include "colorcomp.h"
00029 #endif
00030 
00031 
00032 CJPEGColorComponent::CJPEGColorComponent(void)
00033 {
00034   m_id          = 0;
00035   m_comp_no     = 0;
00036   m_hsampling   = 0;
00037   m_vsampling   = 0;
00038   m_h_factor    = 0;
00039   m_v_factor    = 0;
00040   m_nblocks     = 0;
00041   m_q_selector  = 0;
00042   m_dc_selector = 0;
00043   m_ac_selector = 0;
00044   m_cc_buffer   = 0;
00045   m_ss_buffer   = 0;
00046   m_top_row     = 0;
00047   m_bottom_row  = 0;
00048   m_lastDC      = 0;
00049   m_ac_scan_completed = 0;
00050   return;
00051 } // ctor
00052 
00053 
00054 CJPEGColorComponent::~CJPEGColorComponent(void)
00055 {
00056   if(0 != m_cc_buffer)
00057   {
00058     ippFree(m_cc_buffer);
00059     m_cc_buffer = 0;
00060   }
00061 
00062   if(0 != m_ss_buffer)
00063   {
00064     ippFree(m_ss_buffer);
00065     m_ss_buffer = 0;
00066   }
00067 
00068   if(0 != m_top_row)
00069   {
00070     ippFree(m_top_row);
00071     m_top_row = 0;
00072   }
00073 
00074   if(0 != m_bottom_row)
00075   {
00076     ippFree(m_bottom_row);
00077     m_bottom_row = 0;
00078   }
00079 
00080   return;
00081 } // dtor;
00082 


canon_vbc50i
Author(s): Cedric Pradalier
autogenerated on Mon Jan 6 2014 11:18:27