4 * This file is part of FFmpeg.
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef AVCODEC_SVQ1ENC_H
22 #define AVCODEC_SVQ1ENC_H
26 #include "libavutil/frame.h"
31 #include "mpegvideo.h"
34 typedef struct SVQ1EncContext {
35 /* FIXME: Needed for motion estimation, should not be used for anything
36 * else, the idea is to make the motion estimation eventually independent
37 * of MpegEncContext, so this will be removed then. */
39 AVCodecContext *avctx;
42 AVFrame *current_picture;
43 AVFrame *last_picture;
46 /* Some compression statistics */
47 enum AVPictureType pict_type;
50 /* why ooh why this sick breadth first order,
51 * everything is slower and more complex */
52 PutBitContext reorder_pb[6];
57 /* Y plane block dimensions */
61 /* U & V plane (C planes) block dimensions */
65 DECLARE_ALIGNED(16, int16_t, encoded_block_levels)[6][7][256];
69 int16_t (*motion_val8[3])[2];
70 int16_t (*motion_val16[3])[2];
78 int (*ssd_int8_vs_int16)(const int8_t *pix1, const int16_t *pix2,
82 void ff_svq1enc_init_ppc(SVQ1EncContext *c);
83 void ff_svq1enc_init_x86(SVQ1EncContext *c);
85 #endif /* AVCODEC_SVQ1ENC_H */