Skip to content

av1 support - #561

Open
sofus13 wants to merge 4 commits into
AsahiLinux:asahi-wipfrom
sofus13:avd-wip
Open

av1 support#561
sofus13 wants to merge 4 commits into
AsahiLinux:asahi-wipfrom
sofus13:avd-wip

Conversation

@sofus13

@sofus13 sofus13 commented Aug 2, 2026

Copy link
Copy Markdown

No description provided.

sofus13 added 2 commits August 2, 2026 10:49
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Comment thread drivers/media/platform/apple/avd/avd-av1-entropymode.c Outdated
Comment thread drivers/media/platform/apple/avd/avd-av1-entropymode.h Outdated
Comment thread drivers/media/platform/apple/avd/avd-av1.c Outdated
{ AOM_CDF4(8192, 16384, 24576)}, { AOM_CDF4(8192, 16384, 24576)}
},
{
{ AOM_CDF4(8192, 16384, 24576)}, { AOM_CDF4(8192, 16384, 24576)},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these blocks could be elided by further abusing the preprocessor, but it's inconsequential.

#define BLOCK_REPEAT(x, y, z) \
        { \
                { AOM_CDF4(x, y, z) }, { AOM_CDF4(x, y, z) }, \
                /* repeat as many times as required */ \
        }

static const u16 whatever_coffs[...] = {
        {
                {
                        BLOCK_REPEAT(8192, 16384, 24576),
                },
        },
};

#undef BLOCK_REPEAT

This would only work where all the coefficients in the block are the same, but there's a few places where this happens and it would save a few lines.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think i prefer the consistency. Based on a quick count it would also only be ~300 lines we could remove

Comment thread drivers/media/platform/apple/avd/avd-av1-entropymode.c Outdated
Comment thread drivers/media/platform/apple/avd/avd-av1-entropymode.h Outdated
Comment thread drivers/media/platform/apple/avd/avd-av1-entropymode.h Outdated
sofus13 added 2 commits August 2, 2026 15:06
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants