mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-01-31 00:52:53 +00:00
Reindent after the last commit.
Originally committed as revision 30359 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
c0d1dc1c4f
commit
e36a545de5
@ -2036,24 +2036,24 @@ static int pal2rgbWrapper(SwsContext *c, const uint8_t* src[], int srcStride[],
|
||||
av_log(c, AV_LOG_ERROR, "internal error %s -> %s converter\n",
|
||||
sws_format_name(srcFormat), sws_format_name(dstFormat));
|
||||
else {
|
||||
switch(dstFormat) {
|
||||
case PIX_FMT_RGB32 : conv = palette8topacked32; break;
|
||||
case PIX_FMT_BGR32 : conv = palette8topacked32; break;
|
||||
case PIX_FMT_BGR32_1: conv = palette8topacked32; break;
|
||||
case PIX_FMT_RGB32_1: conv = palette8topacked32; break;
|
||||
case PIX_FMT_RGB24 : conv = palette8topacked24; break;
|
||||
case PIX_FMT_BGR24 : conv = palette8topacked24; break;
|
||||
default: av_log(c, AV_LOG_ERROR, "internal error %s -> %s converter\n",
|
||||
sws_format_name(srcFormat), sws_format_name(dstFormat)); break;
|
||||
}
|
||||
switch (dstFormat) {
|
||||
case PIX_FMT_RGB32 : conv = palette8topacked32; break;
|
||||
case PIX_FMT_BGR32 : conv = palette8topacked32; break;
|
||||
case PIX_FMT_BGR32_1: conv = palette8topacked32; break;
|
||||
case PIX_FMT_RGB32_1: conv = palette8topacked32; break;
|
||||
case PIX_FMT_RGB24 : conv = palette8topacked24; break;
|
||||
case PIX_FMT_BGR24 : conv = palette8topacked24; break;
|
||||
default: av_log(c, AV_LOG_ERROR, "internal error %s -> %s converter\n",
|
||||
sws_format_name(srcFormat), sws_format_name(dstFormat)); break;
|
||||
}
|
||||
}
|
||||
|
||||
if (conv)
|
||||
for (i=0; i<srcSliceH; i++) {
|
||||
conv(srcPtr, dstPtr, c->srcW, (uint8_t *) c->pal_rgb);
|
||||
srcPtr+= srcStride[0];
|
||||
dstPtr+= dstStride[0];
|
||||
}
|
||||
for (i=0; i<srcSliceH; i++) {
|
||||
conv(srcPtr, dstPtr, c->srcW, (uint8_t *) c->pal_rgb);
|
||||
srcPtr+= srcStride[0];
|
||||
dstPtr+= dstStride[0];
|
||||
}
|
||||
|
||||
return srcSliceH;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user