[FFmpeg-devel] [PATCH 3/7] lavu/aes: add runtime dispatch for crypt function
James Almer
jamrial at gmail.com
Mon Oct 12 05:34:06 CEST 2015
On 10/12/2015 12:20 AM, Rodger Combs wrote:
> diff --git a/libavutil/aes_internal.h b/libavutil/aes_internal.h
> index e2841ef..37b9568 100644
> --- a/libavutil/aes_internal.h
> +++ b/libavutil/aes_internal.h
> @@ -36,6 +36,7 @@ typedef struct AVAES {
> av_aes_block round_key[15];
> av_aes_block state[2];
> int rounds;
> + void (*crypt)(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv);
Ideally, don't pass a struct pointer to an asm function. Pass its elements
instead (round_key, state and rounds, as needed).
> } AVAES;
>
> #endif /* AVUTIL_AES_INTERNAL_H */
>
More information about the ffmpeg-devel
mailing list