diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-03-02 03:28:22 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-03-02 03:28:22 +0400 |
commit | 454d3607d14f2d5e00e529bb37b3b0661ccc5214 (patch) | |
tree | d1ed7b7dec6cd8b9347fc324837d0ca8ec87836c /decoder | |
parent | e7cf5d2ba79e6ef4be22d5979bdd77604a9fc862 (diff) |
Rename function arguments to be clearer on what they actually are
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVVideo/decoders/dxva2dec.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp index 1b3b4d36..4ac43f26 100644 --- a/decoder/LAVVideo/decoders/dxva2dec.cpp +++ b/decoder/LAVVideo/decoders/dxva2dec.cpp @@ -180,20 +180,20 @@ static int IsAMDUVD(DWORD dwDeviceId) // DXVA2 decoder implementation //////////////////////////////////////////////////////////////////////////////// -static void (*CopyFrameNV12)(const BYTE *pSourceData, BYTE *pY, BYTE *pUV, int srcLines, int dstLines, int pitch) = nullptr; +static void (*CopyFrameNV12)(const BYTE *pSourceData, BYTE *pY, BYTE *pUV, int surfaceHeight, int imageHeight, int pitch) = nullptr; -static void CopyFrameNV12_fallback(const BYTE *pSourceData, BYTE *pY, BYTE *pUV, int srcLines, int dstLines, int pitch) +static void CopyFrameNV12_fallback(const BYTE *pSourceData, BYTE *pY, BYTE *pUV, int surfaceHeight, int imageHeight, int pitch) { - const int size = dstLines * pitch; + const int size = imageHeight * pitch; memcpy(pY, pSourceData, size); - memcpy(pUV, pSourceData + (srcLines * pitch), size >> 1); + memcpy(pUV, pSourceData + (surfaceHeight * pitch), size >> 1); } -static void CopyFrameNV12_SSE4(const BYTE *pSourceData, BYTE *pY, BYTE *pUV, int srcLines, int dstLines, int pitch) +static void CopyFrameNV12_SSE4(const BYTE *pSourceData, BYTE *pY, BYTE *pUV, int surfaceHeight, int imageHeight, int pitch) { - const int size = dstLines * pitch; + const int size = imageHeight * pitch; gpu_memcpy(pY, pSourceData, size); - gpu_memcpy(pUV, pSourceData + (srcLines * pitch), size >> 1); + gpu_memcpy(pUV, pSourceData + (surfaceHeight * pitch), size >> 1); } CDecDXVA2::CDecDXVA2(void) |