clang-format: Apply formatting

Code submissions have continually suffered from formatting
inconsistencies that constantly have to be addressed.  Using
clang-format simplifies this by making code formatting more consistent,
and allows automation of the code formatting so that maintainers can
focus more on the code itself instead of code formatting.
This commit is contained in:
jp9000
2019-06-22 22:13:45 -07:00
parent 53615ee10f
commit f53df7da64
567 changed files with 34068 additions and 32903 deletions

View File

@@ -21,12 +21,13 @@
#include "video-io.h"
struct video_frame {
uint8_t *data[MAX_AV_PLANES];
uint8_t *data[MAX_AV_PLANES];
uint32_t linesize[MAX_AV_PLANES];
};
EXPORT void video_frame_init(struct video_frame *frame,
enum video_format format, uint32_t width, uint32_t height);
enum video_format format, uint32_t width,
uint32_t height);
static inline void video_frame_free(struct video_frame *frame)
{
@@ -36,12 +37,12 @@ static inline void video_frame_free(struct video_frame *frame)
}
}
static inline struct video_frame *video_frame_create(
enum video_format format, uint32_t width, uint32_t height)
static inline struct video_frame *
video_frame_create(enum video_format format, uint32_t width, uint32_t height)
{
struct video_frame *frame;
frame = (struct video_frame*)bzalloc(sizeof(struct video_frame));
frame = (struct video_frame *)bzalloc(sizeof(struct video_frame));
video_frame_init(frame, format, width, height);
return frame;
}
@@ -55,5 +56,5 @@ static inline void video_frame_destroy(struct video_frame *frame)
}
EXPORT void video_frame_copy(struct video_frame *dst,
const struct video_frame *src, enum video_format format,
uint32_t height);
const struct video_frame *src,
enum video_format format, uint32_t height);