Lines Matching defs:bitstream

64 * Description: Functions for writing to bitstream
142 Int PutCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream);
143 Int PutCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream);
144 Int PutCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream);
145 Int PutCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream);
146 Int PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream);
147 Int PutMCBPC_Inter(Int cbpc, Int mode, BitstreamEncVideo *bitstream);
148 Int PutMCBPC_Intra(Int cbpc, Int mode, BitstreamEncVideo *bitstream);
149 Int PutMV(Int mvint, BitstreamEncVideo *bitstream);
150 Int PutDCsize_chrom(Int size, BitstreamEncVideo *bitstream);
151 Int PutDCsize_lum(Int size, BitstreamEncVideo *bitstream);
152 Int PutDCsize_lum(Int size, BitstreamEncVideo *bitstream);
154 Int PutCoeff_Inter_RVLC(Int run, Int level, BitstreamEncVideo *bitstream);
155 Int PutCoeff_Inter_RVLC_Last(Int run, Int level, BitstreamEncVideo *bitstream);
156 Int PutCoeff_Intra_RVLC(Int run, Int level, BitstreamEncVideo *bitstream);
157 Int PutCoeff_Intra_RVLC_Last(Int run, Int level, BitstreamEncVideo *bitstream);
159 Int PutRunCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream);
160 Int PutRunCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream);
161 Int PutRunCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream);
162 Int PutRunCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream);
163 Int PutLevelCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream);
164 Int PutLevelCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream);
165 Int PutLevelCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream);
166 Int PutLevelCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream);
169 Int IntraDC_dpcm(Int val, Int lum, BitstreamEncVideo *bitstream);
182 PutDCsize_lum(Int size, BitstreamEncVideo *bitstream)
191 BitstreamPutBits(bitstream, length, DCtab_lum[size].code);
197 PutDCsize_chrom(Int size, BitstreamEncVideo *bitstream)
205 BitstreamPutBits(bitstream, length, DCtab_chrom[size].code);
211 PutMV(Int mvint, BitstreamEncVideo *bitstream)
227 BitstreamPutBits(bitstream, length, mvtab[absmv].code);
231 BitstreamPut1Bits(bitstream, sign);
239 PutMCBPC_Intra(Int cbp, Int mode, BitstreamEncVideo *bitstream)
248 BitstreamPutBits(bitstream, length, mcbpc_intra_tab[ind].code);
254 PutMCBPC_Inter(Int cbp, Int mode, BitstreamEncVideo *bitstream)
263 BitstreamPutBits(bitstream, length, mcbpc_inter_tab[ind].code);
269 PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream)
281 BitstreamPutBits(bitstream, length, (UInt)cbpy_tab[ind].code);
291 Int PutCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream)
299 BitstreamPutBits(bitstream, length, (UInt)coeff_tab0[run][level-1].code);
305 BitstreamPutBits(bitstream, length, (UInt)coeff_tab1[run-2][level-1].code);
311 Int PutCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream)
319 BitstreamPutBits(bitstream, length, (UInt)coeff_tab2[run][level-1].code);
325 BitstreamPutBits(bitstream, length, (UInt)coeff_tab3[run-2].code);
333 Int PutCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream)
341 BitstreamPutBits(bitstream, length, (UInt)coeff_tab4[level-1].code);
347 BitstreamPutBits(bitstream, length, (UInt)coeff_tab5[level-1].code);
353 BitstreamPutBits(bitstream, length, (UInt)coeff_tab6[run-2][level-1].code);
359 BitstreamPutBits(bitstream, length, (UInt)coeff_tab7[run-10].code);
365 Int PutCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream)
373 BitstreamPutBits(bitstream, length, (UInt)coeff_tab8[level-1].code);
379 BitstreamPutBits(bitstream, length, (UInt)coeff_tab9[run-1][level-1].code);
385 BitstreamPutBits(bitstream, length, (UInt)coeff_tab10[run-7].code);
393 Int PutCoeff_Inter_RVLC(Int run, Int level, BitstreamEncVideo *bitstream)
401 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab14[level-1].code);
407 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab15[level-1].code);
413 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab16[run-2][level-1].code);
419 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab17[level-1].code);
425 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab18[run-5][level-1].code);
431 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab19[run-8][level-1].code);
437 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab20[run-10][level-1].code);
443 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab21[run-18].code);
449 Int PutCoeff_Inter_RVLC_Last(Int run, Int level, BitstreamEncVideo *bitstream)
457 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab22[run][level-1].code);
463 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab23[level-1].code);
469 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab24[run-3][level-1].code);
475 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab25[run-14].code);
483 Int PutCoeff_Intra_RVLC(Int run, Int level, BitstreamEncVideo *bitstream)
491 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab1[level-1].code);
497 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab2[level-1].code);
503 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab3[level-1].code);
509 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab4[level-1].code);
515 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab5[run-4][level-1].code);
521 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab6[run-6][level-1].code);
527 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab7[run-8][level-1].code);
534 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab8[run-10][level-1].code);
540 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab9[run-13].code);
545 Int PutCoeff_Intra_RVLC_Last(Int run, Int level, BitstreamEncVideo *bitstream)
553 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab10[run][level-1].code);
559 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab11[level-1].code);
565 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab12[run-3][level-1].code);
571 BitstreamPutBits(bitstream, length, (UInt)coeff_RVLCtab13[run-14].code);
580 PutRunCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream)
589 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
590 //BitstreamPutBits(bitstream, 2, 2);
591 BitstreamPutBits(bitstream, length, (UInt)coeff_tab0[run][level-1].code);
600 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
601 //BitstreamPutBits(bitstream, 2, 2);
602 BitstreamPutBits(bitstream, length, (UInt)coeff_tab1[run-2][level-1].code);
609 Int PutRunCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream)
618 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
619 //BitstreamPutBits(bitstream, 2, 2);
620 BitstreamPutBits(bitstream, length, (UInt)coeff_tab2[run][level-1].code);
629 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
630 //BitstreamPutBits(bitstream, 2, 2);
631 BitstreamPutBits(bitstream, length, (UInt)coeff_tab3[run-2].code);
638 Int PutRunCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream)
647 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
648 //BitstreamPutBits(bitstream, 2, 2);
649 BitstreamPutBits(bitstream, length, (UInt)coeff_tab4[level-1].code);
658 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
659 //BitstreamPutBits(bitstream, 2, 2);
660 BitstreamPutBits(bitstream, length, (UInt)coeff_tab5[level-1].code);
669 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
670 //BitstreamPutBits(bitstream, 2, 2);
671 BitstreamPutBits(bitstream, length, (UInt)coeff_tab6[run-2][level-1].code);
680 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
681 //BitstreamPutBits(bitstream, 2, 2);
682 BitstreamPutBits(bitstream, length, (UInt)coeff_tab7[run-10].code);
688 Int PutRunCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream)
697 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
698 //BitstreamPutBits(bitstream, 2, 2);
699 BitstreamPutBits(bitstream, length, (UInt)coeff_tab8[level-1].code);
708 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
709 //BitstreamPutBits(bitstream, 2, 2);
710 BitstreamPutBits(bitstream, length, (UInt)coeff_tab9[run-1][level-1].code);
719 BitstreamPutGT8Bits(bitstream, 7 + 2, 14/*3*/);
720 //BitstreamPutBits(bitstream, 2, 2);
721 BitstreamPutBits(bitstream, length, (UInt)coeff_tab10[run-7].code);
729 PutLevelCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream)
738 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
739 BitstreamPutBits(bitstream, length, (UInt)coeff_tab0[run][level-1].code);
748 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
749 BitstreamPutBits(bitstream, length, (UInt)coeff_tab1[run-2][level-1].code);
756 Int PutLevelCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream)
765 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
766 BitstreamPutBits(bitstream, length, (UInt)coeff_tab2[run][level-1].code);
775 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
776 BitstreamPutBits(bitstream, length, (UInt)coeff_tab3[run-2].code);
783 Int PutLevelCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream)
792 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
793 BitstreamPutBits(bitstream, length, (UInt)coeff_tab4[level-1].code);
802 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
803 BitstreamPutBits(bitstream, length, (UInt)coeff_tab5[level-1].code);
812 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
813 BitstreamPutBits(bitstream, length, (UInt)coeff_tab6[run-2][level-1].code);
822 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
823 BitstreamPutBits(bitstream, length, (UInt)coeff_tab7[run-10].code);
829 Int PutLevelCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream)
838 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
839 BitstreamPutBits(bitstream, length, (UInt)coeff_tab8[level-1].code);
848 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
849 BitstreamPutBits(bitstream, length, (UInt)coeff_tab9[run-1][level-1].code);
858 BitstreamPutBits(bitstream, 7 + 1, 6/*3*/);
859 BitstreamPutBits(bitstream, length, (UInt)coeff_tab10[run-7].code);
1056 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].x - pmvx, bs1); /* Write x to bitstream */
1057 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].y - pmvy, bs1); /* Write y to bitstream */
1343 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].x - pmvx, bs1); /* Write x to bitstream */
1344 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].y - pmvy, bs1); /* Write y to bitstream */
1944 Int IntraDC_dpcm(Int val, Int lum, BitstreamEncVideo *bitstream)
1963 n_bits = PutDCsize_lum(size, bitstream);
1967 n_bits = PutDCsize_chrom(size, bitstream);
1981 BitstreamPutBits(bitstream, (size), (UInt)(val));
1985 BitstreamPut1Bits(bitstream, 1);