mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Cosmetics: make more compact the code for handle_jpeg(), this also allows
vertical alignment. Improve readability. Originally committed as revision 31186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
2b65bb45b5
commit
b8dbff33bf
@ -761,20 +761,11 @@ int sws_getColorspaceDetails(SwsContext *c, int **inv_table, int *srcRange, int
|
||||
static int handle_jpeg(enum PixelFormat *format)
|
||||
{
|
||||
switch (*format) {
|
||||
case PIX_FMT_YUVJ420P:
|
||||
*format = PIX_FMT_YUV420P;
|
||||
return 1;
|
||||
case PIX_FMT_YUVJ422P:
|
||||
*format = PIX_FMT_YUV422P;
|
||||
return 1;
|
||||
case PIX_FMT_YUVJ444P:
|
||||
*format = PIX_FMT_YUV444P;
|
||||
return 1;
|
||||
case PIX_FMT_YUVJ440P:
|
||||
*format = PIX_FMT_YUV440P;
|
||||
return 1;
|
||||
default:
|
||||
return 0;
|
||||
case PIX_FMT_YUVJ420P: *format = PIX_FMT_YUV420P; return 1;
|
||||
case PIX_FMT_YUVJ422P: *format = PIX_FMT_YUV422P; return 1;
|
||||
case PIX_FMT_YUVJ444P: *format = PIX_FMT_YUV444P; return 1;
|
||||
case PIX_FMT_YUVJ440P: *format = PIX_FMT_YUV440P; return 1;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user