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.H264Picture
which 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.H264Picture
from internal array so that returnedGstCodecs.H264Picture
could 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
None
if DPB does not contain aGstCodecs.H264Picture
corresponding to the system_frame_number- Return type:
New in version 1.18.
- get_pictures_all()¶
- Returns:
a
GLib.Array
ofGstCodecs.H264Picture
stored in self- Return type:
- get_pictures_long_term_ref(include_second_field)¶
- Parameters:
include_second_field (
bool
) –True
if the second field pictures need to be included- Returns:
an array of
GstCodecs.H264Picture
pointer- 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.H264Picture
pointers- 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.H264Picture
to insert to dpb.latency_mode (
GstCodecs.H264DpbBumpMode
) – The requiredGstCodecs.H264DpbBumpMode
for bumping.
- Returns:
True
if bumping is required- Return type:
New in version 1.20.
- set_last_output(picture)¶
- Parameters:
picture (
GstCodecs.H264Picture
) – aGstCodecs.H264Picture
of the last output.
Notify the DPB that picture is output directly without storing in the DPB.
New in version 1.20.