GstCodecs.H265Dpb

Fields

None

Methods

add (picture)

bump (drain)

clear ()

delete_unused ()

free ()

get_long_ref_by_poc (poc)

get_max_num_pics ()

get_picture (system_frame_number)

get_pictures_all ()

get_ref_by_poc (poc)

get_ref_by_poc_lsb (poc_lsb)

get_short_ref_by_poc (poc)

get_size ()

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.H265Dpb
add(picture)
Parameters:

picture (GstCodecs.H265Picture) – a GstCodecs.H265Picture

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

bump(drain)
Parameters:

drain (bool) – whether draining or not

Returns:

a GstCodecs.H265Picture which is needed to be outputted

Return type:

GstCodecs.H265Picture or None

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

New in version 1.20.

clear()

Clear all stored GstCodecs.H265Picture

delete_unused()

Delete not needed for output and not referenced all pictures from dpb

free()

Free the self

get_long_ref_by_poc(poc)
Parameters:

poc (int) – a picture order count

Returns:

a GstCodecs.H265Picture

Return type:

GstCodecs.H265Picture or None

Find a long term reference picture which has matching poc

get_max_num_pics()
Returns:

the number of maximum pictures

Return type:

int

get_picture(system_frame_number)
Parameters:

system_frame_number (int) –

Returns:

the picture identified with the specified system_frame_number, or None if DPB does not contain a GstCodecs.H265Picture corresponding to the system_frame_number

Return type:

GstCodecs.H265Picture or None

New in version 1.20.

get_pictures_all()
Returns:

a GLib.Array of GstCodecs.H265Picture stored in self

Return type:

[GstCodecs.H265Picture]

get_ref_by_poc(poc)
Parameters:

poc (int) – a picture order count

Returns:

a GstCodecs.H265Picture

Return type:

GstCodecs.H265Picture or None

Find a short or long term reference picture which has matching poc

get_ref_by_poc_lsb(poc_lsb)
Parameters:

poc_lsb (int) – a picture order count lsb

Returns:

a GstCodecs.H265Picture

Return type:

GstCodecs.H265Picture or None

Find a short or long term reference picture which has matching poc_lsb

get_short_ref_by_poc(poc)
Parameters:

poc (int) – a picture order count

Returns:

a GstCodecs.H265Picture

Return type:

GstCodecs.H265Picture or None

Find a short term reference picture which has matching poc

get_size()
Returns:

the length of stored dpb array

Return type:

int

mark_all_non_ref()

Mark all pictures are not referenced

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

  • max_latency_increase (int) – SpsMaxLatencyPictures[HighestTid]

  • max_dec_pic_buffering (int) – sps_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.20.

num_ref_pictures()
Returns:

The number of referenced pictures

Return type:

int

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