mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vpxdenc: Add a GstVideoCodecState to configure_encoder virtual
This will be needed to configure the VP9 specific colorimetry, which is currently configured for VP8 casing warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/975>
This commit is contained in:
parent
04fdfc4bf1
commit
3e97236844
3 changed files with 3 additions and 3 deletions
|
@ -311,7 +311,7 @@ gst_vp9_enc_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
}
|
||||
|
||||
static gboolean
|
||||
gst_vp9_enc_configure_encoder (GstVPXEnc * encoder)
|
||||
gst_vp9_enc_configure_encoder (GstVPXEnc * encoder, GstVideoCodecState * state)
|
||||
{
|
||||
GstVP9Enc *vp9enc = GST_VP9_ENC (encoder);
|
||||
vpx_codec_err_t status;
|
||||
|
|
|
@ -1977,7 +1977,7 @@ gst_vpx_enc_set_format (GstVideoEncoder * video_encoder,
|
|||
}
|
||||
|
||||
if (vpx_enc_class->configure_encoder
|
||||
&& !vpx_enc_class->configure_encoder (encoder)) {
|
||||
&& !vpx_enc_class->configure_encoder (encoder, state)) {
|
||||
ret = FALSE;
|
||||
g_mutex_unlock (&encoder->encoder_lock);
|
||||
goto done;
|
||||
|
|
|
@ -127,7 +127,7 @@ struct _GstVPXEncClass
|
|||
/*enabled scaling*/
|
||||
gboolean (*enable_scaling) (GstVPXEnc *enc);
|
||||
/*called from set_format with lock taken*/
|
||||
gboolean (*configure_encoder) (GstVPXEnc *enc);
|
||||
gboolean (*configure_encoder) (GstVPXEnc *enc, GstVideoCodecState *state);
|
||||
/*set image format info*/
|
||||
void (*set_image_format) (GstVPXEnc *enc, vpx_image_t *image);
|
||||
/*get new simple caps*/
|
||||
|
|
Loading…
Reference in a new issue