Lines Matching refs:fPutBitsToBuffer

629 static void fPutBitsToBuffer(STREAMTYPEW *BitStream, IMG_UINT8 NoOfBytes, IMG_UINT32 ActualBits)  in fPutBitsToBuffer()  function
653 fPutBitsToBuffer(&s_streamW, 2, START_OF_IMAGE); in EncodeMarkerSegment()
656 fPutBitsToBuffer(&s_streamW, 2, DQT_MARKER); in EncodeMarkerSegment()
658fPutBitsToBuffer(&s_streamW, 3, LQPQ << 4); // 20 bits = LQPQ, 4 bits = 0 (Destination identifier … in EncodeMarkerSegment()
663fPutBitsToBuffer(&s_streamW, 1, pJPEGContext->psTablesBlock->aui8LumaQuantParams[gZigZag[uc_i]]); in EncodeMarkerSegment()
667 fPutBitsToBuffer(&s_streamW, 2, DQT_MARKER); in EncodeMarkerSegment()
669fPutBitsToBuffer(&s_streamW, 3, (LQPQ << 4) | 1); // 20 bits = LQPQ, 4 bits = 1 (Destination ident… in EncodeMarkerSegment()
673fPutBitsToBuffer(&s_streamW, 1, pJPEGContext->psTablesBlock->aui8ChromaQuantParams[gZigZag[uc_i]]); in EncodeMarkerSegment()
682 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
683 fPutBitsToBuffer(&s_streamW, 2, LH_DC); in EncodeMarkerSegment()
685 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataLumaDc[uc_i]); in EncodeMarkerSegment()
689 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
690 fPutBitsToBuffer(&s_streamW, 2, LH_AC); in EncodeMarkerSegment()
692 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataLumaAc[uc_i]); in EncodeMarkerSegment()
695 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
696 fPutBitsToBuffer(&s_streamW, 2, LH_DC); in EncodeMarkerSegment()
698 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataChromaDc[uc_i]); in EncodeMarkerSegment()
702 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
703 fPutBitsToBuffer(&s_streamW, 2, LH_AC); in EncodeMarkerSegment()
705 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataChromaAc[uc_i]); in EncodeMarkerSegment()
712 fPutBitsToBuffer(&s_streamW, 2, 0xFFDD); //Marker header in EncodeMarkerSegment()
713 fPutBitsToBuffer(&s_streamW, 2, 4); // Byte size of marker (header not included) in EncodeMarkerSegment()
714fPutBitsToBuffer(&s_streamW, 2, pJPEGContext->sScan_Encode_Info.ui32NumberMCUsToEncodePerScan); //… in EncodeMarkerSegment()
736 fPutBitsToBuffer(&ps_streamW, 2, SOF_BASELINE_DCT); in EncodeFrameHeader()
738 fPutBitsToBuffer(&ps_streamW, 2, 8 + 3 * uc_num_comp_in_img); in EncodeFrameHeader()
740 fPutBitsToBuffer(&ps_streamW, 1, 8); in EncodeFrameHeader()
742 fPutBitsToBuffer(&ps_streamW, 2, pJPEGContext->ui32OutputHeight); in EncodeFrameHeader()
744 fPutBitsToBuffer(&ps_streamW, 2, pJPEGContext->ui32OutputWidth); in EncodeFrameHeader()
746 fPutBitsToBuffer(&ps_streamW, 1, uc_num_comp_in_img); in EncodeFrameHeader()
753 fPutBitsToBuffer(&ps_streamW, 1, 1); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
754fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[0].ui32WidthBlocks >> 3) … in EncodeFrameHeader()
755 fPutBitsToBuffer(&ps_streamW, 1, 0); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
758 fPutBitsToBuffer(&ps_streamW, 1, 2); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
760fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[1].ui32WidthBlocks >> 3) … in EncodeFrameHeader()
761 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
762 fPutBitsToBuffer(&ps_streamW, 1, 3); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
764fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[2].ui32WidthBlocks >> 3) … in EncodeFrameHeader()
765 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
769 fPutBitsToBuffer(&ps_streamW, 1, 1); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
770fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[0].ui32WidthBlocks >> 3) … in EncodeFrameHeader()
771 fPutBitsToBuffer(&ps_streamW, 1, 0); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
774 fPutBitsToBuffer(&ps_streamW, 1, 2); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
776fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[1].ui32WidthBlocks >> 4) … in EncodeFrameHeader()
777 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
779 fPutBitsToBuffer(&ps_streamW, 1, 3); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
781fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[1].ui32WidthBlocks >> 4) … in EncodeFrameHeader()
782 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
786 fPutBitsToBuffer(&ps_streamW, 1, 1); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
787fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[0].ui32WidthBlocks >> 4) … in EncodeFrameHeader()
788 fPutBitsToBuffer(&ps_streamW, 1, 0); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
791 fPutBitsToBuffer(&ps_streamW, 1, 2); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
793fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[0].ui32WidthBlocks >> 5) … in EncodeFrameHeader()
794 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
795 fPutBitsToBuffer(&ps_streamW, 1, 3); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
797fPutBitsToBuffer(&ps_streamW, 1, ((pJPEGContext->pMTXSetup->MCUComponent[0].ui32WidthBlocks >> 5) … in EncodeFrameHeader()
798 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
846 fPutBitsToBuffer(&s_streamW, 2, START_OF_SCAN); in JPGEncodeSOSHeader()
848 fPutBitsToBuffer(&s_streamW, 2, 6 + (pJPEGContext->pMTXSetup->ui32ComponentsInScan << 1)); in JPGEncodeSOSHeader()
850 fPutBitsToBuffer(&s_streamW, 1, pJPEGContext->pMTXSetup->ui32ComponentsInScan); in JPGEncodeSOSHeader()
855 fPutBitsToBuffer(&s_streamW, 1, uc_comp_id); in JPGEncodeSOSHeader()
859fPutBitsToBuffer(&s_streamW, 1, ((ui8Comp != 0 ? 1 : 0) << 4) | (ui8Comp != 0 ? 1 : 0)); // Huffma… in JPGEncodeSOSHeader()
863 fPutBitsToBuffer(&s_streamW, 1, 0); in JPGEncodeSOSHeader()
865 fPutBitsToBuffer(&s_streamW, 1, 63); in JPGEncodeSOSHeader()
868 fPutBitsToBuffer(&s_streamW, 1, 0); in JPGEncodeSOSHeader()
1555 fPutBitsToBuffer(&s_streamW, 2, END_OF_IMAGE); in tng_jpeg_AppendMarkers()