mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 12:27:18 +00:00
avcodec/mpegutils: Move definitions to better places
FRAME_SKIPPED -> h263dec.h CANDIDATE_MB_TYPE_* -> mpegvideoenc.h INPLACE_OFFSET -> mpegvideoenc.h enum OutputFormat -> mpegvideo.h Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
908a73df31
commit
66923165d5
@ -42,7 +42,6 @@
|
||||
#include "mpeg4video.h"
|
||||
#include "mpeg4videodec.h"
|
||||
#include "mpeg4videodefs.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "mpegvideodec.h"
|
||||
#include "msmpeg4dec.h"
|
||||
|
@ -23,6 +23,11 @@
|
||||
#include "mpegvideo.h"
|
||||
#include "vlc.h"
|
||||
|
||||
/**
|
||||
* Return value for header parsers if frame is not coded.
|
||||
* */
|
||||
#define FRAME_SKIPPED 100
|
||||
|
||||
// The defines below define the number of bits that are read at once for
|
||||
// reading vlc values. Changing these may improve speed and data cache needs
|
||||
// be aware though that decreasing them may need the number of stages that is
|
||||
|
@ -19,12 +19,10 @@
|
||||
*/
|
||||
|
||||
#include "codec_internal.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "mpegvideodec.h"
|
||||
#include "h263data.h"
|
||||
#include "h263dec.h"
|
||||
#include "mpegvideodata.h"
|
||||
|
||||
/* don't understand why they choose a different header ! */
|
||||
int ff_intel_h263_decode_picture_header(MpegEncContext *s)
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/thread.h"
|
||||
#include "codec_internal.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "h263.h"
|
||||
#include "h263enc.h"
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "motion_est.h"
|
||||
#include "mpegpicture.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "refstruct.h"
|
||||
#include "threadframe.h"
|
||||
|
||||
|
@ -27,11 +27,6 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
|
||||
/**
|
||||
* Return value for header parsers if frame is not coded.
|
||||
* */
|
||||
#define FRAME_SKIPPED 100
|
||||
|
||||
/* picture type */
|
||||
#define PICT_TOP_FIELD 1
|
||||
#define PICT_BOTTOM_FIELD 2
|
||||
@ -93,35 +88,6 @@
|
||||
|
||||
#define HAS_CBP(a) ((a) & MB_TYPE_CBP)
|
||||
|
||||
/* MB types for encoding */
|
||||
#define CANDIDATE_MB_TYPE_INTRA (1 << 0)
|
||||
#define CANDIDATE_MB_TYPE_INTER (1 << 1)
|
||||
#define CANDIDATE_MB_TYPE_INTER4V (1 << 2)
|
||||
#define CANDIDATE_MB_TYPE_SKIPPED (1 << 3)
|
||||
|
||||
#define CANDIDATE_MB_TYPE_DIRECT (1 << 4)
|
||||
#define CANDIDATE_MB_TYPE_FORWARD (1 << 5)
|
||||
#define CANDIDATE_MB_TYPE_BACKWARD (1 << 6)
|
||||
#define CANDIDATE_MB_TYPE_BIDIR (1 << 7)
|
||||
|
||||
#define CANDIDATE_MB_TYPE_INTER_I (1 << 8)
|
||||
#define CANDIDATE_MB_TYPE_FORWARD_I (1 << 9)
|
||||
#define CANDIDATE_MB_TYPE_BACKWARD_I (1 << 10)
|
||||
#define CANDIDATE_MB_TYPE_BIDIR_I (1 << 11)
|
||||
|
||||
#define CANDIDATE_MB_TYPE_DIRECT0 (1 << 12)
|
||||
|
||||
#define INPLACE_OFFSET 16
|
||||
|
||||
enum OutputFormat {
|
||||
FMT_MPEG1,
|
||||
FMT_H261,
|
||||
FMT_H263,
|
||||
FMT_MJPEG,
|
||||
FMT_SPEEDHQ,
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Draw a horizontal band if supported.
|
||||
*
|
||||
|
@ -28,7 +28,6 @@
|
||||
#ifndef AVCODEC_MPEGVIDEO_H
|
||||
#define AVCODEC_MPEGVIDEO_H
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "blockdsp.h"
|
||||
#include "error_resilience.h"
|
||||
#include "fdctdsp.h"
|
||||
@ -44,7 +43,6 @@
|
||||
#include "pixblockdsp.h"
|
||||
#include "put_bits.h"
|
||||
#include "ratecontrol.h"
|
||||
#include "mpegutils.h"
|
||||
#include "qpeldsp.h"
|
||||
#include "videodsp.h"
|
||||
|
||||
@ -61,6 +59,14 @@ typedef struct ScanTable {
|
||||
uint8_t raster_end[64];
|
||||
} ScanTable;
|
||||
|
||||
enum OutputFormat {
|
||||
FMT_MPEG1,
|
||||
FMT_H261,
|
||||
FMT_H263,
|
||||
FMT_MJPEG,
|
||||
FMT_SPEEDHQ,
|
||||
};
|
||||
|
||||
/**
|
||||
* MpegEncContext.
|
||||
*/
|
||||
@ -283,7 +289,7 @@ typedef struct MpegEncContext {
|
||||
int mb_x, mb_y;
|
||||
int mb_skip_run;
|
||||
int mb_intra;
|
||||
uint16_t *mb_type; ///< Table for candidate MB types for encoding (defines in mpegutils.h)
|
||||
uint16_t *mb_type; ///< Table for candidate MB types for encoding (defines in mpegvideoenc.h)
|
||||
|
||||
int block_index[6]; ///< index to current MB in block based arrays with edges
|
||||
int block_wrap[6];
|
||||
|
@ -34,6 +34,25 @@
|
||||
#include "mpegvideo.h"
|
||||
|
||||
#define UNI_AC_ENC_INDEX(run,level) ((run)*128 + (level))
|
||||
#define INPLACE_OFFSET 16
|
||||
|
||||
/* MB types for encoding */
|
||||
#define CANDIDATE_MB_TYPE_INTRA (1 << 0)
|
||||
#define CANDIDATE_MB_TYPE_INTER (1 << 1)
|
||||
#define CANDIDATE_MB_TYPE_INTER4V (1 << 2)
|
||||
#define CANDIDATE_MB_TYPE_SKIPPED (1 << 3)
|
||||
|
||||
#define CANDIDATE_MB_TYPE_DIRECT (1 << 4)
|
||||
#define CANDIDATE_MB_TYPE_FORWARD (1 << 5)
|
||||
#define CANDIDATE_MB_TYPE_BACKWARD (1 << 6)
|
||||
#define CANDIDATE_MB_TYPE_BIDIR (1 << 7)
|
||||
|
||||
#define CANDIDATE_MB_TYPE_INTER_I (1 << 8)
|
||||
#define CANDIDATE_MB_TYPE_FORWARD_I (1 << 9)
|
||||
#define CANDIDATE_MB_TYPE_BACKWARD_I (1 << 10)
|
||||
#define CANDIDATE_MB_TYPE_BIDIR_I (1 << 11)
|
||||
|
||||
#define CANDIDATE_MB_TYPE_DIRECT0 (1 << 12)
|
||||
|
||||
/* mpegvideo_enc common options */
|
||||
#define FF_MPV_FLAG_SKIP_RD 0x0001
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "hwaccel_internal.h"
|
||||
#include "internal.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "nvdec.h"
|
||||
#include "decode.h"
|
||||
|
@ -32,7 +32,6 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "ratecontrol.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideoenc.h"
|
||||
#include "libavutil/eval.h"
|
||||
|
||||
|
@ -38,7 +38,6 @@
|
||||
#include "h263data.h"
|
||||
#include "h263dec.h"
|
||||
#include "mpeg_er.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "mpegvideodec.h"
|
||||
#include "mpeg4video.h"
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "hwaccel_internal.h"
|
||||
#include "hwconfig.h"
|
||||
#include "mpeg_er.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "mpegvideodec.h"
|
||||
#include "msmpeg4_vc1_data.h"
|
||||
|
Loading…
Reference in New Issue
Block a user