Lines Matching refs:stream

24 PV_STATUS EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop);
25 PV_STATUS EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop);
26 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds);
46 // BitstreamEncVideo *stream=video->bitstream1;
128 BitstreamEncVideo *stream = video->bitstream1;
135 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */
137 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
147 status = EncodeGOVHeader(stream, time); /* Encode GOV Header */
149 status = EncodeVOPHeader(stream, currVol, currVop); /* Encode VOP Header */
151 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
197 BitstreamEncVideo *stream = video->bitstream1; /* different from frame-based */
207 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */
209 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
222 status = EncodeGOVHeader(stream, time); /* Encode GOV Header */
224 status = EncodeVOPHeader(stream, currVol, currVop); /* Encode VOP Header */
226 video->header_bits = BitstreamGetPos(stream); /* Header Bits */
276 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds)
286 status = BitstreamPutGT16Bits(stream, 32, GROUP_START_CODE);
289 status = BitstreamPutBits(stream, 5, tmpvar); /* Hours*/
292 status = BitstreamPutBits(stream, 6, tmpvar); /* Minutes*/
294 status = BitstreamPut1Bits(stream, 1); /* Marker*/
297 status = BitstreamPutBits(stream, 6, tmpvar); /* Seconds*/
299 status = BitstreamPut1Bits(stream, 1); /* closed_gov */
300 status = BitstreamPut1Bits(stream, 0); /* broken_link */
302 BitstreamMpeg4ByteAlignStuffing(stream); /* Byte align GOV Header */
314 BitstreamEncVideo *stream = currVol->stream;
318 stream->bitstreamBuffer = bstream;
319 stream->bufferSize = *size;
320 BitstreamEncReset(stream);
322 status = BitstreamPutGT16Bits(stream, 32, VOP_START_CODE); /*Start Code for VOP*/
323 status = BitstreamPutBits(stream, 2, P_VOP);/* VOP Coding Type*/
330 status = BitstreamPut1Bits(stream, 1);
333 status = BitstreamPut1Bits(stream, 0);
334 status = BitstreamPut1Bits(stream, 1); /* marker bit */
335 status = BitstreamPutBits(stream, currVol->nbitsTimeIncRes, timeInc); /* vop_time_increment */
336 status = BitstreamPut1Bits(stream, 1); /* marker bit */
337 status = BitstreamPut1Bits(stream, 0); /* vop_coded bit */
338 BitstreamMpeg4ByteAlignStuffing(stream);
353 PV_STATUS EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop)
363 status = BitstreamPutGT16Bits(stream, 32, VOP_START_CODE); /*Start Code for VOP*/
364 status = BitstreamPutBits(stream, 2, currVop->predictionType);/* VOP Coding Type*/
370 status = BitstreamPut1Bits(stream, 1);
373 status = BitstreamPut1Bits(stream, 0);
375 status = BitstreamPut1Bits(stream, 1); /* marker bit */
376 status = BitstreamPutBits(stream, currVol->nbitsTimeIncRes, currVop->timeInc); /* vop_time_increment */
377 status = BitstreamPut1Bits(stream, 1); /* marker bit */
378 status = BitstreamPut1Bits(stream, currVop->vopCoded); /* vop_coded bit */
382 BitstreamMpeg4ByteAlignStuffing(stream); /* Byte align VOP Header */
386 status = BitstreamPut1Bits(stream, currVop->roundingType); /* vop_rounding_type */
388 status = BitstreamPutBits(stream, 3, currVop->intraDCVlcThr); /* intra_dc_vlc_thr */
389 status = BitstreamPutBits(stream, 5, currVop->quantizer); /* vop_quant */
392 status = BitstreamPutBits(stream, 3, currVop->fcodeForward); /* vop_fcode_forward */
394 status = BitstreamPutBits(stream, 3, currVop->fcodeBackward);/* vop_fcode_backward */
398 status = BitstreamPutBits(stream, 2, currVop->refSelectCode); /* ref_select_code */
412 PV_STATUS EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop)
417 status = BitstreamPutGT16Bits(stream, 22, SHORT_VIDEO_START_MARKER); /* Short_video_start_marker */
418 status = BitstreamPutBits(stream, 8, currVop->temporalRef); /* temporal_reference */
419 status = BitstreamPut1Bits(stream, 1); /* marker bit */
420 status = BitstreamPut1Bits(stream, 0); /* zero bit */
421 status = BitstreamPut1Bits(stream, 0); /* split_screen_indicator=0*/
422 status = BitstreamPut1Bits(stream, 0); /* document_camera_indicator=0*/
423 status = BitstreamPut1Bits(stream, 0); /* full_picture_freeze_release=0*/
429 status = BitstreamPutBits(stream, 3, 1); /* source_format = 1 */
439 status = BitstreamPutBits(stream, 3, 2); /* source_format = 2 */
449 status = BitstreamPutBits(stream, 3, 3); /* source_format = 3 */
459 status = BitstreamPutBits(stream, 3, 4); /* source_format = 4 */
469 status = BitstreamPutBits(stream, 3, 5); /* source_format = 5 */
483 status = BitstreamPut1Bits(stream, currVop->predictionType); /* picture_coding type */
484 status = BitstreamPutBits(stream, 4, 0); /* four_reserved_zero_bits */
485 status = BitstreamPutBits(stream, 5, currVop->quantizer); /* vop_quant*/
486 status = BitstreamPut1Bits(stream, 0); /* zero_bit*/
487 status = BitstreamPut1Bits(stream, 0); /* pei=0 */