mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 23:16:38 +00:00
ffmpegcolorspace: Fix indention of template header
This commit is contained in:
parent
1b4220bd03
commit
6b63053be1
1 changed files with 1219 additions and 1211 deletions
|
@ -21,8 +21,8 @@
|
||||||
#define RGB_OUT(d, r, g, b) RGBA_OUT(d, r, g, b, 0xffU)
|
#define RGB_OUT(d, r, g, b) RGBA_OUT(d, r, g, b, 0xffU)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void glue(yuv420p_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
static void glue (yuv420p_to_, RGB_NAME) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const uint8_t *y1_ptr, *y2_ptr, *cb_ptr, *cr_ptr;
|
const uint8_t *y1_ptr, *y2_ptr, *cb_ptr, *cr_ptr;
|
||||||
uint8_t *d, *d1, *d2;
|
uint8_t *d, *d1, *d2;
|
||||||
|
@ -291,8 +291,8 @@ static void glue(nv21_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue(yuvj420p_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
static void glue (yuvj420p_to_, RGB_NAME) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const uint8_t *y1_ptr, *y2_ptr, *cb_ptr, *cr_ptr;
|
const uint8_t *y1_ptr, *y2_ptr, *cb_ptr, *cr_ptr;
|
||||||
uint8_t *d, *d1, *d2;
|
uint8_t *d, *d1, *d2;
|
||||||
|
@ -385,8 +385,8 @@ static void glue(yuvj420p_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue(RGB_NAME, _to_yuv420p)(AVPicture *dst, const AVPicture *src,
|
static void glue (RGB_NAME, _to_yuv420p) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
int wrap, wrap3, width2;
|
int wrap, wrap3, width2;
|
||||||
int r, g, b, r1, g1, b1, w;
|
int r, g, b, r1, g1, b1, w;
|
||||||
|
@ -753,8 +753,8 @@ static void glue(gray_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue(RGB_NAME, _to_gray16_l)(AVPicture *dst, const AVPicture *src,
|
static void glue (RGB_NAME, _to_gray16_l) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const unsigned char *p;
|
const unsigned char *p;
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
@ -779,8 +779,8 @@ static void glue(RGB_NAME, _to_gray16_l)(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue(gray16_l_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
static void glue (gray16_l_to_, RGB_NAME) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const unsigned char *p;
|
const unsigned char *p;
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
@ -805,8 +805,8 @@ static void glue(gray16_l_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue(RGB_NAME, _to_gray16_b)(AVPicture *dst, const AVPicture *src,
|
static void glue (RGB_NAME, _to_gray16_b) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const unsigned char *p;
|
const unsigned char *p;
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
@ -831,8 +831,8 @@ static void glue(RGB_NAME, _to_gray16_b)(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void glue(gray16_b_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src,
|
static void glue (gray16_b_to_, RGB_NAME) (AVPicture * dst,
|
||||||
int width, int height)
|
const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const unsigned char *p;
|
const unsigned char *p;
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
@ -962,7 +962,8 @@ static void glue(RGB_NAME, _to_rgba32)(AVPicture *dst, const AVPicture *src,
|
||||||
#if !defined(rgba32_fcts_done)
|
#if !defined(rgba32_fcts_done)
|
||||||
#define rgba32_fcts_done
|
#define rgba32_fcts_done
|
||||||
|
|
||||||
static void ayuv4444_to_rgba32(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
ayuv4444_to_rgba32 (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
uint8_t *s, *d, *d1, *s1;
|
uint8_t *s, *d, *d1, *s1;
|
||||||
|
@ -989,7 +990,8 @@ static void ayuv4444_to_rgba32(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rgba32_to_ayuv4444(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
rgba32_to_ayuv4444 (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
int src_wrap, dst_wrap, x, y;
|
int src_wrap, dst_wrap, x, y;
|
||||||
|
@ -1024,7 +1026,8 @@ static void rgba32_to_ayuv4444(AVPicture *dst, const AVPicture *src,
|
||||||
#if !defined(bgra32_fcts_done)
|
#if !defined(bgra32_fcts_done)
|
||||||
#define bgra32_fcts_done
|
#define bgra32_fcts_done
|
||||||
|
|
||||||
static void bgra32_to_ayuv4444(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
bgra32_to_ayuv4444 (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
int src_wrap, dst_wrap, x, y;
|
int src_wrap, dst_wrap, x, y;
|
||||||
|
@ -1117,8 +1120,8 @@ static void glue(RGB_NAME, _to_rgb24)(AVPicture *dst, const AVPicture *src,
|
||||||
|
|
||||||
#ifdef FMT_RGB24
|
#ifdef FMT_RGB24
|
||||||
|
|
||||||
static void yuv444p_to_rgb24(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
int width, int height)
|
yuv444p_to_rgb24 (AVPicture * dst, const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
const uint8_t *y1_ptr, *cb_ptr, *cr_ptr;
|
const uint8_t *y1_ptr, *cb_ptr, *cr_ptr;
|
||||||
uint8_t *d, *d1;
|
uint8_t *d, *d1;
|
||||||
|
@ -1150,7 +1153,8 @@ static void yuv444p_to_rgb24(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void yuvj444p_to_rgb24(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
yuvj444p_to_rgb24 (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
const uint8_t *y1_ptr, *cb_ptr, *cr_ptr;
|
const uint8_t *y1_ptr, *cb_ptr, *cr_ptr;
|
||||||
|
@ -1183,8 +1187,8 @@ static void yuvj444p_to_rgb24(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rgb24_to_yuv444p(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
int width, int height)
|
rgb24_to_yuv444p (AVPicture * dst, const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
int src_wrap, x, y;
|
int src_wrap, x, y;
|
||||||
int r, g, b;
|
int r, g, b;
|
||||||
|
@ -1215,7 +1219,8 @@ static void rgb24_to_yuv444p(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rgb24_to_yuvj420p(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
rgb24_to_yuvj420p (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
int wrap, wrap3, width2;
|
int wrap, wrap3, width2;
|
||||||
|
@ -1322,7 +1327,8 @@ static void rgb24_to_yuvj420p(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rgb24_to_yuvj444p(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
rgb24_to_yuvj444p (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
int src_wrap, x, y;
|
int src_wrap, x, y;
|
||||||
|
@ -1354,7 +1360,8 @@ static void rgb24_to_yuvj444p(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ayuv4444_to_rgb24(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
ayuv4444_to_rgb24 (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
uint8_t *s, *d, *d1, *s1;
|
uint8_t *s, *d, *d1, *s1;
|
||||||
|
@ -1380,7 +1387,8 @@ static void ayuv4444_to_rgb24(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rgb24_to_ayuv4444(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
|
rgb24_to_ayuv4444 (AVPicture * dst, const AVPicture * src,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
int src_wrap, dst_wrap, x, y;
|
int src_wrap, dst_wrap, x, y;
|
||||||
|
@ -1407,8 +1415,8 @@ static void rgb24_to_ayuv4444(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void v308_to_rgb24(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
int width, int height)
|
v308_to_rgb24 (AVPicture * dst, const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
uint8_t *s, *d, *d1, *s1;
|
uint8_t *s, *d, *d1, *s1;
|
||||||
int w, y, cb, cr, r_add, g_add, b_add;
|
int w, y, cb, cr, r_add, g_add, b_add;
|
||||||
|
@ -1433,8 +1441,8 @@ static void v308_to_rgb24(AVPicture *dst, const AVPicture *src,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rgb24_to_v308(AVPicture *dst, const AVPicture *src,
|
static void
|
||||||
int width, int height)
|
rgb24_to_v308 (AVPicture * dst, const AVPicture * src, int width, int height)
|
||||||
{
|
{
|
||||||
int src_wrap, dst_wrap, x, y;
|
int src_wrap, dst_wrap, x, y;
|
||||||
int r, g, b;
|
int r, g, b;
|
||||||
|
|
Loading…
Reference in a new issue