Lines Matching defs:Length
108 /* Function : BitstreamPutBits(BitstreamEncVideo *stream, Int Length,
111 /* Purpose : put Length (1-16) number of bits to the stream */
115 /* Length bits length (should belong to 1 to 16) */
120 PV_STATUS BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value)
124 if (stream->bitLeft > Length)
126 stream->word <<= Length;
127 stream->word |= Value; /* assuming Value is not larger than Length */
128 stream->bitLeft -= Length;
135 Length -= stream->bitLeft;
136 stream->word |= ((UInt)Value >> Length);
144 /* we got new Length and Value */
147 stream->bitLeft -= Length;
148 /* assuming that Length is no more than 16 bits */
157 /* Function : BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, UInt32 Value) */
159 /* Purpose : Use this function to put Length (17-32) number of bits to */
163 /* Length bits length (should belong to 17 to 32) */
168 PV_STATUS BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value)
175 topLength = Length - 16;
192 status = BitstreamPutBits(stream, Length, (UInt)Value);