# GstH265BitWriter

## Functions

### gst_h265_bit_writer_aud

    GstH265BitWriterResult
    gst_h265_bit_writer_aud (guint8 pic_type,
                             gboolean start_code,
                             guint8 * data,
                             guint * size)

Generating the according h265 bit stream of an aud.

Parameters:

`pic_type` –

indicate the possible slice types list just as the H265 spec Table 7-2 defines

`start_code` –

whether adding the nal start code

`data` ( [out]) –

the bit stream generated by the aud

`size` ( [inout]) –

the size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_aud

    function GstCodecParsers.prototype.h265_bit_writer_aud(pic_type: Number, start_code: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_aud'
    }

Generating the according h265 bit stream of an aud.

Parameters:

`pic_type` (Number) –

indicate the possible slice types list just as the H265 spec Table 7-2 defines

`start_code` (Number) –

whether adding the nal start code

`size` (Number) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_aud

    def GstCodecParsers.h265_bit_writer_aud (pic_type, start_code, size):
        #python wrapper for 'gst_h265_bit_writer_aud'

Generating the according h265 bit stream of an aud.

Parameters:

`pic_type` (int) –

indicate the possible slice types list just as the H265 spec Table 7-2 defines

`start_code` (bool) –

whether adding the nal start code

`size` (int) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_convert_to_nal

    GstH265BitWriterResult
    gst_h265_bit_writer_convert_to_nal (guint nal_prefix_size,
                                        gboolean packetized,
                                        gboolean has_startcode,
                                        gboolean add_trailings,
                                        const guint8 * raw_data,
                                        gsize raw_size,
                                        guint8 * nal_data,
                                        guint * nal_size)

Converting a bit stream into a real nal packet. If the bit stream already has a start code, it will be replaced by the new one specified by the nal_prefix_size and packetized. It is assured that the output aligns to the byte and the all the emulations are inserted.

Parameters:

`nal_prefix_size` –

the size in bytes for the prefix of a nal, may be 2, 3 or 4

`packetized` –

whether to write the bit stream in packetized format, which does not have the start code but has a nal_prefix_size bytes' size prepending to the real nal data

`has_startcode` –

whether the input already has a start code

`add_trailings` –

whether to add rbsp trailing bits to make the output aligned to byte

`raw_data` –

the input bit stream

`raw_size` –

the size in bits of the input bit stream

`nal_data` ( [out]) –

the output bit stream converted to a real nal

`nal_size` ( [inout]) –

the size in bytes of the output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_convert_to_nal

    function GstCodecParsers.prototype.h265_bit_writer_convert_to_nal(nal_prefix_size: Number, packetized: Number, has_startcode: Number, add_trailings: Number, raw_data: Number, raw_size: Number, nal_size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_convert_to_nal'
    }

Converting a bit stream into a real nal packet. If the bit stream already has a start code, it will be replaced by the new one specified by the nal_prefix_size and packetized. It is assured that the output aligns to the byte and the all the emulations are inserted.

Parameters:

`nal_prefix_size` (Number) –

the size in bytes for the prefix of a nal, may be 2, 3 or 4

`packetized` (Number) –

whether to write the bit stream in packetized format, which does not have the start code but has a nal_prefix_size bytes' size prepending to the real nal data

`has_startcode` (Number) –

whether the input already has a start code

`add_trailings` (Number) –

whether to add rbsp trailing bits to make the output aligned to byte

`raw_data` (Number) –

the input bit stream

`raw_size` (Number) –

the size in bits of the input bit stream

`nal_size` (Number) –

the size in bytes of the output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`nal_data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`nal_size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_convert_to_nal

    def GstCodecParsers.h265_bit_writer_convert_to_nal (nal_prefix_size, packetized, has_startcode, add_trailings, raw_data, raw_size, nal_size):
        #python wrapper for 'gst_h265_bit_writer_convert_to_nal'

