tree: Run clang-format to conform to the kernel coding style

The coding style has been a bit erratic. Enforce the linux kernel coding
style by reusing their .clang-format file, running clang-format on the
source, and ignoring the few shortcomings that clang-format has at the
moment (especially on aligning the define values).

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-07-16 22:02:38 +02:00
parent f831082a09
commit 5aeb07f8bf
28 changed files with 1066 additions and 386 deletions
+30 -16
View File
@@ -23,65 +23,79 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "sunxi_cedrus.h"
#include "subpicture.h"
#include "sunxi_cedrus.h"
VAStatus SunxiCedrusCreateSubpicture(VADriverContextP context,
VAImageID image_id, VASubpictureID *subpicture_id)
VAImageID image_id,
VASubpictureID *subpicture_id)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusDestroySubpicture(VADriverContextP context,
VASubpictureID subpicture_id)
VASubpictureID subpicture_id)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusQuerySubpictureFormats(VADriverContextP context,
VAImageFormat *formats, unsigned int *flags,
unsigned int *formats_count)
VAImageFormat *formats,
unsigned int *flags,
unsigned int *formats_count)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusSetSubpictureImage(VADriverContextP context,
VASubpictureID subpicture_id, VAImageID image_id)
VASubpictureID subpicture_id,
VAImageID image_id)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusSetSubpicturePalette(VADriverContextP context,
VASubpictureID subpicture_id, unsigned char *palette)
VASubpictureID subpicture_id,
unsigned char *palette)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusSetSubpictureChromakey(VADriverContextP context,
VASubpictureID subpicture_id, unsigned int chromakey_min,
unsigned int chromakey_max, unsigned int chromakey_mask)
VASubpictureID subpicture_id,
unsigned int chromakey_min,
unsigned int chromakey_max,
unsigned int chromakey_mask)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusSetSubpictureGlobalAlpha(VADriverContextP context,
VASubpictureID subpicture_id, float global_alpha)
VASubpictureID subpicture_id,
float global_alpha)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusAssociateSubpicture(VADriverContextP context,
VASubpictureID subpicture_id, VASurfaceID *surfaces_ids,
int surfaces_count, short src_x, short src_y, unsigned short src_width,
unsigned short src_height, short dst_x, short dst_y,
unsigned short dst_width, unsigned short dst_height, unsigned int flags)
VASubpictureID subpicture_id,
VASurfaceID *surfaces_ids,
int surfaces_count,
short src_x, short src_y,
unsigned short src_width,
unsigned short src_height,
short dst_x, short dst_y,
unsigned short dst_width,
unsigned short dst_height,
unsigned int flags)
{
return VA_STATUS_SUCCESS;
}
VAStatus SunxiCedrusDeassociateSubpicture(VADriverContextP context,
VASubpictureID subpicture_id, VASurfaceID *surfaces_ids,
int surfaces_count)
VASubpictureID subpicture_id,
VASurfaceID *surfaces_ids,
int surfaces_count)
{
return VA_STATUS_SUCCESS;
}