aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/me_cmp.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-26 07:25:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 03:31:53 +0200
commitabb85429f3424375f21bdd135656c2d88357b3d5 (patch)
tree208aa7d650abc4eae3d9c5b7653e7daf9a3b530d /libavcodec/me_cmp.h
parente7cb7c762abca7444ed3a5a2a839b10c05c455f3 (diff)
downloadffmpeg-abb85429f3424375f21bdd135656c2d88357b3d5.tar.gz
avcodec/me_cmp: Constify me_cmp_func buffer parameters
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/me_cmp.h')
-rw-r--r--libavcodec/me_cmp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/me_cmp.h b/libavcodec/me_cmp.h
index 7b057a923b..c6de2d0061 100644
--- a/libavcodec/me_cmp.h
+++ b/libavcodec/me_cmp.h
@@ -46,12 +46,12 @@ struct MpegEncContext;
* Although currently h < 4 is not used as functions with
* width < 8 are neither used nor implemented. */
typedef int (*me_cmp_func)(struct MpegEncContext *c,
- uint8_t *blk1 /* align width (8 or 16) */,
- uint8_t *blk2 /* align 1 */, ptrdiff_t stride,
+ const uint8_t *blk1 /* align width (8 or 16) */,
+ const uint8_t *blk2 /* align 1 */, ptrdiff_t stride,
int h);
typedef struct MECmpContext {
- int (*sum_abs_dctelem)(int16_t *block /* align 16 */);
+ int (*sum_abs_dctelem)(const int16_t *block /* align 16 */);
me_cmp_func sad[6]; /* identical to pix_absAxA except additional void * */
me_cmp_func sse[6];