mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
swscale: support unscaled planar Nbit->8bit with non native endian source.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
09ff3cc77b
commit
c4f7050bb1
@ -1904,7 +1904,11 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
|
|||||||
uint16_t *dstPtr2 = (uint16_t*)dstPtr;
|
uint16_t *dstPtr2 = (uint16_t*)dstPtr;
|
||||||
|
|
||||||
if (dst_depth == 8) {
|
if (dst_depth == 8) {
|
||||||
|
if(isBE(c->srcFormat) == HAVE_BIGENDIAN){
|
||||||
DITHER_COPY(dstPtr, dstStride[plane], srcPtr2, srcStride[plane]/2, )
|
DITHER_COPY(dstPtr, dstStride[plane], srcPtr2, srcStride[plane]/2, )
|
||||||
|
} else {
|
||||||
|
DITHER_COPY(dstPtr, dstStride[plane], srcPtr2, srcStride[plane]/2, av_bswap16)
|
||||||
|
}
|
||||||
} else if (src_depth == 8) {
|
} else if (src_depth == 8) {
|
||||||
for (i = 0; i < height; i++) {
|
for (i = 0; i < height; i++) {
|
||||||
for (j = 0; j < length; j++)
|
for (j = 0; j < length; j++)
|
||||||
|
Loading…
Reference in New Issue
Block a user