Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
83890c66
Commit
83890c66
authored
Dec 30, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: K&R reformatting cosmetics for header files
parent
a83f5b8a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
157 additions
and
144 deletions
+157
-144
yuv2rgb_altivec.h
libswscale/ppc/yuv2rgb_altivec.h
+12
-7
rgb2rgb.h
libswscale/rgb2rgb.h
+15
-15
swscale.h
libswscale/swscale.h
+2
-3
swscale_internal.h
libswscale/swscale_internal.h
+128
-119
No files found.
libswscale/ppc/yuv2rgb_altivec.h
View file @
83890c66
...
...
@@ -24,13 +24,18 @@
#ifndef SWSCALE_PPC_YUV2RGB_ALTIVEC_H
#define SWSCALE_PPC_YUV2RGB_ALTIVEC_H
#define YUV2PACKEDX_HEADER(suffix) \
void ff_yuv2 ## suffix ## _X_altivec(SwsContext *c, const int16_t *lumFilter, \
const int16_t **lumSrc, int lumFilterSize, \
const int16_t *chrFilter, const int16_t **chrUSrc, \
const int16_t **chrVSrc, int chrFilterSize, \
const int16_t **alpSrc, uint8_t *dest, \
int dstW, int dstY);
#define YUV2PACKEDX_HEADER(suffix) \
void ff_yuv2 ## suffix ## _X_altivec(SwsContext *c, \
const int16_t *lumFilter, \
const int16_t **lumSrc, \
int lumFilterSize, \
const int16_t *chrFilter, \
const int16_t **chrUSrc, \
const int16_t **chrVSrc, \
int chrFilterSize, \
const int16_t **alpSrc, \
uint8_t *dest, \
int dstW, int dstY);
YUV2PACKEDX_HEADER
(
abgr
);
YUV2PACKEDX_HEADER
(
bgra
);
...
...
libswscale/rgb2rgb.h
View file @
83890c66
...
...
@@ -36,32 +36,33 @@ extern void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, int src_size);
extern
void
(
*
rgb24tobgr16
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb24tobgr15
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32tobgr24
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32to16
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32to15
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb15to16
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32to16
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32to15
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb15to16
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb15tobgr24
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb15to32
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb16to15
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb15to32
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb16to15
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb16tobgr24
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb16to32
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb16to32
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb24tobgr24
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb24to16
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb24to15
)
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
shuffle_bytes_2103
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb24to16
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb24to15
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32tobgr16
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
rgb32tobgr15
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb24to32
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb32to24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
extern
void
(
*
shuffle_bytes_2103
)(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb24to32
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb32to24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb16tobgr32
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb16to24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb16to24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb16tobgr16
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb16tobgr15
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb15tobgr32
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb15to24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb15to24
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb15tobgr16
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
rgb15tobgr15
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
bgr8torgb8
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
bgr8torgb8
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
shuffle_bytes_0321
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
shuffle_bytes_1230
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
...
...
@@ -138,7 +139,6 @@ extern void (*yvu9_to_yuy2)(const uint8_t *src1, const uint8_t *src2, const uint
int
srcStride1
,
int
srcStride2
,
int
srcStride3
,
int
dstStride
);
extern
void
(
*
uyvytoyuv420
)(
uint8_t
*
ydst
,
uint8_t
*
udst
,
uint8_t
*
vdst
,
const
uint8_t
*
src
,
int
width
,
int
height
,
int
lumStride
,
int
chromStride
,
int
srcStride
);
...
...
libswscale/swscale.h
View file @
83890c66
...
...
@@ -132,7 +132,6 @@ const char *swscale_license(void);
*/
const
int
*
sws_getCoefficients
(
int
colorspace
);
// when used for filters they must have an odd number of elements
// coeffs cannot be shared between vectors
typedef
struct
{
...
...
@@ -232,9 +231,9 @@ struct SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat
* the destination image
* @return the height of the output slice
*/
int
sws_scale
(
struct
SwsContext
*
c
,
const
uint8_t
*
const
srcSlice
[],
int
sws_scale
(
struct
SwsContext
*
c
,
const
uint8_t
*
const
srcSlice
[],
const
int
srcStride
[],
int
srcSliceY
,
int
srcSliceH
,
uint8_t
*
const
dst
[],
const
int
dstStride
[]);
uint8_t
*
const
dst
[],
const
int
dstStride
[]);
/**
* @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x]
...
...
libswscale/swscale_internal.h
View file @
83890c66
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment