Skip to content
Snippets Groups Projects
Commit e99b7019 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Hugo Beauzée-Luyssen
Browse files

orient: add support for 64-bit formats

At this point, high-definition RGBA is 64-bit format. Since the support
code is essentially already there in macro form, take it into use.
parent b91c228e
No related branches found
No related tags found
1 merge request!1436orient: refactor for SIMD
......@@ -76,18 +76,19 @@ static void transpose_##bits(void *restrict dst, ptrdiff_t dst_stride, \
TRANSFORMS(8)
TRANSFORMS(16)
TRANSFORMS(32)
TRANSFORMS(64)
typedef void (*plane_transform_cb)(void *, ptrdiff_t, const void *, ptrdiff_t,
int, int);
#define MAX_ORDER 2
#define MAX_ORDER 3
static const struct {
plane_transform_cb hflip[MAX_ORDER + 1];
plane_transform_cb transpose[MAX_ORDER + 1];
} transforms = {
{ hflip_8, hflip_16, hflip_32, },
{ transpose_8, transpose_16, transpose_32, },
{ hflip_8, hflip_16, hflip_32, hflip_64, },
{ transpose_8, transpose_16, transpose_32, transpose_64, },
};
static void hflip(void *restrict dst, ptrdiff_t dst_stride,
......@@ -304,6 +305,7 @@ static int Open(filter_t *filter)
case 1:
case 2:
case 4:
case 8:
break;
default:
return VLC_ENOTSUP;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment