You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/motion_est: Move ff_h263_round_chroma() to h263.h
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -27,6 +27,16 @@
|
||||
|
||||
#define H263_GOB_HEIGHT(h) ((h) <= 400 ? 1 : (h) <= 800 ? 2 : 4)
|
||||
|
||||
static inline int ff_h263_round_chroma(int x)
|
||||
{
|
||||
//FIXME static or not?
|
||||
static const uint8_t h263_chroma_roundtab[16] = {
|
||||
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
||||
0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1,
|
||||
};
|
||||
return h263_chroma_roundtab[x & 0xf] + (x >> 3);
|
||||
}
|
||||
|
||||
av_const int ff_h263_aspect_to_info(AVRational aspect);
|
||||
int16_t *ff_h263_pred_motion(MpegEncContext * s, int block, int dir,
|
||||
int *px, int *py);
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include <limits.h>
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "h263.h"
|
||||
#include "mathops.h"
|
||||
#include "motion_est.h"
|
||||
#include "mpegutils.h"
|
||||
|
@ -106,16 +106,6 @@ typedef struct MotionEstContext {
|
||||
int size, int h);
|
||||
} MotionEstContext;
|
||||
|
||||
static inline int ff_h263_round_chroma(int x)
|
||||
{
|
||||
//FIXME static or not?
|
||||
static const uint8_t h263_chroma_roundtab[16] = {
|
||||
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
||||
0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1,
|
||||
};
|
||||
return h263_chroma_roundtab[x & 0xf] + (x >> 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs one-time initialization of the MotionEstContext.
|
||||
*/
|
||||
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "decode.h"
|
||||
#include "h263.h"
|
||||
#include "h264chroma.h"
|
||||
#include "internal.h"
|
||||
#include "mpegutils.h"
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "h261.h"
|
||||
#include "h263.h"
|
||||
#include "mpegutils.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "mpeg4videodec.h"
|
||||
|
Reference in New Issue
Block a user