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

📄 aaccmn_adif.c

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 C
字号:
/*//////////////////////////////////////////////////////////////////////////////////                  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.//*/#include "aaccmn_adif.h"#include "bstream.h"#include "mp4cmn_pce.h"intdec_adif_header(sAdif_header* p_adif_header,sBitsreamBuffer* p_bs){  int i;  p_adif_header->adif_id = Getbits(p_bs,16);  p_adif_header->adif_id <<= 16;  p_adif_header->adif_id += Getbits(p_bs,16);  if (p_adif_header->adif_id != ADIF_SIGNATURE)  {    return 1;  }  p_adif_header->copyright_id_present = Getbits(p_bs,1);  if (p_adif_header->copyright_id_present)  {    for (i = 0; i < LEN_COPYRIGHT_ID ; i++)    {      p_adif_header->copyright_id[i] = (char)Getbits(p_bs,8);    }      p_adif_header->copyright_id[i] = 0;  }  p_adif_header->original_copy = Getbits(p_bs,1);  p_adif_header->home = Getbits(p_bs,1);  p_adif_header->bitstream_type = Getbits(p_bs,1);  p_adif_header->bitrate = Getbits(p_bs,23);  p_adif_header->num_program_config_elements = Getbits(p_bs,4);  for (i = 0; i < p_adif_header->num_program_config_elements + 1; i++)  {    if (p_adif_header->bitstream_type == 0)    {      p_adif_header->adif_buffer_fullness[i] = Getbits(p_bs,20);    }        dec_program_config_element(&p_adif_header->pce[i],p_bs);  }  return 0;}/***********************************************************************    Unpack function(s) (support(s) alternative bitstream representation)***********************************************************************/intunpack_adif_header(sAdif_header* p_adif_header,unsigned char **pp_bitstream, int *p_offset){  int i;  p_adif_header->adif_id = get_bits(pp_bitstream,p_offset,16);  p_adif_header->adif_id <<= 16;  p_adif_header->adif_id += get_bits(pp_bitstream,p_offset,16);  if (p_adif_header->adif_id != ADIF_SIGNATURE)  {    return 1;  }  p_adif_header->copyright_id_present = get_bits(pp_bitstream,p_offset,1);  if (p_adif_header->copyright_id_present)  {    for (i = 0; i < LEN_COPYRIGHT_ID ; i++)    {      p_adif_header->copyright_id[i] = (char)get_bits(pp_bitstream,p_offset,8);    }      p_adif_header->copyright_id[i] = 0;  }  p_adif_header->original_copy = get_bits(pp_bitstream,p_offset,1);  p_adif_header->home = get_bits(pp_bitstream,p_offset,1);  p_adif_header->bitstream_type = get_bits(pp_bitstream,p_offset,1);  p_adif_header->bitrate = get_bits(pp_bitstream,p_offset,23);  p_adif_header->num_program_config_elements = get_bits(pp_bitstream,p_offset,4);  for (i = 0; i < p_adif_header->num_program_config_elements + 1; i++)  {    if (p_adif_header->bitstream_type == 0)    {      p_adif_header->adif_buffer_fullness[i] = get_bits(pp_bitstream,p_offset,20);    }        unpack_program_config_element(&p_adif_header->pce[i],pp_bitstream,p_offset);  }  return 0;}

⌨️ 快捷键说明

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