Lines Matching defs:video

36 PV_STATUS EncodeFrameDataPartMode(VideoEncData *video)
39 Vol *currVol = video->vol[video->currLayer];
40 Vop *currVop = video->currVop;
41 VideoEncParams *encParams = video->encParams;
47 UChar *QPMB = video->QPMB;
51 BitstreamEncVideo *bs1 = video->bitstream1;
52 BitstreamEncVideo *bs2 = video->bitstream2;
53 BitstreamEncVideo *bs3 = video->bitstream3;
61 video->QP_prev = currVop->quantizer;
93 video->usePrevQP = 0;
98 video->outputMB->mb_y = ind_y; /* 5/28/01 */
102 video->outputMB->mb_x = ind_x; /* 5/28/01 */
103 video->mbnum = mbnum;
104 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number */
111 getMotionCompensatedMB(video, ind_x, ind_y, offset);
116 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number*/
117 video->header_bits -= BitstreamGetPos(bs1); /* Header Bits */
118 video->QP_prev = currVop->quantizer; /* store QP */
119 status = EncodeVideoPacketHeader(video, mbnum, video->QP_prev, 0);
120 video->header_bits += BitstreamGetPos(bs1); /* Header Bits */
123 video->usePrevQP = 0;
130 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
136 MBVlcEncode(video, ncoefblck, (void*)BlockCodeCoeff);
147 /* Assemble_Packet(video) */
151 if (video->currVop->predictionType == I_VOP)
157 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte align Packet */
176 if (video->currVop->predictionType == I_VOP)
179 video->header_bits += 19;
184 video->header_bits += 17;
188 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte align Packet */
211 PV_STATUS EncodeSliceDataPartMode(VideoEncData *video)
214 Vol *currVol = video->vol[video->currLayer];
215 Vop *currVop = video->currVop;
216 UChar mode, *Mode = video->headerInfo.Mode;
217 VideoEncParams *encParams = video->encParams;
221 UChar *QPMB = video->QPMB;
223 Int ind_x = video->outputMB->mb_x, ind_y = video->outputMB->mb_y;
224 Int offset = video->offset; /* get current MB location */
225 Int mbnum = video->mbnum, slice_counter = video->sliceNo[mbnum]; /* get current MB location */
230 BitstreamEncVideo *bs1 = video->bitstream1;
231 BitstreamEncVideo *bs2 = video->bitstream2;
232 BitstreamEncVideo *bs3 = video->bitstream3;
244 video->QP_prev = 31;
246 if (video->end_of_buf) /* left-over from previous run */
252 video->end_of_buf = 0;
259 QPMB[0] = video->QP_prev = QP = currVop->quantizer;
260 video->usePrevQP = 0;
269 if (mbnum > 0) video->QP_prev = QPMB[mbnum-1];
305 video->outputMB->mb_y = ind_y; /* 5/28/01 */
310 video->outputMB->mb_x = ind_x; /* 5/28/01 */
311 video->mbnum = mbnum;
312 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number */
317 getMotionCompensatedMB(video, ind_x, ind_y, offset);
326 video->sliceNo[mbnum] = slice_counter; /* Update MB slice number*/
327 video->QP_prev = currVop->quantizer; /* store QP */
329 status = EncodeVideoPacketHeader(video, mbnum, video->QP_prev, 0);
331 video->header_bits += numHeaderBits; /* Header Bits */
333 video->usePrevQP = 0;
341 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
344 M4VENC_MEMCPY(outputMB[k], video->outputMB->block[k], sizeof(Short) << 6);
363 CBP = video->headerInfo.CBP[mbnum];
367 MBVlcEncode(video, ncoefblck, (void*)BlockCodeCoeff);
376 /* Assemble_Packet(video) */
384 if (video->currVop->predictionType == I_VOP)
387 video->header_bits += 19;
392 video->header_bits += 17;
398 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte align Packet */
406 video->end_of_buf = 1;
415 if (mbnum < nTotalMB || video->end_of_buf) /* return here */
417 video->mbnum = mbnum;
418 video->sliceNo[mbnum] = slice_counter;
419 video->offset = offset;
421 video->headerInfo.CBP[mbnum] = CBP;
425 M4VENC_MEMCPY(video->outputMB->block[k], outputMB[k], sizeof(Short) << 6);
442 if (video->currVop->predictionType == I_VOP)
445 video->header_bits += 19;
450 video->header_bits += 17;
456 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte align Packet */
464 video->end_of_buf = 1;
472 video->mbnum = mbnum;
474 video->sliceNo[mbnum] = slice_counter;
475 video->offset = offset;