diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 09:09:40 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-29 14:41:09 +0300 |
commit | d0540fd02171a6233d2016b199d013299debf7e3 (patch) | |
tree | 6e83ffaa460ef2204ae3d972d1e98b121c81bf06 /libavcodec/intrax8.h | |
parent | 9f4d99138df434a73b097c997fb4cafc65f4ff54 (diff) |
intrax8: Pass macroblock size to ff_intrax8_common_init
Helps in decoupling this code from mpegvideo.
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index 44954e159a..d640cdf6af 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -65,6 +65,10 @@ typedef struct IntraX8Context { int chroma_orient; int orient; int est_run; + + // block props + int mb_x, mb_y; + int mb_width, mb_height; } IntraX8Context; /** @@ -73,11 +77,14 @@ typedef struct IntraX8Context { * @param avctx pointer to AVCodecContext * @param w pointer to IntraX8Context * @param idsp pointer to IDCTDSPContext + * @param mb_width macroblock width + * @param mb_height macroblock height * @param s pointer to MpegEncContext of the parent codec * @return 0 on success, a negative AVERROR value on error */ int ff_intrax8_common_init(AVCodecContext *avctx, IntraX8Context *w, IDCTDSPContext *idsp, + int mb_width, int mb_height, MpegEncContext *const s); /** |