hscalefn =
c->dstBpc <= 14 ? ff_hscale8to15_ ## filtersize ##
_ ## opt2 : \
ff_hscale8to19_ ## filtersize ##
_ ## opt1; \
}
else if (
c->srcBpc == 9) { \
hscalefn =
c->dstBpc <= 14 ? ff_hscale9to15_ ## filtersize ##
_ ## opt2 : \
ff_hscale9to19_ ## filtersize ##
_ ## opt1; \
}
else if (
c->srcBpc == 10) { \
hscalefn =
c->dstBpc <= 14 ? ff_hscale10to15_ ## filtersize ##
_ ## opt2 : \
ff_hscale10to19_ ## filtersize ##
_ ## opt1; \
}
else if (
c->srcBpc == 12) { \
hscalefn =
c->dstBpc <= 14 ? ff_hscale12to15_ ## filtersize ##
_ ## opt2 : \
ff_hscale12to19_ ## filtersize ##
_ ## opt1; \
hscalefn =
c->dstBpc <= 14 ? ff_hscale14to15_ ## filtersize ##
_ ## opt2 : \
ff_hscale14to19_ ## filtersize ##
_ ## opt1; \
hscalefn =
c->dstBpc <= 14 ? ff_hscale16to15_ ## filtersize ##
_ ## opt2 : \
ff_hscale16to19_ ## filtersize ##
_ ## opt1; \
} \
} while (0)
static av_always_inline int isAnyRGB(enum AVPixelFormat pix_fmt)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
AVComponentDescriptor comp[4]
Parameters that describe how pixels are packed.
8 bits with AV_PIX_FMT_RGB32 palette
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
int depth
Number of bits in the component.