📄 aaccmn_chmap.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) 2003-2005 Intel Corporation. All Rights Reserved.//*/#ifndef __AACCMN_CHMAP_H#define __AACCMN_CHMAP_H#include "mp4cmn_pce.h"#include "aaccmn_adts.h"enum eChMapOrder{ CH_START = 0, /// Start offset CH_LIMIT = 0x20, /// Max number of channel for each type /* Channels order */ CH_FRONT = 0, CH_LF, CH_SIDE, CH_BACK, /********************/ CH_FRONT_CENTER = CH_START + CH_FRONT*CH_LIMIT, CH_FRONT_LEFT,// CH_FRONT_LEFT = CH_START + CH_FRONT*CH_LIMIT, CH_FRONT_RIGHT,// CH_FRONT_CENTER = CH_START + (CH_FRONT+1)*CH_LIMIT - 1, /********************/ CH_SIDE_LEFT = CH_START + CH_SIDE*CH_LIMIT, CH_SIDE_RIGHT, /********************/ CH_BACK_LEFT = CH_START + CH_BACK*CH_LIMIT, CH_BACK_RIGHT, CH_BACK_CENTER = CH_START + (CH_BACK+1)*CH_LIMIT - 1, /********************/ CH_LOW_FREQUENCY = CH_START + CH_LF*CH_LIMIT, CH_SURROUND_LEFT = CH_BACK_LEFT, CH_SURROUND_RIGHT = CH_BACK_RIGHT, CH_SURROUND_CENTER = CH_BACK_CENTER, CH_OUTSIDE_LEFT = CH_SIDE_LEFT, CH_OUTSIDE_RIGHT = CH_SIDE_RIGHT,/* CH_TOP_CENTER, CH_TOP_FRONT_LEFT, CH_TOP_FRONT_CENTER, CH_TOP_FRONT_RIGHT, CH_TOP_BACK_LEFT, CH_TOP_BACK_CENTER, CH_TOP_BACK_RIGHT,*/ CH_RESERVED, CH_MAX = 10};enum eChMap{ EL_ID_MAX = 4, /* Max elements id that is used in channel map*/ EL_TAG_MAX = 16, EL_MAP_SIZE = 16};typedef struct{ short key; short ch;} sCh_map_item;typedef struct{ short id; short tag; short ch;} sEl_map_item;#ifdef __cplusplusextern "C" {#endifvoid chmap_create_by_pce(sProgram_config_element* p_pce,sCh_map_item map[EL_ID_MAX][EL_TAG_MAX]);int chmap_create_by_adts(int channel_configuration,sCh_map_item chmap[EL_ID_MAX][EL_TAG_MAX],sEl_map_item elmap[],int el_num,int order[]);int chmap_order(sCh_map_item chmap[EL_ID_MAX][EL_TAG_MAX],sEl_map_item elmap[],int el_num,int order[]);#ifdef __cplusplus}#endif#endif//__AACCMN_CHMAP_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -