@@ -57,9 +57,9 @@ MLConverter::CreateGammaTable(const float gamma, const float gainR, const float
5757}
5858
5959void
60- MLConverter::Rgb10bitToRGBA (uint32_t *pFrom, uint32_t *pTo, const int width, const int height)
60+ MLConverter::Rgb10bitToRGBA (uint32_t *pFrom, uint32_t *pTo, const int width, const int height, const uint8_t alpha )
6161{
62- const uint32_t a = 0xff ;
62+ const uint32_t a = alpha ;
6363 int pos = 0 ;
6464 for (int y = 0 ; y < height; ++y) {
6565 for (int x = 0 ; x < width; ++x) {
@@ -75,9 +75,9 @@ MLConverter::Rgb10bitToRGBA(uint32_t *pFrom, uint32_t *pTo, const int width, con
7575}
7676
7777void
78- MLConverter::YuvV210ToYuvA (uint32_t *pFrom, uint32_t *pTo, const int width, const int height)
78+ MLConverter::YuvV210ToYuvA (uint32_t *pFrom, uint32_t *pTo, const int width, const int height, const uint8_t alpha )
7979{
80- const uint8_t a = 0xff ;
80+ const uint8_t a = alpha ;
8181 for (int y = 0 ; y < height; ++y) {
8282 for (int x = 0 ; x < width / 6 ; ++x) {
8383 const int posF = 4 * (x + y * width / 6 );
@@ -118,7 +118,7 @@ MLConverter::YuvV210ToYuvA(uint32_t *pFrom, uint32_t *pTo, const int width, cons
118118}
119119
120120void
121- MLConverter::RawYuvV210ToRGBA (uint32_t *pFrom, uint32_t *pTo, const int width, const int height)
121+ MLConverter::RawYuvV210ToRGBA (uint32_t *pFrom, uint32_t *pTo, const int width, const int height, const uint8_t alpha )
122122{
123123 assert (width == 3840 );
124124 assert (height == 2160 );
@@ -204,7 +204,7 @@ MLConverter::RawYuvV210ToRGBA(uint32_t *pFrom, uint32_t *pTo, const int width, c
204204 }
205205 }
206206
207- const uint8_t a = 0xff ;
207+ const uint8_t a = alpha ;
208208 for (y = 0 ; y < height; y += 2 ) {
209209 for (x = 0 ; x < width; x += 2 ) {
210210 /* G0 R
0 commit comments