Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-02-16 03:08:03 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2014-02-16 03:09:37 +0400
commitcbe3be5f39c35198f701358d3b0f735b30f5927d (patch)
tree377fa9fd580393a53ab8fd7818fa378d0592f54e /decoder/LAVVideo/pixconv
parent9aa533700849631331600fc3c3eeaf93d1141910 (diff)
RGB conversion coefficients are constant.
Diffstat (limited to 'decoder/LAVVideo/pixconv')
-rw-r--r--decoder/LAVVideo/pixconv/yuv2rgb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/decoder/LAVVideo/pixconv/yuv2rgb.cpp b/decoder/LAVVideo/pixconv/yuv2rgb.cpp
index aa68d919..12f741d6 100644
--- a/decoder/LAVVideo/pixconv/yuv2rgb.cpp
+++ b/decoder/LAVVideo/pixconv/yuv2rgb.cpp
@@ -32,7 +32,7 @@
// This function converts 4x2 pixels from the source into 4x2 RGB pixels in the destination
template <LAVPixelFormat inputFormat, int shift, int out32, int right_edge, int dithertype, int ycgco> __forceinline
-static int yuv2rgb_convert_pixels(const uint8_t* &srcY, const uint8_t* &srcU, const uint8_t* &srcV, uint8_t* &dst, ptrdiff_t srcStrideY, ptrdiff_t srcStrideUV, ptrdiff_t dstStride, ptrdiff_t line, RGBCoeffs *coeffs, const uint16_t* &dithers, ptrdiff_t pos)
+static int yuv2rgb_convert_pixels(const uint8_t* &srcY, const uint8_t* &srcU, const uint8_t* &srcV, uint8_t* &dst, ptrdiff_t srcStrideY, ptrdiff_t srcStrideUV, ptrdiff_t dstStride, ptrdiff_t line, const RGBCoeffs *coeffs, const uint16_t* &dithers, ptrdiff_t pos)
{
__m128i xmm0,xmm1,xmm2,xmm3,xmm4,xmm5,xmm6,xmm7;
xmm7 = _mm_setzero_si128 ();
@@ -394,7 +394,7 @@ static int yuv2rgb_convert_pixels(const uint8_t* &srcY, const uint8_t* &srcU, co
}
template <LAVPixelFormat inputFormat, int shift, int out32, int dithertype, int ycgco>
-static int __stdcall yuv2rgb_convert(const uint8_t *srcY, const uint8_t *srcU, const uint8_t *srcV, uint8_t *dst, int width, int height, ptrdiff_t srcStrideY, ptrdiff_t srcStrideUV, ptrdiff_t dstStride, ptrdiff_t sliceYStart, ptrdiff_t sliceYEnd, RGBCoeffs *coeffs, const uint16_t *dithers)
+static int __stdcall yuv2rgb_convert(const uint8_t *srcY, const uint8_t *srcU, const uint8_t *srcV, uint8_t *dst, int width, int height, ptrdiff_t srcStrideY, ptrdiff_t srcStrideUV, ptrdiff_t dstStride, ptrdiff_t sliceYStart, ptrdiff_t sliceYEnd, const RGBCoeffs *coeffs, const uint16_t *dithers)
{
const uint8_t *y = srcY;
const uint8_t *u = srcU;
@@ -470,7 +470,7 @@ static int __stdcall yuv2rgb_convert(const uint8_t *srcY, const uint8_t *srcU, c
template <int out32>
DECLARE_CONV_FUNC_IMPL(convert_yuv_rgb)
{
- RGBCoeffs *coeffs = getRGBCoeffs(width, height);
+ const RGBCoeffs *coeffs = getRGBCoeffs(width, height);
if (!m_bRGBConvInit) {
m_bRGBConvInit = TRUE;
@@ -554,7 +554,7 @@ void CLAVPixFmtConverter::InitRGBConvDispatcher()
CONV_FUNCX(LAVPixFmt_YUV444);
}
-RGBCoeffs* CLAVPixFmtConverter::getRGBCoeffs(int width, int height)
+const RGBCoeffs* CLAVPixFmtConverter::getRGBCoeffs(int width, int height)
{
if (!m_rgbCoeffs || width != swsWidth || height != swsHeight) {
swsWidth = width;