mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
changed rgba32_to routines to support both alpha and non-alpha formats (see r7066 too)
Originally committed as revision 7067 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8e96866a52
commit
b362567605
@ -2060,6 +2060,12 @@ static const ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = {
|
||||
[PIX_FMT_RGB24] = {
|
||||
.convert = rgba32_to_rgb24
|
||||
},
|
||||
[PIX_FMT_BGR24] = {
|
||||
.convert = rgba32_to_bgr24
|
||||
},
|
||||
[PIX_FMT_RGB565] = {
|
||||
.convert = rgba32_to_rgb565
|
||||
},
|
||||
[PIX_FMT_RGB555] = {
|
||||
.convert = rgba32_to_rgb555
|
||||
},
|
||||
@ -2074,6 +2080,9 @@ static const ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = {
|
||||
},
|
||||
},
|
||||
[PIX_FMT_BGR24] = {
|
||||
[PIX_FMT_RGBA32] = {
|
||||
.convert = bgr24_to_rgba32
|
||||
},
|
||||
[PIX_FMT_RGB24] = {
|
||||
.convert = bgr24_to_rgb24
|
||||
},
|
||||
@ -2099,6 +2108,9 @@ static const ConvertEntry convert_table[PIX_FMT_NB][PIX_FMT_NB] = {
|
||||
},
|
||||
},
|
||||
[PIX_FMT_RGB565] = {
|
||||
[PIX_FMT_RGBA32] = {
|
||||
.convert = rgb565_to_rgba32
|
||||
},
|
||||
[PIX_FMT_RGB24] = {
|
||||
.convert = rgb565_to_rgb24
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user