va: encoder: Fix the unit of bitrate in debug log message

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6483>
This commit is contained in:
He Junyan 2024-03-29 19:30:10 +08:00 committed by Víctor Manuel Jáquez Leal
parent 9c3bd3950e
commit e023546162
4 changed files with 8 additions and 12 deletions

View file

@ -2698,9 +2698,8 @@ _av1_ensure_rate_control (GstVaAV1Enc * self)
break;
}
GST_DEBUG_OBJECT (self, "Max bitrate: %u bits/sec, "
"Target bitrate: %u bits/sec", self->rc.max_bitrate,
self->rc.target_bitrate);
GST_DEBUG_OBJECT (self, "Max bitrate: %u kbps, target bitrate: %u kbps",
self->rc.max_bitrate, self->rc.target_bitrate);
if (self->rc.rc_ctrl_mode == VA_RC_CBR || self->rc.rc_ctrl_mode == VA_RC_VBR
|| self->rc.rc_ctrl_mode == VA_RC_VCM

View file

@ -677,9 +677,8 @@ _ensure_rate_control (GstVaH264Enc * self)
break;
}
GST_DEBUG_OBJECT (self, "Max bitrate: %u bits/sec, "
"Target bitrate: %u bits/sec", self->rc.max_bitrate,
self->rc.target_bitrate);
GST_DEBUG_OBJECT (self, "Max bitrate: %u kbps, target bitrate: %u kbps",
self->rc.max_bitrate, self->rc.target_bitrate);
if (self->rc.rc_ctrl_mode == VA_RC_CBR || self->rc.rc_ctrl_mode == VA_RC_VBR
|| self->rc.rc_ctrl_mode == VA_RC_VCM

View file

@ -3420,9 +3420,8 @@ _h265_ensure_rate_control (GstVaH265Enc * self)
break;
}
GST_DEBUG_OBJECT (self, "Max bitrate: %u bits/sec, "
"Target bitrate: %u bits/sec", self->rc.max_bitrate,
self->rc.target_bitrate);
GST_DEBUG_OBJECT (self, "Max bitrate: %u kbps, target bitrate: %u kbps",
self->rc.max_bitrate, self->rc.target_bitrate);
if (self->rc.rc_ctrl_mode == VA_RC_CBR || self->rc.rc_ctrl_mode == VA_RC_VBR
|| self->rc.rc_ctrl_mode == VA_RC_VCM

View file

@ -2054,9 +2054,8 @@ _vp9_ensure_rate_control (GstVaVp9Enc * self)
break;
}
GST_DEBUG_OBJECT (self, "Max bitrate: %u bits/sec, "
"Target bitrate: %u bits/sec", self->rc.max_bitrate,
self->rc.target_bitrate);
GST_DEBUG_OBJECT (self, "Max bitrate: %u kbps, target bitrate: %u kbps",
self->rc.max_bitrate, self->rc.target_bitrate);
if (self->rc.rc_ctrl_mode == VA_RC_CBR || self->rc.rc_ctrl_mode == VA_RC_VBR
|| self->rc.rc_ctrl_mode == VA_RC_VCM