GstCodecs.H264Dpb¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GstCodecs.H264Dpb¶
- add(picture)¶
- Parameters:
picture (
GstCodecs.H264Picture) – aGstCodecs.H264Picture
Store the picture
- bump(drain)¶
- Parameters:
drain (
bool) – whether draining or not- Returns:
a
GstCodecs.H264Picturewhich is needed to be outputted- Return type:
Perform bumping process as defined in C.4.5.3 “Bumping” process. If drain is
True, self will remove aGstCodecs.H264Picturefrom internal array so that returnedGstCodecs.H264Picturecould hold the last reference of itNew in version 1.20.
- clear()¶
Clear all stored
GstCodecs.H264Picture
- delete_unused()¶
Delete already outputted and not referenced all pictures from dpb
- free()¶
Free the self
- get_interlaced()¶
-
New in version 1.20.
- get_long_ref_by_long_term_pic_num(long_term_pic_num)¶
- Parameters:
long_term_pic_num (
int) – a long term picture number- Returns:
- Return type:
Find a long term reference picture which has matching long term picture number
New in version 1.20.
- get_lowest_frame_num_short_ref()¶
- Returns:
- Return type:
Find a short term reference picture which has the lowest frame_num_wrap
- get_max_num_reorder_frames()¶
- Returns:
Maximum number of reorder frames
- Return type:
New in version 1.22.2.
- get_picture(system_frame_number)¶
- Parameters:
system_frame_number (
int) –- Returns:
the picture identified with the specified system_frame_number, or
Noneif DPB does not contain aGstCodecs.H264Picturecorresponding to the system_frame_number- Return type:
New in version 1.18.
- get_pictures_all()¶
- Returns:
a
GLib.ArrayofGstCodecs.H264Picturestored in self- Return type:
- get_pictures_long_term_ref(include_second_field)¶
- Parameters:
include_second_field (
bool) –Trueif the second field pictures need to be included- Returns:
an array of
GstCodecs.H264Picturepointer- Return type:
out: [
GstCodecs.H264Picture]
Retrieve all long-term reference pictures from self. The picture will be appended to the array.
New in version 1.20.
- get_pictures_short_term_ref(include_non_existing, include_second_field)¶
- Parameters:
- Returns:
an array of
GstCodecs.H264Picturepointers- Return type:
out: [
GstCodecs.H264Picture]
Retrieve all short-term reference pictures from self. The picture will be appended to the array.
New in version 1.20.
- get_short_ref_by_pic_num(pic_num)¶
- Parameters:
pic_num (
int) – a picture number- Returns:
- Return type:
Find a short term reference picture which has matching picture number
- has_empty_frame_buffer()¶
-
New in version 1.20.
- mark_all_non_ref()¶
Mark all pictures are not referenced
- needs_bump(to_insert, latency_mode)¶
- Parameters:
to_insert (
GstCodecs.H264Picture) – the currentGstCodecs.H264Pictureto insert to dpb.latency_mode (
GstCodecs.H264DpbBumpMode) – The requiredGstCodecs.H264DpbBumpModefor bumping.
- Returns:
Trueif bumping is required- Return type:
New in version 1.20.
- set_last_output(picture)¶
- Parameters:
picture (
GstCodecs.H264Picture) – aGstCodecs.H264Pictureof the last output.
Notify the DPB that picture is output directly without storing in the DPB.
New in version 1.20.