Converting a bit stream into a real nal packet. If the bit stream already has a start code, it will be replaced by the new one specified by the nal_prefix_size and packetized. It is assured that the output aligns to the byte and the all the emulations are inserted.

Parameters:

`nal_prefix_size` (int) –

the size in bytes for the prefix of a nal, may be 2, 3 or 4

`packetized` (bool) –

whether to write the bit stream in packetized format, which does not have the start code but has a nal_prefix_size bytes' size prepending to the real nal data

`has_startcode` (bool) –

whether the input already has a start code

`add_trailings` (bool) –

whether to add rbsp trailing bits to make the output aligned to byte

`raw_data` (int) –

the input bit stream

`raw_size` (int) –

the size in bits of the input bit stream

`nal_size` (int) –

the size in bytes of the output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`nal_data` (int ) –

a GstCodecParsers.H265BitWriterResult

`nal_size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_filler

    GstH265BitWriterResult
    gst_h265_bit_writer_filler (gboolean start_code,
                                guint num,
                                guint8 * data,
                                guint * size)

Generating the according h265 bit stream of a filler NAL unit with num filler bytes (0xFF).

Parameters:

`start_code` –

whether adding the nal start code

`num` –

number of filler bytes to add

`data` ( [out]) –

bit stream storage

`size` ( [inout]) –

size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_filler

    function GstCodecParsers.prototype.h265_bit_writer_filler(start_code: Number, num: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_filler'
    }

Generating the according h265 bit stream of a filler NAL unit with num filler bytes (0xFF).

Parameters:

`start_code` (Number) –

whether adding the nal start code

`num` (Number) –

number of filler bytes to add

`size` (Number) –

size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_filler

    def GstCodecParsers.h265_bit_writer_filler (start_code, num, size):
        #python wrapper for 'gst_h265_bit_writer_filler'

Generating the according h265 bit stream of a filler NAL unit with num filler bytes (0xFF).

Parameters:

`start_code` (bool) –

whether adding the nal start code

`num` (int) –

number of filler bytes to add

`size` (int) –

size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_pps

    GstH265BitWriterResult
    gst_h265_bit_writer_pps (const GstH265PPS * pps,
                             gboolean start_code,
                             guint8 * data,
                             guint * size)

Generating the according h265 bit stream by providing the pps.

Parameters:

`pps` –

the pps of GstH265PPS to write

`start_code` –

whether adding the nal start code

`data` ( [out]) –

the bit stream generated by the pps

`size` ( [inout]) –

the size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_pps

    function GstCodecParsers.prototype.h265_bit_writer_pps(pps: GstCodecParsers.H265PPS, start_code: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_pps'
    }

Generating the according h265 bit stream by providing the pps.

Parameters:

`pps` (GstCodecParsers.H265PPS) –

the pps of GstCodecParsers.H265PPS to write

`start_code` (Number) –

whether adding the nal start code

`size` (Number) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_pps

    def GstCodecParsers.h265_bit_writer_pps (pps, start_code, size):
        #python wrapper for 'gst_h265_bit_writer_pps'

Generating the according h265 bit stream by providing the pps.

Parameters:

`pps` (GstCodecParsers.H265PPS) –

the pps of GstCodecParsers.H265PPS to write

`start_code` (bool) –

whether adding the nal start code

`size` (int) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_sei

    GstH265BitWriterResult
    gst_h265_bit_writer_sei (GArray * sei_messages,
                             GstH265NalUnitType nal_type,
                             gboolean start_code,
                             guint8 * data,
                             guint * size)

Generating the according h265 bit stream by providing sei messages.

Parameters:

`sei_messages` ( [element-type GstH265SEIMessage]) –

An GArray of GstH265SEIMessage to write

`nal_type` –
No description available
`start_code` –

whether adding the nal start code

`data` ( [out]) –

the bit stream generated by the sei messages

`size` ( [inout]) –

the size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_sei

    function GstCodecParsers.prototype.h265_bit_writer_sei(sei_messages: [ GstCodecParsers.H265SEIMessage ], nal_type: GstCodecParsers.H265NalUnitType, start_code: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_sei'
    }

Generating the according h265 bit stream by providing sei messages.

Parameters:

`sei_messages` ([ GstCodecParsers.H265SEIMessage ]) –

An GArray (not introspectable) of GstCodecParsers.H265SEIMessage to write

`nal_type` (GstCodecParsers.H265NalUnitType) –
No description available
`start_code` (Number) –

whether adding the nal start code

`size` (Number) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_sei

    def GstCodecParsers.h265_bit_writer_sei (sei_messages, nal_type, start_code, size):
        #python wrapper for 'gst_h265_bit_writer_sei'

Generating the according h265 bit stream by providing sei messages.

Parameters:

`sei_messages` ([ GstCodecParsers.H265SEIMessage ]) –

An GArray (not introspectable) of GstCodecParsers.H265SEIMessage to write

`nal_type` (GstCodecParsers.H265NalUnitType) –
No description available
`start_code` (bool) –

whether adding the nal start code

`size` (int) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_slice_hdr

    GstH265BitWriterResult
    gst_h265_bit_writer_slice_hdr (const GstH265SliceHdr * slice,
                                   gboolean start_code,
                                   guint32 nal_type,
                                   guint8 * data,
                                   guint * size)

Generating the according h265 bit stream by providing the slice header.

Parameters:

`slice` –

the slice header of GstH265SliceHdr to write

`start_code` –

whether adding the nal start code

`nal_type` –

the slice's nal type of GstH265NalUnitType

`data` ( [out]) –

the bit stream generated by the slice header

`size` ( [inout]) –

the size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_slice_hdr

    function GstCodecParsers.prototype.h265_bit_writer_slice_hdr(slice: GstCodecParsers.H265SliceHdr, start_code: Number, nal_type: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_slice_hdr'
    }

Generating the according h265 bit stream by providing the slice header.

Parameters:

`slice` (GstCodecParsers.H265SliceHdr) –

the slice header of GstCodecParsers.H265SliceHdr to write

`start_code` (Number) –

whether adding the nal start code

`nal_type` (Number) –

the slice's nal type of GstCodecParsers.H265NalUnitType

`size` (Number) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_slice_hdr

    def GstCodecParsers.h265_bit_writer_slice_hdr (slice, start_code, nal_type, size):
        #python wrapper for 'gst_h265_bit_writer_slice_hdr'

Generating the according h265 bit stream by providing the slice header.

Parameters:

`slice` (GstCodecParsers.H265SliceHdr) –

the slice header of GstCodecParsers.H265SliceHdr to write

`start_code` (bool) –

whether adding the nal start code

`nal_type` (int) –

the slice's nal type of GstCodecParsers.H265NalUnitType

`size` (int) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_sps

    GstH265BitWriterResult
    gst_h265_bit_writer_sps (const GstH265SPS * sps,
                             gboolean start_code,
                             guint8 * data,
                             guint * size)

Generating the according h265 bit stream by providing the sps.

Parameters:

`sps` –

the sps of GstH265SPS to write

`start_code` –

whether adding the nal start code

`data` ( [out]) –

the bit stream generated by the sps

`size` ( [inout]) –

the size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_sps

    function GstCodecParsers.prototype.h265_bit_writer_sps(sps: GstCodecParsers.H265SPS, start_code: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_sps'
    }

Generating the according h265 bit stream by providing the sps.

Parameters:

`sps` (GstCodecParsers.H265SPS) –

the sps of GstCodecParsers.H265SPS to write

`start_code` (Number) –

whether adding the nal start code

`size` (Number) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_sps

    def GstCodecParsers.h265_bit_writer_sps (sps, start_code, size):
        #python wrapper for 'gst_h265_bit_writer_sps'

Generating the according h265 bit stream by providing the sps.

Parameters:

`sps` (GstCodecParsers.H265SPS) –

the sps of GstCodecParsers.H265SPS to write

`start_code` (bool) –

whether adding the nal start code

`size` (int) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### gst_h265_bit_writer_vps

    GstH265BitWriterResult
    gst_h265_bit_writer_vps (const GstH265VPS * vps,
                             gboolean start_code,
                             guint8 * data,
                             guint * size)

Generating the according h265 bit stream by providing the vps.

Parameters:

`vps` –

the vps of GstH265VPS to write

`start_code` –

whether adding the nal start code

`data` ( [out]) –

the bit stream generated by the sps

`size` ( [inout]) –

the size in bytes of the input and output

Returns –

a GstH265BitWriterResult

Since : 1.30

### GstCodecParsers.prototype.h265_bit_writer_vps

    function GstCodecParsers.prototype.h265_bit_writer_vps(vps: GstCodecParsers.H265VPS, start_code: Number, size: Number): {
        // javascript wrapper for 'gst_h265_bit_writer_vps'
    }

Generating the according h265 bit stream by providing the vps.

Parameters:

`vps` (GstCodecParsers.H265VPS) –

the vps of GstCodecParsers.H265VPS to write

`start_code` (Number) –

whether adding the nal start code

`size` (Number) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (Number ) –

a GstCodecParsers.H265BitWriterResult

`size` (Number ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

### GstCodecParsers.h265_bit_writer_vps

    def GstCodecParsers.h265_bit_writer_vps (vps, start_code, size):
        #python wrapper for 'gst_h265_bit_writer_vps'

Generating the according h265 bit stream by providing the vps.

Parameters:

`vps` (GstCodecParsers.H265VPS) –

the vps of GstCodecParsers.H265VPS to write

`start_code` (bool) –

whether adding the nal start code

`size` (int) –

the size in bytes of the input and output

Returns a tuple made of:

(GstCodecParsers.H265BitWriterResult ) –

a GstCodecParsers.H265BitWriterResult

`data` (int ) –

a GstCodecParsers.H265BitWriterResult

`size` (int ) –

a GstCodecParsers.H265BitWriterResult

Since : 1.30

## Enumerations

### GstH265BitWriterResult

The result of writing H265 data into bit stream.

##### Members

`GST_H265_BIT_WRITER_OK` (0) –

The writing succeeded

`GST_H265_BIT_WRITER_INVALID_DATA` (1) –

The input data to write is invalid

`GST_H265_BIT_WRITER_NO_MORE_SPACE` (2) –

The output does not have enough size

`GST_H265_BIT_WRITER_ERROR` (3) –

An general error occurred when writing

Since : 1.30

### GstCodecParsers.H265BitWriterResult

The result of writing H265 data into bit stream.

##### Members

`GstCodecParsers.H265BitWriterResult.OK` (0) –

The writing succeeded

`GstCodecParsers.H265BitWriterResult.INVALID_DATA` (1) –

The input data to write is invalid

`GstCodecParsers.H265BitWriterResult.NO_MORE_SPACE` (2) –

The output does not have enough size

`GstCodecParsers.H265BitWriterResult.ERROR` (3) –

An general error occurred when writing

Since : 1.30

### GstCodecParsers.H265BitWriterResult

The result of writing H265 data into bit stream.

##### Members

`GstCodecParsers.H265BitWriterResult.OK` (0) –

The writing succeeded

`GstCodecParsers.H265BitWriterResult.INVALID_DATA` (1) –

The input data to write is invalid

`GstCodecParsers.H265BitWriterResult.NO_MORE_SPACE` (2) –

The output does not have enough size

`GstCodecParsers.H265BitWriterResult.ERROR` (3) –

An general error occurred when writing

Since : 1.30

The results of the search are