libv4lplugins: Enable h264 encoder to produce Baseline profile stream

H264 encoder in libv4lplugins hard-coded values in SPS and PPS
specifically for Main profile. Although the hardware on
rockchip is capable of encoding Baseline, Main and High
profile, RK3399 cannot encode Baseline profile stream due to
the plugin code.

This removes some hard-coded values and instead respect the
profile by S_EXT_CTRL with id=V4L2_CID_MPEG_VIDEO_H264_PROFILE.

BUG=chromium:1036219, chromium:1036220
TEST=webrtc.RTCPeerConnectionAccelUsed.enc_h264 on kevin

Change-Id: Ifbdb02fbd82bc9c530c10bff38b8f8933d31376d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libv4lplugins/+/1977992
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
4 files changed
tree: 66eb7ae84335098256329d67353315e5aedf1ab1
  1. libv4l-rockchip/
  2. libv4l-rockchip_v2/
  3. OWNERS