Lines Matching refs:po

1442    unsigned char *po;  in test_repacketizer_api()  local
1450 po=malloc(max_out+256); in test_repacketizer_api()
1451 if(po==NULL)test_failed(); in test_repacketizer_api()
1541 ret=opus_repacketizer_out_range(rp,0,rcnt*i,po,max_out); in test_repacketizer_api()
1547 if((rcnt*i)<2&&(po[0]&3)!=0)test_failed(); /* Code 0 */ in test_repacketizer_api()
1548 if((rcnt*i)==2&&(po[0]&3)!=1)test_failed(); /* Code 1 */ in test_repacketizer_api()
1549 if((rcnt*i)>2&&(((po[0]&3)!=3)||(po[1]!=rcnt*i)))test_failed(); /* Code 3 CBR */ in test_repacketizer_api()
1551 if(opus_repacketizer_out(rp,po,len)!=len)test_failed(); in test_repacketizer_api()
1553 if(opus_packet_unpad(po,len)!=len)test_failed(); in test_repacketizer_api()
1555 if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1557 if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1559 if(opus_packet_unpad(po,len+256)!=len)test_failed(); in test_repacketizer_api()
1561 if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed(); in test_repacketizer_api()
1563 if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1565 if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1567 if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed(); in test_repacketizer_api()
1569 if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); in test_repacketizer_api()
1573 if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); in test_repacketizer_api()
1576 if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); in test_repacketizer_api()
1593 i=opus_repacketizer_out(rp,po,max_out); in test_repacketizer_api()
1594 if((i!=(4+8+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=0))test_failed(); in test_repacketizer_api()
1596 i=opus_repacketizer_out_range(rp,0,1,po,max_out); in test_repacketizer_api()
1597 if(i!=5||(po[0]&3)!=0)test_failed(); in test_repacketizer_api()
1599 i=opus_repacketizer_out_range(rp,1,2,po,max_out); in test_repacketizer_api()
1600 if(i!=5||(po[0]&3)!=0)test_failed(); in test_repacketizer_api()
1611 i=opus_repacketizer_out(rp,po,max_out); in test_repacketizer_api()
1612 if((i!=(2+8+2+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=1))test_failed(); in test_repacketizer_api()
1623 i=opus_repacketizer_out(rp,po,max_out); in test_repacketizer_api()
1624 if((i!=(2+1+1+1+4+2+4+2))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=1))test_failed(); in test_repacketizer_api()
1635 i=opus_repacketizer_out(rp,po,max_out); in test_repacketizer_api()
1636 if((i!=(2+4+4+4+4))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=0))test_failed(); in test_repacketizer_api()
1661 if(opus_repacketizer_out(rp,po,max_out)!=len)test_failed(); in test_repacketizer_api()
1662 if(rcnt>2&&(po[1]&63)!=rcnt)test_failed(); in test_repacketizer_api()
1663 if(rcnt==2&&(po[0]&3)!=2)test_failed(); in test_repacketizer_api()
1664 if(rcnt==1&&(po[0]&3)!=0)test_failed(); in test_repacketizer_api()
1666 if(opus_repacketizer_out(rp,po,len)!=len)test_failed(); in test_repacketizer_api()
1668 if(opus_packet_unpad(po,len)!=len)test_failed(); in test_repacketizer_api()
1670 if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1672 if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1674 if(opus_packet_unpad(po,len+256)!=len)test_failed(); in test_repacketizer_api()
1676 if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed(); in test_repacketizer_api()
1678 if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1680 if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1682 if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed(); in test_repacketizer_api()
1684 if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); in test_repacketizer_api()
1688 if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); in test_repacketizer_api()
1691 if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); in test_repacketizer_api()
1696 po[0]='O'; in test_repacketizer_api()
1697 po[1]='p'; in test_repacketizer_api()
1698 if(opus_packet_pad(po,4,4)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1700 if(opus_multistream_packet_pad(po,4,4,1)!=OPUS_OK)test_failed(); in test_repacketizer_api()
1702 if(opus_packet_pad(po,4,5)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1704 if(opus_multistream_packet_pad(po,4,5,1)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1706 if(opus_packet_pad(po,0,5)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1708 if(opus_multistream_packet_pad(po,0,5,1)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1710 if(opus_packet_unpad(po,0)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1712 if(opus_multistream_packet_unpad(po,0,1)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1714 if(opus_packet_unpad(po,4)!=OPUS_INVALID_PACKET)test_failed(); in test_repacketizer_api()
1716 if(opus_multistream_packet_unpad(po,4,1)!=OPUS_INVALID_PACKET)test_failed(); in test_repacketizer_api()
1718 po[0]=0; in test_repacketizer_api()
1719 po[1]=0; in test_repacketizer_api()
1720 po[2]=0; in test_repacketizer_api()
1721 if(opus_packet_pad(po,5,4)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1723 if(opus_multistream_packet_pad(po,5,4,1)!=OPUS_BAD_ARG)test_failed(); in test_repacketizer_api()
1737 free(po); in test_repacketizer_api()