Lavd: added conversion RG48->RGB

Just to have complete transformation matrix to RGB.
This commit is contained in:
Martin Pulec
2020-05-19 13:41:14 +02:00
parent 26bfee02ba
commit 69a41c602c
3 changed files with 13 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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;

View File

@@ -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 },