Commit 80d23d9d authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Timothy Gu

swscale/swscale: silence unused function warning

gamma_convert is only used with the old code. Thus, it is
placed under a header guard. This patch silences a -Wunused-function
observed on GCC 5.2.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 9aaa5413
...@@ -52,6 +52,7 @@ DECLARE_ALIGNED(8, static const uint8_t, sws_pb_64)[8] = { ...@@ -52,6 +52,7 @@ DECLARE_ALIGNED(8, static const uint8_t, sws_pb_64)[8] = {
64, 64, 64, 64, 64, 64, 64, 64 64, 64, 64, 64, 64, 64, 64, 64
}; };
#ifndef NEW_FILTER
static void gamma_convert(uint8_t * src[], int width, uint16_t *gamma) static void gamma_convert(uint8_t * src[], int width, uint16_t *gamma)
{ {
int i; int i;
...@@ -67,6 +68,7 @@ static void gamma_convert(uint8_t * src[], int width, uint16_t *gamma) ...@@ -67,6 +68,7 @@ static void gamma_convert(uint8_t * src[], int width, uint16_t *gamma)
AV_WL16(src1 + i*4 + 2, gamma[b]); AV_WL16(src1 + i*4 + 2, gamma[b]);
} }
} }
#endif
static av_always_inline void fillPlane(uint8_t *plane, int stride, int width, static av_always_inline void fillPlane(uint8_t *plane, int stride, int width,
int height, int y, uint8_t val) int height, int y, uint8_t val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment