mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
swscale/rgb2rgb_template: Remove unused uyvytoyv12_c()
Added in81c0590e6c, but it seems to have always been unused. See also5421dee0e7. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
James Almer
parent
5375cfd9c7
commit
ecd11abcc9
@@ -607,42 +607,6 @@ static inline void planar2x_c(const uint8_t *src, uint8_t *dst, int srcWidth,
|
||||
dst[2 * srcWidth - 1] = src[srcWidth - 1];
|
||||
}
|
||||
|
||||
/**
|
||||
* Height should be a multiple of 2 and width should be a multiple of 16.
|
||||
* (If this is a problem for anyone then tell me, and I will fix it.)
|
||||
* Chrominance data is only taken from every second line, others are ignored.
|
||||
* FIXME: Write HQ version.
|
||||
*/
|
||||
static inline void uyvytoyv12_c(const uint8_t *src, uint8_t *ydst,
|
||||
uint8_t *udst, uint8_t *vdst,
|
||||
int width, int height, int lumStride,
|
||||
int chromStride, int srcStride)
|
||||
{
|
||||
int y;
|
||||
const int chromWidth = width >> 1;
|
||||
|
||||
for (y = 0; y < height; y += 2) {
|
||||
int i;
|
||||
for (i = 0; i < chromWidth; i++) {
|
||||
udst[i] = src[4 * i + 0];
|
||||
ydst[2 * i + 0] = src[4 * i + 1];
|
||||
vdst[i] = src[4 * i + 2];
|
||||
ydst[2 * i + 1] = src[4 * i + 3];
|
||||
}
|
||||
ydst += lumStride;
|
||||
src += srcStride;
|
||||
|
||||
for (i = 0; i < chromWidth; i++) {
|
||||
ydst[2 * i + 0] = src[4 * i + 1];
|
||||
ydst[2 * i + 1] = src[4 * i + 3];
|
||||
}
|
||||
udst += chromStride;
|
||||
vdst += chromStride;
|
||||
ydst += lumStride;
|
||||
src += srcStride;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* width should be a multiple of 2.
|
||||
* (If this is a problem for anyone then tell me, and I will fix it.)
|
||||
|
||||
Reference in New Issue
Block a user