libv4lplugins: Change h264 level to a specified one

An app can specify the h264 stream of the encoded stream by
calling VIDIOC_S_EXT_CTRL with V4L2_CID_MPEG_VIDEO_H264_LEVEL.
However, libv4lplugins ignores the specified level the h264 level
is always 4.0. The plugin must change the level to the level
set by app.

BUG=chromium:1036219, chromium:1036220, b:146854692
TEST=webrtc.RTCPeerConnectionAccelUsed.enc_h264 on kevin
TEST=android.media.cts.MediaRecorderTest#testProfileAvcBaselineLevel1

Change-Id: I6c010af8862624e37418b86458a7f9df8aa2c868
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libv4lplugins/+/1980599
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Chih-Yu Huang <akahuang@chromium.org>
4 files changed
tree: a17b1841ff0f13b956704fe28506711345c64894
  1. libv4l-rockchip/
  2. libv4l-rockchip_v2/
  3. OWNERS