GstPutbits Write bits into a memory buffer The putbits library can be used to write out a bit stream. @outbfr: @outbase: @temp: @outcnt: @bytecnt: @len: @newlen: Initialize the bit writer @pb: the putbits structure Prepare the putbits structure for writing len bytes. A new buffer with the given length will be allocated which you must free. @pb: the putbits structure @len: the bytes that are going to be written Prepare the putbits structure for writing len bytes. The bits will be written in the supplied buffer. @pb: the putbits structure @buffer: the buffer to write the bits in @len: the length of the buffer Align the bits to the next byte. The buffer will be filled with zeroes. @pb: the putbits structure Get the number of bits written to the buffer @pb: the putbits structure @Returns: the number of bits written Put one bit in the buffer @gb: the putbits structure @val: the value of the bit to put in the buffer Put 2 bits into the buffer @gb: the putbits structure @val: the value of the bits to put in the buffer @gb: the putbits structure @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: @gb: @val: Put a variable number of bits into the buffer @gb: the putbits structure @val: the value of the bits to put into the buffer @n: the number of bits to put into the buffer