mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 07:40:24 +00:00
Lavd: added conversion RG48->RGB
Just to have complete transformation matrix to RGB.
This commit is contained in:
@@ -1950,6 +1950,17 @@ void vc_copylineRG48toR12L(unsigned char * __restrict dst, const unsigned char *
|
||||
}
|
||||
}
|
||||
|
||||
void vc_copylineRG48toRGB(unsigned char * __restrict dst, const unsigned char * __restrict src, int dst_len, int rshift,
|
||||
int gshift, int bshift)
|
||||
{
|
||||
OPTIMIZED_FOR (int x = 0; x <= dst_len - 4; x += 4) {
|
||||
*dst++ = src[1];
|
||||
*dst++ = src[3];
|
||||
*dst++ = src[5];
|
||||
src += 6;
|
||||
}
|
||||
}
|
||||
|
||||
void vc_copylineRG48toRGBA(unsigned char * __restrict dst, const unsigned char * __restrict src, int dst_len, int rshift,
|
||||
int gshift, int bshift)
|
||||
{
|
||||
|
||||
@@ -124,6 +124,7 @@ decoder_func_t vc_copylineRGBtoR12L;
|
||||
decoder_func_t vc_copylineR12LtoRG48;
|
||||
decoder_func_t vc_copylineR12LtoRGB;
|
||||
decoder_func_t vc_copylineRG48toR12L;
|
||||
decoder_func_t vc_copylineRG48toRGB;
|
||||
decoder_func_t vc_copylineRG48toRGBA;
|
||||
decoder_func_t vc_copylineUYVYtoRGB;
|
||||
decoder_func_t vc_copylineUYVYtoRGBA;
|
||||
|
||||
@@ -754,6 +754,7 @@ static const struct decode_from_to dec_template[] = {
|
||||
{ VIDEO_CODEC_NONE, R12L, R12L, 500 },
|
||||
{ VIDEO_CODEC_NONE, R12L, RGB, 500 },
|
||||
{ VIDEO_CODEC_NONE, R12L, RGBA, 500 },
|
||||
{ VIDEO_CODEC_NONE, RG48, RGB, 500 },
|
||||
{ VIDEO_CODEC_NONE, RG48, RGBA, 500 },
|
||||
{ VIDEO_CODEC_NONE, RG48, R12L, 500 },
|
||||
{ VIDEO_CODEC_NONE, UYVY, RGB, 800 },
|
||||
|
||||
Reference in New Issue
Block a user