Lines Matching defs:video

28 PV_STATUS EncodeVop_BXRC(VideoEncData *video);
29 PV_STATUS EncodeVop_NoME(VideoEncData *video);
39 PV_STATUS EncodeVop(VideoEncData *video)
43 Int currLayer = video->currLayer;
44 Vol *currVol = video->vol[currLayer];
45 Vop *currVop = video->currVop;
46 // BitstreamEncVideo *stream=video->bitstream1;
47 UChar *Mode = video->headerInfo.Mode;
48 rateControl **rc = video->rc;
75 MotionEstimation(video); /* do ME for the whole frame */
81 status = RC_VopQPSetting(video, rc);
88 if (video->slice_coding) /* end here */
91 video->totalSAD = 0;
92 video->mbnum = 0;
93 video->sliceNo[0] = 0;
94 video->numIntra = 0;
95 video->offset = 0;
96 video->end_of_buf = 0;
97 video->hp_guess = -1;
101 status = EncodeVop_NoME(video);
108 RC_VopUpdateStat(video, rc[currLayer]);
124 PV_STATUS EncodeVop_NoME(VideoEncData *video)
126 Vop *currVop = video->currVop;
127 Vol *currVol = video->vol[video->currLayer];
128 BitstreamEncVideo *stream = video->bitstream1;
137 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
139 status = EncodeFrameCombinedMode(video);
151 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
159 status = EncodeFrameDataPartMode(video); /* Encode Data Partitioning Mode VOP */
163 status = EncodeFrameCombinedMode(video); /* Encode Combined Mode VOP */
167 status = EncodeFrameCombinedMode(video); /* Encode Combined Mode VOP */
192 PV_STATUS EncodeSlice(VideoEncData *video)
194 Vop *currVop = video->currVop;
195 Int currLayer = video->currLayer;
196 Vol *currVol = video->vol[currLayer];
197 BitstreamEncVideo *stream = video->bitstream1; /* different from frame-based */
200 rateControl **rc = video->rc;
205 if (video->mbnum == 0)
209 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
212 status = EncodeSliceCombinedMode(video);
219 if (video->mbnum == 0)
226 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
235 status = EncodeSliceDataPartMode(video); /* Encode Data Partitioning Mode VOP */
239 status = EncodeSliceCombinedMode(video); /* Encode Combined Mode VOP */
243 status = EncodeSliceCombinedMode(video); /* Encode Combined Mode VOP */
252 if (video->mbnum >= currVol->nTotalMB && status != PV_END_OF_BUF) /* end of Vop */
259 status = RC_VopUpdateStat(video, rc[currLayer]);
309 PV_STATUS EncodeVopNotCoded(VideoEncData *video, UChar *bstream, Int *size, ULong modTime)
312 Vol *currVol = video->vol[0];
313 Vop *currVop = video->currVop;
325 frameTick = (Int)(((double)(modTime - video->modTimeRef) * currVol->timeIncrementResolution + 500) / 1000);
326 timeInc = frameTick - video->refTick[0];
504 PV_STATUS EncodeVideoPacketHeader(VideoEncData *video, int MB_number,
509 Vop *currVop = video->currVop;
510 Vol *currVol = video->vol[video->currLayer];
522 bs = video->bitstream1;
573 BitstreamPrependPacket(video->bitstream1, bs);