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
ff7913ae
Commit
ff7913ae
authored
Oct 04, 2011
by
Kieran Kunhya
Committed by
Ronald S. Bultje
Oct 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split up yuv2yuvX functions
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
34e8d147
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
200 deletions
+102
-200
swscale_altivec.c
libswscale/ppc/swscale_altivec.c
+1
-1
swscale.c
libswscale/swscale.c
+74
-182
swscale_internal.h
libswscale/swscale_internal.h
+27
-17
No files found.
libswscale/ppc/swscale_altivec.c
View file @
ff7913ae
...
@@ -405,7 +405,7 @@ void ff_sws_init_swScale_altivec(SwsContext *c)
...
@@ -405,7 +405,7 @@ void ff_sws_init_swScale_altivec(SwsContext *c)
if
(
!
is16BPS
(
dstFormat
)
&&
!
is9_OR_10BPS
(
dstFormat
)
&&
if
(
!
is16BPS
(
dstFormat
)
&&
!
is9_OR_10BPS
(
dstFormat
)
&&
dstFormat
!=
PIX_FMT_NV12
&&
dstFormat
!=
PIX_FMT_NV21
&&
dstFormat
!=
PIX_FMT_NV12
&&
dstFormat
!=
PIX_FMT_NV21
&&
!
c
->
alpPixBuf
)
{
!
c
->
alpPixBuf
)
{
c
->
yuv2yuvX
=
yuv2yuvX_altivec_real
;
//
c->yuv2yuvX = yuv2yuvX_altivec_real;
}
}
/* The following list of supported dstFormat values should
/* The following list of supported dstFormat values should
...
...
libswscale/swscale.c
View file @
ff7913ae
This diff is collapsed.
Click to expand it.
libswscale/swscale_internal.h
View file @
ff7913ae
...
@@ -76,33 +76,41 @@ typedef void (*yuv2planar1_fn) (const int16_t *src, uint8_t *dest, int dstW,
...
@@ -76,33 +76,41 @@ typedef void (*yuv2planar1_fn) (const int16_t *src, uint8_t *dest, int dstW,
const
uint8_t
*
dither
,
int
offset
);
const
uint8_t
*
dither
,
int
offset
);
/**
/**
* Write one line of horizontally scaled
Y/U/V/A
to planar output
* Write one line of horizontally scaled
data
to planar output
* with multi-point vertical scaling between input pixels.
* with multi-point vertical scaling between input pixels.
*
*
* @param c SWS scaling context
* @param filter vertical luma/alpha scaling coefficients, 12bit [0,4096]
* @param lumFilter vertical luma/alpha scaling coefficients, 12bit [0,4096]
* @param src scaled luma (Y) or alpha (A) source data, 15bit for 8-10bit output,
* @param lumSrc scaled luma (Y) source data, 15bit for 8-10bit output,
* 19-bit for 16bit output (in int32_t)
* 19-bit for 16bit output (in int32_t)
* @param lumFilterSize number of vertical luma/alpha input lines to scale
* @param filterSize number of vertical input lines to scale
* @param dest pointer to output plane. For >8bit
* output, this is in uint16_t
* @param dstW width of destination pixels
* @param offset Dither offset
*/
typedef
void
(
*
yuv2planarX_fn
)
(
const
int16_t
*
filter
,
int
filterSize
,
const
int16_t
**
src
,
uint8_t
*
dest
,
int
dstW
,
const
uint8_t
*
dither
,
int
offset
);
/**
* Write one line of horizontally scaled chroma to interleaved output
* with multi-point vertical scaling between input pixels.
*
* @param c SWS scaling context
* @param chrFilter vertical chroma scaling coefficients, 12bit [0,4096]
* @param chrFilter vertical chroma scaling coefficients, 12bit [0,4096]
* @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
* @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
* 19-bit for 16bit output (in int32_t)
* 19-bit for 16bit output (in int32_t)
* @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
* @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
* 19-bit for 16bit output (in int32_t)
* 19-bit for 16bit output (in int32_t)
* @param chrFilterSize number of vertical chroma input lines to scale
* @param chrFilterSize number of vertical chroma input lines to scale
* @param alpSrc scaled alpha (A) source data, 15bit for 8-10bit output,
* @param dest pointer to the output plane. For >8bit
* 19-bit for 16bit output (in int32_t)
* @param dest pointer to the 4 output planes (Y/U/V/A). For >8bit
* output, this is in uint16_t
* output, this is in uint16_t
* @param dstW width of dest[0], dest[3], lumSrc and alpSrc in pixels
* @param dstW width of chroma planes
* @param chrDstW width of dest[1], dest[2], chrUSrc and chrVSrc
*/
*/
typedef
void
(
*
yuv2planarX_fn
)
(
struct
SwsContext
*
c
,
const
int16_t
*
lumFilter
,
typedef
void
(
*
yuv2interleavedX_fn
)
(
struct
SwsContext
*
c
,
const
int16_t
*
chrFilter
,
int
chrFilterSize
,
const
int16_t
**
lumSrc
,
int
lumFilterSize
,
const
int16_t
**
chrUSrc
,
const
int16_t
**
chrVSrc
,
const
int16_t
*
chrFilter
,
const
int16_t
**
chrUSrc
,
uint8_t
*
dest
,
int
dstW
);
const
int16_t
**
chrVSrc
,
int
chrFilterSize
,
const
int16_t
**
alpSrc
,
uint8_t
*
dest
[
4
],
int
dstW
,
int
chrDstW
);
/**
/**
* Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB
* Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB
* output without any additional vertical scaling (or point-scaling). Note
* output without any additional vertical scaling (or point-scaling). Note
...
@@ -405,7 +413,9 @@ typedef struct SwsContext {
...
@@ -405,7 +413,9 @@ typedef struct SwsContext {
/* function pointers for swScale() */
/* function pointers for swScale() */
yuv2planar1_fn
yuv2yuv1
;
yuv2planar1_fn
yuv2yuv1
;
yuv2planarX_fn
yuv2yuvX
;
yuv2planarX_fn
yuv2planeX_luma
;
yuv2planarX_fn
yuv2planeX_chroma
;
yuv2interleavedX_fn
yuv2nv12X_chroma
;
yuv2packed1_fn
yuv2packed1
;
yuv2packed1_fn
yuv2packed1
;
yuv2packed2_fn
yuv2packed2
;
yuv2packed2_fn
yuv2packed2
;
yuv2packedX_fn
yuv2packedX
;
yuv2packedX_fn
yuv2packedX
;
...
...
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