Commit c9f5fcd0 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Martin Storsjö

dsputil: Merge 9-10 bpp functions for get_pixels and draw_edge

These only care about pixel storage unit size, not actual bits
used (i.e. they don't clip).
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 619e0da1
...@@ -43,11 +43,7 @@ ...@@ -43,11 +43,7 @@
uint32_t ff_squareTbl[512] = {0, }; uint32_t ff_squareTbl[512] = {0, };
#define BIT_DEPTH 9 #define BIT_DEPTH 16
#include "dsputil_template.c"
#undef BIT_DEPTH
#define BIT_DEPTH 10
#include "dsputil_template.c" #include "dsputil_template.c"
#undef BIT_DEPTH #undef BIT_DEPTH
...@@ -2737,10 +2733,8 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx) ...@@ -2737,10 +2733,8 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
switch (avctx->bits_per_raw_sample) { switch (avctx->bits_per_raw_sample) {
case 9: case 9:
BIT_DEPTH_FUNCS(9);
break;
case 10: case 10:
BIT_DEPTH_FUNCS(10); BIT_DEPTH_FUNCS(16);
break; break;
default: default:
BIT_DEPTH_FUNCS(8); BIT_DEPTH_FUNCS(8);
......
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