Lines Matching refs:fPutBitsToBuffer

493 void fPutBitsToBuffer(STREAMTYPEW *BitStream, IMG_UINT8 NoOfBytes, IMG_UINT32 ActualBits)  in fPutBitsToBuffer()  function
779 fPutBitsToBuffer(&s_streamW, 2, START_OF_IMAGE);
782 fPutBitsToBuffer(&s_streamW, 2, DQT_MARKER);
784fPutBitsToBuffer(&s_streamW, 3, LQPQ << 4); // 20 bits = LQPQ, 4 bits = 0 (Destination identifier …
787 fPutBitsToBuffer(&s_streamW, 1, pContext->pvLowLevelEncContext->Qmatrix[0][gZigZag[uc_i]]);
791 fPutBitsToBuffer(&s_streamW, 2, DQT_MARKER);
793fPutBitsToBuffer(&s_streamW, 3, (LQPQ << 4) | 1); // 20 bits = LQPQ, 4 bits = 1 (Destination ident…
796 fPutBitsToBuffer(&s_streamW, 1, pContext->pvLowLevelEncContext->Qmatrix[1][gZigZag[uc_i]]);
801 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER);
802 fPutBitsToBuffer(&s_streamW, 2, LH_DC);
804 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataLumaDc[uc_i]);
808 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER);
809 fPutBitsToBuffer(&s_streamW, 2, LH_AC);
811 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataLumaAc[uc_i]);
814 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER);
815 fPutBitsToBuffer(&s_streamW, 2, LH_DC);
817 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataChromaDc[uc_i]);
821 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER);
822 fPutBitsToBuffer(&s_streamW, 2, LH_AC);
824 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataChromaAc[uc_i]);
862 fPutBitsToBuffer(&s_streamW, 2, START_OF_IMAGE); in EncodeMarkerSegment()
865 fPutBitsToBuffer(&s_streamW, 2, DQT_MARKER); in EncodeMarkerSegment()
867fPutBitsToBuffer(&s_streamW, 3, LQPQ << 4); // 20 bits = LQPQ, 4 bits = 0 (Destination identifier … in EncodeMarkerSegment()
872fPutBitsToBuffer(&s_streamW, 1, pContext->psTablesBlock->aui8LumaQuantParams[gZigZag[uc_i]]); in EncodeMarkerSegment()
876 fPutBitsToBuffer(&s_streamW, 2, DQT_MARKER); in EncodeMarkerSegment()
878fPutBitsToBuffer(&s_streamW, 3, (LQPQ << 4) | 1); // 20 bits = LQPQ, 4 bits = 1 (Destination ident… in EncodeMarkerSegment()
882fPutBitsToBuffer(&s_streamW, 1, pContext->psTablesBlock->aui8ChromaQuantParams[gZigZag[uc_i]]); in EncodeMarkerSegment()
888 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
889 fPutBitsToBuffer(&s_streamW, 2, LH_DC); in EncodeMarkerSegment()
891 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataLumaDc[uc_i]); in EncodeMarkerSegment()
895 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
896 fPutBitsToBuffer(&s_streamW, 2, LH_AC); in EncodeMarkerSegment()
898 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataLumaAc[uc_i]); in EncodeMarkerSegment()
901 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
902 fPutBitsToBuffer(&s_streamW, 2, LH_DC); in EncodeMarkerSegment()
904 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataChromaDc[uc_i]); in EncodeMarkerSegment()
908 fPutBitsToBuffer(&s_streamW, 2, DHT_MARKER); in EncodeMarkerSegment()
909 fPutBitsToBuffer(&s_streamW, 2, LH_AC); in EncodeMarkerSegment()
911 fPutBitsToBuffer(&s_streamW, 1, gMarkerDataChromaAc[uc_i]); in EncodeMarkerSegment()
918 fPutBitsToBuffer(&s_streamW, 2, 0xFFDD); //Marker header in EncodeMarkerSegment()
919 fPutBitsToBuffer(&s_streamW, 2, 4); // Byte size of marker (header not included) in EncodeMarkerSegment()
920fPutBitsToBuffer(&s_streamW, 2, pContext->sScan_Encode_Info.ui32NumberMCUsToEncodePerScan); // Res… in EncodeMarkerSegment()
1018 fPutBitsToBuffer(&ps_streamW, 2, START_OF_IMAGE);
1021 fPutBitsToBuffer(&ps_streamW, 2, SOF_BASELINE_DCT);
1023 fPutBitsToBuffer(&ps_streamW, 2, 8 + 3 * uc_num_comp_in_img);
1025 fPutBitsToBuffer(&ps_streamW, 1, 8);
1027 fPutBitsToBuffer(&ps_streamW, 2, ps_jpeg_params->ui16_height);
1029 fPutBitsToBuffer(&ps_streamW, 2, ps_jpeg_params->ui16_width);
1031 fPutBitsToBuffer(&ps_streamW, 1, uc_num_comp_in_img);
1037 fPutBitsToBuffer(&ps_streamW, 1, ps_jpeg_comp->puc_comp_id[ui16_i]);
1040fPutBitsToBuffer(&ps_streamW, 1, (ps_jpeg_comp->puc_horiz_scale[ui16_i] << 4) | ps_jpeg_comp->puc_…
1043 fPutBitsToBuffer(&ps_streamW, 1, ps_jpeg_comp->puc_q_table_id[ui16_i]);
1094 fPutBitsToBuffer(&ps_streamW, 2, SOF_BASELINE_DCT); in EncodeFrameHeader()
1096 fPutBitsToBuffer(&ps_streamW, 2, 8 + 3 * uc_num_comp_in_img); in EncodeFrameHeader()
1098 fPutBitsToBuffer(&ps_streamW, 1, 8); in EncodeFrameHeader()
1100 fPutBitsToBuffer(&ps_streamW, 2, pContext->ui32OutputHeight); in EncodeFrameHeader()
1102 fPutBitsToBuffer(&ps_streamW, 2, pContext->ui32OutputWidth); in EncodeFrameHeader()
1104 fPutBitsToBuffer(&ps_streamW, 1, uc_num_comp_in_img); in EncodeFrameHeader()
1108 fPutBitsToBuffer(&ps_streamW, 1, 1); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1109fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[0].ui32WidthBlocks >> 3) << 4… in EncodeFrameHeader()
1110 fPutBitsToBuffer(&ps_streamW, 1, 0); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1114 fPutBitsToBuffer(&ps_streamW, 1, 2); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1116fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[1].ui32WidthBlocks >> 3) << 4… in EncodeFrameHeader()
1117 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1118 fPutBitsToBuffer(&ps_streamW, 1, 3); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1120fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[2].ui32WidthBlocks >> 3) << 4… in EncodeFrameHeader()
1121 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1123 fPutBitsToBuffer(&ps_streamW, 1, 2); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1125fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[1].ui32WidthBlocks >> 3) << 3… in EncodeFrameHeader()
1126 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1127 fPutBitsToBuffer(&ps_streamW, 1, 3); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1129fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[2].ui32WidthBlocks >> 3) << 3… in EncodeFrameHeader()
1130 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1132 fPutBitsToBuffer(&ps_streamW, 1, 2); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1134fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[1].ui32WidthBlocks >> 3) << 4… in EncodeFrameHeader()
1135 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1136 fPutBitsToBuffer(&ps_streamW, 1, 3); //CompId 0 = 1, 1 = 2, 2 = 3 in EncodeFrameHeader()
1138fPutBitsToBuffer(&ps_streamW, 1, ((pContext->pMTXSetup->MCUComponent[2].ui32WidthBlocks >> 3) << 4… in EncodeFrameHeader()
1139 fPutBitsToBuffer(&ps_streamW, 1, 1); // 0 = Luma(0), 1,2 = Chroma(1) in EncodeFrameHeader()
1330 fPutBitsToBuffer(&s_streamW, 2, START_OF_SCAN);
1332 fPutBitsToBuffer(&s_streamW, 2, 6 + (pContext->JPEGEncoderParams.uc_num_comp_in_scan << 1));
1334 fPutBitsToBuffer(&s_streamW, 1, pContext->JPEGEncoderParams.uc_num_comp_in_scan);
1348 fPutBitsToBuffer(&s_streamW, 1, uc_comp_id);
1353fPutBitsToBuffer(&s_streamW, 1, (pContext->sJPEGEncoderComp.puc_huff_table_id[ui32TableIndex] << 4…
1357 fPutBitsToBuffer(&s_streamW, 1, 0);
1359 fPutBitsToBuffer(&s_streamW, 1, 63);
1362 fPutBitsToBuffer(&s_streamW, 1, 0);
1391 fPutBitsToBuffer(&s_streamW, 2, START_OF_SCAN); in JPGEncodeSOSHeader()
1393 fPutBitsToBuffer(&s_streamW, 2, 6 + (pContext->pMTXSetup->ui32ComponentsInScan << 1)); in JPGEncodeSOSHeader()
1395 fPutBitsToBuffer(&s_streamW, 1, pContext->pMTXSetup->ui32ComponentsInScan); in JPGEncodeSOSHeader()
1400 fPutBitsToBuffer(&s_streamW, 1, uc_comp_id); in JPGEncodeSOSHeader()
1404fPutBitsToBuffer(&s_streamW, 1, ((ui8Comp != 0 ? 1 : 0) << 4) | (ui8Comp != 0 ? 1 : 0)); // Huffma… in JPGEncodeSOSHeader()
1408 fPutBitsToBuffer(&s_streamW, 1, 0); in JPGEncodeSOSHeader()
1410 fPutBitsToBuffer(&s_streamW, 1, 63); in JPGEncodeSOSHeader()
1413 fPutBitsToBuffer(&s_streamW, 1, 0); in JPGEncodeSOSHeader()
1448 fPutBitsToBuffer(&ps_streamW, 2, START_OF_IMAGE);
1450 fPutBitsToBuffer(&ps_streamW, 2, MJPEG_APP1);
1452 fPutBitsToBuffer(&ps_streamW, 2, 0x002A);
1454 fPutBitsToBuffer(&ps_streamW, 4, 0x00000000);
1456 fPutBitsToBuffer(&ps_streamW, 4, 0x6D6A7067);
1458fPutBitsToBuffer(&ps_streamW, 4, pCBuffer->ui32BytesWritten + 2 - ui32OffsetBytes); // +2 because …
1460 fPutBitsToBuffer(&ps_streamW, 4, pCBuffer->ui32BytesWritten + 2 - ui32OffsetBytes);
1463fPutBitsToBuffer(&ps_streamW, 4, pCBuffer->ui32BytesWritten + 2 - ui32OffsetBytes); // Points to s…
1465 fPutBitsToBuffer(&ps_streamW, 4, 0); // Set to zero for second field
1469 fPutBitsToBuffer(&ps_streamW, 4, H_QT_OFFSET);
1472 fPutBitsToBuffer(&ps_streamW, 4, H_HT_OFFSET);
1474 fPutBitsToBuffer(&ps_streamW, 4, H_SOF_OFFSET);
1476 fPutBitsToBuffer(&ps_streamW, 4, H_SOS_OFFSET);
1478 fPutBitsToBuffer(&ps_streamW, 4, H_SOI_OFFSET);