viterbi_mp.h
来自「signal-processing.rar信号处理demo原码」· C头文件 代码 · 共 109 行
H
109 行
/*
//
// 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) 2006 Intel Corporation. All Rights Reserved.
//
*/
/*
// -------------------------------------------------------------------------
// This file contains V.34 subset labels (FIGURE 9/V.34)
// and convolutional encoder inputs (TABLE 13/V.34)
// -------------------------------------------------------------------------
*/
static const Ipp8u subsetLabel[36][36] =
{
{ 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2 },
{ 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7 },
{ 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6 },
{ 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3 },
{ 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2 },
{ 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7 },
{ 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6 },
{ 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3 },
{ 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 1,6,5,2, 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 1,6,5,2, 1,6,5,2, 1,6,5,2 },
{ 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7, 4,3,0,7 },
{ 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6, 5,2,1,6 },
{ 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3, 0,7,4,3 }
};
/* -------------------- This table represents bits Y2Y1 -------------------- */
static Ipp8u ce16Input[8][8] =
{
{ 0, 0, 1, 1, 0, 0, 1, 1 },
{ 3, 2, 2, 3, 3, 2, 2, 3 },
{ 1, 1, 0, 0, 1, 1, 0, 0 },
{ 2, 3, 3, 2, 2, 3, 3, 2 },
{ 0, 0, 1, 1, 0, 0, 1, 1 },
{ 3, 2, 2, 3, 3, 2, 2, 3 },
{ 1, 1, 0, 0, 1, 1, 0, 0 },
{ 2, 3, 3, 2, 2, 3, 3, 2 }
};
/* ------------------- This table represents bits Y4Y2Y1 ------------------- */
static Ipp8u ce32Input[8][8] =
{
{ 0, 0, 1, 1, 4, 4, 5, 5 },
{ 3, 2, 2, 3, 7, 6, 6, 7 },
{ 1, 1, 0, 0, 5, 5, 4, 4 },
{ 2, 3, 3, 2, 6, 7, 7, 6 },
{ 4, 4, 5, 5, 0, 0, 1, 1 },
{ 7, 6, 6, 7, 3, 2, 2, 3 },
{ 5, 5, 4, 4, 1, 1, 0, 0 },
{ 6, 7, 7, 6, 2, 3, 3, 2 }
};
/* ------------------ This table represents bits Y4Y3Y2Y1 ------------------ */
static Ipp8u ce64Input[8][8] =
{
{ 0, 0, 1, 1, 8, 8, 9, 9 },
{ 3, 2, 2, 3, 11, 10, 10, 11 },
{ 5, 5, 4, 4, 13, 13, 12, 12 },
{ 6, 7, 7, 6, 14, 15, 15, 14 },
{ 8, 8, 9, 9, 0, 0, 1, 1 },
{ 11, 10, 10, 11, 3, 2, 2, 3 },
{ 13, 13, 12, 12, 5, 5, 4, 4 },
{ 14, 15, 15, 14, 6, 7, 7, 6 }
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?