diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-23 11:09:09 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-09-05 08:06:57 +0200 |
commit | 69bad628ec37dc75813ae015df7ce4022d002d9a (patch) | |
tree | 9f2d00151a5f5c221a92fddf755468dfaa174362 /libavcodec/dv.h | |
parent | 91c51dac6d00fec9dca0dc137230f1ab24ab7077 (diff) | |
download | ffmpeg-69bad628ec37dc75813ae015df7ce4022d002d9a.tar.gz |
lavc/dv: do not pass DVVideoContext to dv_calculate_mb_xy()
Pass the two variables needed from it directly.
This is done in preparation to splitting DVVideoContext.
Diffstat (limited to 'libavcodec/dv.h')
-rw-r--r-- | libavcodec/dv.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/dv.h b/libavcodec/dv.h index 286b267de2..6430688795 100644 --- a/libavcodec/dv.h +++ b/libavcodec/dv.h @@ -107,7 +107,8 @@ static inline int dv_work_pool_size(const AVDVProfile *d) return size; } -static inline void dv_calculate_mb_xy(const DVVideoContext *s, +static inline void dv_calculate_mb_xy(const AVDVProfile *sys, + const uint8_t *buf, const DVwork_chunk *work_chunk, int m, int *mb_x, int *mb_y) { @@ -116,7 +117,7 @@ static inline void dv_calculate_mb_xy(const DVVideoContext *s, /* We work with 720p frames split in half. * The odd half-frame (chan == 2,3) is displaced :-( */ - if (s->sys->height == 720 && !(s->buf[1] & 0x0C)) + if (sys->height == 720 && !(buf[1] & 0x0C)) /* shifting the Y coordinate down by 72/2 macro blocks */ *mb_y -= (*mb_y > 17) ? 18 : -72; } |