Lines Matching refs:po
1451 unsigned char *po;
1459 po=malloc(max_out+256);
1460 if(po==NULL)test_failed();
1550 ret=opus_repacketizer_out_range(rp,0,rcnt*i,po,max_out);
1556 if((rcnt*i)<2&&(po[0]&3)!=0)test_failed(); /* Code 0 */
1557 if((rcnt*i)==2&&(po[0]&3)!=1)test_failed(); /* Code 1 */
1558 if((rcnt*i)>2&&(((po[0]&3)!=3)||(po[1]!=rcnt*i)))test_failed(); /* Code 3 CBR */
1560 if(opus_repacketizer_out(rp,po,len)!=len)test_failed();
1562 if(opus_packet_unpad(po,len)!=len)test_failed();
1564 if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();
1566 if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();
1568 if(opus_packet_unpad(po,len+256)!=len)test_failed();
1570 if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();
1572 if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();
1574 if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();
1576 if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();
1578 if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
1582 if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
1585 if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed();
1602 i=opus_repacketizer_out(rp,po,max_out);
1603 if((i!=(4+8+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=0))test_failed();
1605 i=opus_repacketizer_out_range(rp,0,1,po,max_out);
1606 if(i!=5||(po[0]&3)!=0)test_failed();
1608 i=opus_repacketizer_out_range(rp,1,2,po,max_out);
1609 if(i!=5||(po[0]&3)!=0)test_failed();
1620 i=opus_repacketizer_out(rp,po,max_out);
1621 if((i!=(2+8+2+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=1))test_failed();
1632 i=opus_repacketizer_out(rp,po,max_out);
1633 if((i!=(2+1+1+1+4+2+4+2))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=1))test_failed();
1644 i=opus_repacketizer_out(rp,po,max_out);
1645 if((i!=(2+4+4+4+4))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=0))test_failed();
1670 if(opus_repacketizer_out(rp,po,max_out)!=len)test_failed();
1671 if(rcnt>2&&(po[1]&63)!=rcnt)test_failed();
1672 if(rcnt==2&&(po[0]&3)!=2)test_failed();
1673 if(rcnt==1&&(po[0]&3)!=0)test_failed();
1675 if(opus_repacketizer_out(rp,po,len)!=len)test_failed();
1677 if(opus_packet_unpad(po,len)!=len)test_failed();
1679 if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();
1681 if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();
1683 if(opus_packet_unpad(po,len+256)!=len)test_failed();
1685 if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();
1687 if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();
1689 if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();
1691 if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();
1693 if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
1697 if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
1700 if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed();
1705 po[0]='O';
1706 po[1]='p';
1707 if(opus_packet_pad(po,4,4)!=OPUS_OK)test_failed();
1709 if(opus_multistream_packet_pad(po,4,4,1)!=OPUS_OK)test_failed();
1711 if(opus_packet_pad(po,4,5)!=OPUS_INVALID_PACKET)test_failed();
1713 if(opus_multistream_packet_pad(po,4,5,1)!=OPUS_INVALID_PACKET)test_failed();
1715 if(opus_packet_pad(po,0,5)!=OPUS_BAD_ARG)test_failed();
1717 if(opus_multistream_packet_pad(po,0,5,1)!=OPUS_BAD_ARG)test_failed();
1719 if(opus_packet_unpad(po,0)!=OPUS_BAD_ARG)test_failed();
1721 if(opus_multistream_packet_unpad(po,0,1)!=OPUS_BAD_ARG)test_failed();
1723 if(opus_packet_unpad(po,4)!=OPUS_INVALID_PACKET)test_failed();
1725 if(opus_multistream_packet_unpad(po,4,1)!=OPUS_INVALID_PACKET)test_failed();
1727 po[0]=0;
1728 po[1]=0;
1729 po[2]=0;
1730 if(opus_packet_pad(po,5,4)!=OPUS_BAD_ARG)test_failed();
1732 if(opus_multistream_packet_pad(po,5,4,1)!=OPUS_BAD_ARG)test_failed();
1746 free(po);