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

📄 amf_demux1xn.c

📁 ADI SHARC DSP 音频算法标准模块库
💻 C
字号:
// Copyright(c) 2002-2006 Analog Devices, Inc. All Rights Reserved.
// This software is proprietary and confidential to Analog Devices, Inc. and its licensors.

// File    : $Id: //depot/Development/VisualAudio/Modules/Packs/MuxDemuxPack/2.5.0/SHARC/Source/AMF_DeMux1xN.c#2 $ 
// Part of : VisualAudio MuxDemuxPack V2.0.1 
// Updated : $Date: 2006/10/12 $ by $Author: Fernando $

#include "AMF_DeMux1xN.h"

void AMF_DeMux1xN_Render(AMF_DeMux1xN * restrict instance,AMF_Signal * restrict * buffers, int tickSize);

#if 0    // Example code

//#pragma optimize_for_speed
SEG_MOD_FAST_CODE  void AMF_DeMux1xN_Render(AMF_DeMux1xN * restrict instance,AMF_Signal * restrict * buffers,int tickSize) {
    int i, outcount;
    int outputCount = instance->b.outputPinCount;
    AMF_Signal * restrict in;
    AMF_Signal * restrict out;
       int Selectpin = instance->Select ;
    

    in = buffers[0];

    for (outcount = 0; outcount<outputCount; outcount++)
    {
        out = buffers[outcount+1];

        // Should be able to use SIMD in these loops                      

        if (outcount == Selectpin)
            for (i=0; i<tickSize; i++)
                out[i] = in[i];
        else
            for (i=0; i<tickSize; i++)
                out[i] = 0.0;
    }
}
#endif

/*
 * Module baseclass structure describing the module environment.
 */
SEG_MOD_SLOW_CONST const AMF_ModuleVariableClass AMFClassDeMux1xN = {
    
    /* Flags */
    AMFModuleClassFlag_VARIABLE_PIN_COUNT,
     
    /* Render function */
    (AMF_RenderFunction)AMF_DeMux1xN_Render, 
    
    /* Default bypass */
    (void *)0
};






⌨️ 快捷键说明

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