summaryrefslogtreecommitdiff
path: root/libavcodec/h261enc.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-01 06:39:35 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-13 15:19:43 +0100
commit8401b9460279df657dead86e1fecd71eb4efd7fc (patch)
treeba0bed22d504e6ce75e701832876734075f87cc3 /libavcodec/h261enc.h
parentd5e87df9029b5b14da95d48d5ffa63f58d2cc527 (diff)
avcodec/h261: Move encoder-only stuff to a new header
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/h261enc.h')
-rw-r--r--libavcodec/h261enc.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libavcodec/h261enc.h b/libavcodec/h261enc.h
new file mode 100644
index 0000000000..0a01858be5
--- /dev/null
+++ b/libavcodec/h261enc.h
@@ -0,0 +1,40 @@
+/*
+ * H.261 encoder
+ * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
+ * Copyright (c) 2004 Maarten Daniels
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * H.261 encoder header.
+ */
+
+#ifndef AVCODEC_H261ENC_H
+#define AVCODEC_H261ENC_H
+
+#include "mpegvideo.h"
+
+int ff_h261_get_picture_format(int width, int height);
+void ff_h261_reorder_mb_index(MpegEncContext *s);
+void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64],
+ int motion_x, int motion_y);
+void ff_h261_encode_picture_header(MpegEncContext *s, int picture_number);
+void ff_h261_encode_init(MpegEncContext *s);
+
+#endif