GstCodecs.H266Dpb

Fields

None

Methods

add (picture)

bump (drain)

clear ()

delete_unused ()

free ()

get_max_num_pics ()

get_picture_by_poc (poc)

get_picture_by_poc_lsb (poc_lsb)

get_pictures_all ()

get_size ()

mark_all_non_output ()

mark_all_non_ref ()

needs_bump (max_num_reorder_pics, max_latency_increase, max_dec_pic_buffering)

num_ref_pictures ()

set_max_num_pics (max_num_pics)

Details

class GstCodecs.H266Dpb

The GstCodecs.H266Dpb represents the dpb for decoding.

New in version 1.26.

add(picture)
Parameters:

picture (GstCodecs.H266Picture) – a GstCodecs.H266Picture

Store the picture and perform increase pic_latency_cnt as defined in “C.5.2.3 Additional bumping” process

New in version 1.26.

bump(drain)
Parameters:

drain (bool) – whether draining or not

Returns:

a GstCodecs.H266Picture which is needed to be outputted

Return type:

GstCodecs.H266Picture or None

Perform bumping process as defined in C.5.2.4 “Bumping” process. If drain is True, self will remove a GstCodecs.H266Picture from internal array so that returned GstCodecs.H266Picture could hold the last reference of it.

New in version 1.26.

clear()

Clear all stored GstCodecs.H266Picture

New in version 1.26.

delete_unused()

Delete unneeded pictures from dpb as defined in “C.5.2.2 Output and removal of pictures from the DPB”.

New in version 1.26.

free()

Free the self

New in version 1.26.

get_max_num_pics()
Returns:

the number of maximum pictures

Return type:

int

New in version 1.26.

get_picture_by_poc(poc)
Parameters:

poc (int) – a picture order count

Returns:

a GstCodecs.H266Picture

Return type:

GstCodecs.H266Picture or None

Find a picture which has matching poc

New in version 1.26.

get_picture_by_poc_lsb(poc_lsb)
Parameters:

poc_lsb (int) – a picture order count lsb

Returns:

a GstCodecs.H266Picture

Return type:

GstCodecs.H266Picture or None

Find a picture which has matching poc_lsb

New in version 1.26.

get_pictures_all()
Returns:

a GLib.Array of GstCodecs.H266Picture stored in self

Return type:

[GstCodecs.H266Picture]

New in version 1.26.

get_size()
Returns:

the length of stored dpb array

Return type:

int

New in version 1.26.

mark_all_non_output()

Mark all pictures are no needed for output

New in version 1.26.

mark_all_non_ref()

Mark all pictures are not referenced

New in version 1.26.

needs_bump(max_num_reorder_pics, max_latency_increase, max_dec_pic_buffering)
Parameters:
  • max_num_reorder_pics (int) – dpb_max_num_reorder_pics[HighestTid]

  • max_latency_increase (int) – MaxLatencyPictures[HighestTid]

  • max_dec_pic_buffering (int) – dpb_max_dec_pic_buffering_minus1[HighestTid] + 1 or zero if this shouldn’t be used for bumping decision.

Returns:

True if bumping is required

Return type:

bool

New in version 1.26.

num_ref_pictures()
Returns:

The number of referenced pictures in dpb.

Return type:

int

New in version 1.26.

set_max_num_pics(max_num_pics)
Parameters:

max_num_pics (int) – the maximum number of picture

Set the number of maximum allowed pictures to store

New in version 1.26.