Lines Matching refs:stream

702     video->bitstream1 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 1*/
704 video->bitstream2 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 2*/
706 video->bitstream3 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 3*/
876 pVol->stream = (BitstreamEncVideo *)M4VENC_MALLOC(sizeof(BitstreamEncVideo)); /* allocate BitstreamEncVideo Instance */
877 if (pVol->stream == NULL) goto CLEAN_UP;
1230 if (video->vol[idx]->stream)
1231 M4VENC_FREE(video->vol[idx]->stream);
1331 if (currVol->stream->bitstreamBuffer != video->overrunBuffer) // not used
1416 *size = video->vol[0]->stream->byteCount;
1429 /* Initialize Vol stream structure with application bitstream */
1433 currVol->stream->bitstreamBuffer = bstream;
1434 currVol->stream->bufferSize = *size;
1435 BitstreamEncReset(currVol->stream);
1436 BitstreamSetOverrunBuffer(currVol->stream, video->overrunBuffer, video->oBSize, video);
1605 *size = currVol->stream->byteCount;
1703 /* Initialize Vol stream structure with application bitstream */
1707 currVol->stream->bufferSize = 0;
1708 BitstreamEncReset(currVol->stream);
1852 /* Initialize Vol stream structure with application bitstream */
1856 currVol->stream->bitstreamBuffer = bstream;
1857 pre_size = currVol->stream->byteCount;
1858 currVol->stream->bufferSize = pre_size + (*size);
1952 *size = currVol->stream->byteCount - pre_size;
2409 BitstreamEncVideo *stream = video->bitstream1;
2424 status = BitstreamPutGT16Bits(stream, 32, SESSION_START_CODE);
2426 status = BitstreamPutBits(stream, 8, video->encParams->ProfileLevel[video->currLayer]);
2432 status = BitstreamPutGT16Bits(stream, 32, VISUAL_OBJECT_START_CODE);
2433 status = BitstreamPut1Bits(stream, 0x00); /* visual object identifier */
2434 status = BitstreamPutBits(stream, 4, 0x01); /* visual object Type == "video ID" */
2435 status = BitstreamPut1Bits(stream, 0x00); /* no video signal type */
2438 BitstreamMpeg4ByteAlignStuffing(stream);
2441 status = BitstreamPutGT16Bits(stream, 27, VO_START_CODE);/* byte align: should be 2 bits */
2442 status = BitstreamPutBits(stream, 5, 0x00);/* Video ID = 0 */
2451 status = BitstreamPutGT16Bits(stream, VOL_START_CODE_LENGTH, VOL_START_CODE);
2452 status = BitstreamPutBits(stream, 4, currVol->volID);/* video_object_layer_id */
2453 status = BitstreamPut1Bits(stream, 0x00);/* Random Access = 0 */
2456 status = BitstreamPutBits(stream, 8, 0x01);/* Video Object Type Indication = 1 ... Simple Object Type */
2458 status = BitstreamPutBits(stream, 8, 0x02);/* Video Object Type Indication = 2 ... Simple Scalable Object Type */
2460 status = BitstreamPut1Bits(stream, 0x00);/* is_object_layer_identifer = 0 */
2463 status = BitstreamPutBits(stream, 4, 0x01); /* aspect_ratio_info = 1 ... 1:1(Square) */
2464 status = BitstreamPut1Bits(stream, 0x00);/* vol_control_parameters = 0 */
2465 status = BitstreamPutBits(stream, 2, 0x00);/* video_object_layer_shape = 00 ... rectangular */
2466 status = BitstreamPut1Bits(stream, 0x01);/* marker bit */
2467 status = BitstreamPutGT8Bits(stream, 16, currVol->timeIncrementResolution);/* vop_time_increment_resolution */
2468 status = BitstreamPut1Bits(stream, 0x01);/* marker bit */
2469 status = BitstreamPut1Bits(stream, currVol->fixedVopRate);/* fixed_vop_rate = 0 */
2472 status = BitstreamPut1Bits(stream, 0x01);/* marker bit */
2473 status = BitstreamPutGT8Bits(stream, 13, currVol->width);/* video_object_layer_width */
2474 status = BitstreamPut1Bits(stream, 0x01);/* marker bit */
2475 status = BitstreamPutGT8Bits(stream, 13, currVol->height);/* video_object_layer_height */
2476 status = BitstreamPut1Bits(stream, 0x01);/*marker bit */
2478 status = BitstreamPut1Bits(stream, 0x00);/*interlaced = 0 */
2479 status = BitstreamPut1Bits(stream, 0x01);/* obmc_disable = 1 */
2480 status = BitstreamPut1Bits(stream, 0x00);/* sprite_enable = 0 */
2481 status = BitstreamPut1Bits(stream, 0x00);/* not_8_bit = 0 */
2482 status = BitstreamPut1Bits(stream, currVol->quantType);/* quant_type */
2486 status = BitstreamPut1Bits(stream, currVol->loadIntraQuantMat); /* Intra quant matrix */
2495 BitstreamPutBits(stream, 8, currVol->iqmat[*(zigzag_i+i)]);
2497 BitstreamPutBits(stream, 8, 0);
2505 status = BitstreamPut1Bits(stream, currVol->loadNonIntraQuantMat); /* Non-Intra quant matrix */
2514 BitstreamPutBits(stream, 8, currVol->niqmat[*(zigzag_i+i)]);
2516 BitstreamPutBits(stream, 8, 0);
2525 status = BitstreamPut1Bits(stream, 0x01); /* complexity_estimation_disable = 1 */
2526 status = BitstreamPut1Bits(stream, currVol->ResyncMarkerDisable);/* Resync_marker_disable */
2527 status = BitstreamPut1Bits(stream, currVol->dataPartitioning);/* Data partitioned */
2530 status = BitstreamPut1Bits(stream, currVol->useReverseVLC); /* Reversible_vlc */
2536 status = BitstreamPut1Bits(stream, currVol->scalability);/* Scalability = 1 */
2537 status = BitstreamPut1Bits(stream, currVol->scalType);/* hierarchy _type ... Spatial= 0 and Temporal = 1 */
2538 status = BitstreamPutBits(stream, 4, currVol->refVolID);/* ref_layer_id */
2539 status = BitstreamPut1Bits(stream, currVol->refSampDir);/* ref_layer_sampling_direc*/
2540 status = BitstreamPutBits(stream, 5, currVol->horSamp_n);/*hor_sampling_factor_n*/
2541 status = BitstreamPutBits(stream, 5, currVol->horSamp_m);/*hor_sampling_factor_m*/
2542 status = BitstreamPutBits(stream, 5, currVol->verSamp_n);/*vert_sampling_factor_n*/
2543 status = BitstreamPutBits(stream, 5, currVol->verSamp_m);/*vert_sampling_factor_m*/
2544 status = BitstreamPut1Bits(stream, currVol->enhancementType);/* enhancement_type*/
2547 status = BitstreamPut1Bits(stream, currVol->scalability);/* Scalability = 0 */
2550 BitstreamMpeg4ByteAlignStuffing(stream); /* Byte align Headers for VOP */
2572 BitstreamEncVideo *stream = currVol->stream;
2575 status = BitstreamPutBits(stream, SESSION_END_CODE, 32);