media/gpu/v4l2: move kernel-specific structures out of public sight
As we add support for the request API and upstream H264 structures, two sets of V4L2 H264 controls/structures will have to coexist: - The ones we used so far for our own kernels and the config store, - The official upstream ones, relying on request API. Thus we will need two versions of the V4L2H264Accelerator, each of which will use a different set of kernel controls/structures. However these kernel members share the same name and cannot be both included in the same compilation unit: thus, we cannot have them included in any .h file that the decoder will include, or name collision will occurs. The CL takes care of this last point my moving all kernel-specific definitions and includes into a private structure inside v4l2_h264_accelerator.cc. That way, none of the kernel members are visible to files that include v4l2_h264_accelerator.h, and we won't have any name collision as we introduce the other accelerator class. Bug: 917279 Test: vdatest passes on veyron_minnie. Change-Id: I1601fccd37624244b3351e647c1c7e75f526f4a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1705928 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#678501}
Showing
Please register or sign in to comment