GstCodecs.Vp9Decoder¶
- Subclasses:
 None
Methods¶
- Inherited:
 GstVideo.VideoDecoder (43), Gst.Element (82), Gst.Object (27), GObject.Object (37)
- Structs:
 
  | 
Virtual Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
input_state  | 
r  | 
||
padding  | 
[  | 
r  | 
|
parent  | 
r  | 
||
parse_compressed_headers  | 
r  | 
Class Details¶
- class GstCodecs.Vp9Decoder(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
The opaque
GstCodecs.Vp9Decoderdata structure.- set_non_keyframe_format_change_support(support)¶
 - Parameters:
 support (
bool) – whether subclass can support non-keyframe format change
Called to set non-keyframe format change awareness
New in version 1.20.
- do_decode_picture(picture, dpb) virtual¶
 - Parameters:
 picture (
GstCodecs.Vp9Picture) – aGstCodecs.Vp9Pictureto decoderdpb (
GstCodecs.Vp9Dpb) – aGstCodecs.Vp9Dpb
- Return type:
 
Called to notify decoding for subclass to decoder given picture with given dpb
New in version 1.18.
- do_duplicate_picture(frame, picture) virtual¶
 - Parameters:
 frame (
GstVideo.VideoCodecFrame) – aGstVideo.VideoCodecFramepicture (
GstCodecs.Vp9Picture) – aGstCodecs.Vp9Pictureto be duplicated
- Returns:
 a
GstCodecs.Vp9PictureorNoneif failed to duplicate picture.- Return type:
 
Optional. Called to duplicate picture when show_existing_frame flag is set in the parsed vp9 frame header. Returned
GstCodecs.Vp9Picturefrom this method should hold already decoded picture data corresponding to the picture, since the returnedGstCodecs.Vp9Picturefrom this method will be passed to the output_picture method immediately without additional decoding process.If this method is not implemented by subclass, baseclass will drop current
GstVideo.VideoCodecFramewithout additional processing for the current frame.New in version 1.18.
- do_end_picture(picture) virtual¶
 - Parameters:
 picture (
GstCodecs.Vp9Picture) – aGstCodecs.Vp9Picture- Return type:
 
Optional. Called per one
GstCodecs.Vp9Pictureto notify subclass to finish decoding process for theGstCodecs.Vp9PictureNew in version 1.18.
- do_get_preferred_output_delay(is_live) virtual¶
 - Parameters:
 is_live (
bool) – whether upstream is live or not- Returns:
 the number of perferred delayed output frame
- Return type:
 
Optional. Retrieve the preferred output delay from child classes. controls how many frames to delay when calling GstVp9DecoderClass::output_picture
New in version 1.20.
- do_new_picture(frame, picture) virtual¶
 - Parameters:
 frame (
GstVideo.VideoCodecFrame) – aGstVideo.VideoCodecFramepicture (
GstCodecs.Vp9Picture) – aGstCodecs.Vp9Picture
- Return type:
 
Optional. Called whenever new
GstCodecs.Vp9Pictureis created. Subclass can set implementation specific user data on theGstCodecs.Vp9Picturevia gst_vp9_picture_set_user_dataNew in version 1.18.
- do_new_sequence(frame_hdr, max_dpb_size) virtual¶
 - Parameters:
 frame_hdr (
GstCodecs.Vp9FrameHeader) – aGstCodecs.Vp9FrameHeadermax_dpb_size (
int) – the size of dpb including preferred output delay by subclass reported via get_preferred_output_delay method.
- Return type:
 
Notifies subclass of video sequence update such as resolution, bitdepth, profile.
New in version 1.18.
- do_output_picture(frame, picture) virtual¶
 - Parameters:
 frame (
GstVideo.VideoCodecFrame) – aGstVideo.VideoCodecFramepicture (
GstCodecs.Vp9Picture) – aGstCodecs.Vp9Picture
- Return type:
 
Called to notify picture is ready to be outputted.
New in version 1.18.
- do_start_picture(picture) virtual¶
 - Parameters:
 picture (
GstCodecs.Vp9Picture) – aGstCodecs.Vp9Picture- Return type:
 
Optional. Called to notify subclass to prepare decoding process for picture
New in version 1.18.