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

📄 enchtbl.h

📁 audio-video-codecs.rar语音编解码器
💻 H
字号:
/*
//
//               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-2007 Intel Corporation. All Rights Reserved.
//
*/

#ifndef __ENCHTBL_H__
#define __ENCHTBL_H__

#ifndef __IPPJ_H__
#include "ippj.h"
#endif
#ifndef __JPEGBASE_H__
#include "jpegbase.h"
#endif




class CJPEGEncoderHuffmanTable
{
private:
  IppiEncodeHuffmanSpec* m_table;

public:
  int                    m_id;
  int                    m_hclass;
  Ipp8u                  m_bits[16];
  Ipp8u                  m_vals[256];

  CJPEGEncoderHuffmanTable(void);
  virtual ~CJPEGEncoderHuffmanTable(void);

  JERRCODE Create(void);
  JERRCODE Destroy(void);
  JERRCODE Init(int id,int hclass,Ipp8u* bits,Ipp8u* vals);

  operator IppiEncodeHuffmanSpec*(void) { return m_table; }
};


class CJPEGEncoderHuffmanState
{
private:
  IppiEncodeHuffmanState* m_state;

public:
  CJPEGEncoderHuffmanState(void);
  virtual ~CJPEGEncoderHuffmanState(void);

  JERRCODE Create(void);
  JERRCODE Destroy(void);
  JERRCODE Init(void);

  operator IppiEncodeHuffmanState*(void) { return m_state; }
};


#endif // __ENCHTBL_H__


⌨️ 快捷键说明

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