Home | History | Annotate | Download | only in tests

Lines Matching refs:po

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