lavc/h264: move MB_TYPE defs from h264dec.h to h264_parse

Allows to stop including h264dec.h in h264data.c.
release/5.1
Anton Khirnov 3 years ago committed by Andreas Rheinhardt
parent 2f1716dcd6
commit ded77f5654
  1. 3
      libavcodec/h264_parse.h
  2. 2
      libavcodec/h264data.c
  3. 2
      libavcodec/h264dec.h

@ -33,6 +33,9 @@
#include "get_bits.h" #include "get_bits.h"
#include "h264_ps.h" #include "h264_ps.h"
#define MB_TYPE_REF0 MB_TYPE_ACPRED // dirty but it fits in 16 bit
#define MB_TYPE_8x8DCT 0x01000000
// This table must be here because scan8[constant] must be known at compiletime // This table must be here because scan8[constant] must be known at compiletime
static const uint8_t scan8[16 * 3 + 3] = { static const uint8_t scan8[16 * 3 + 3] = {
4 + 1 * 8, 5 + 1 * 8, 4 + 2 * 8, 5 + 2 * 8, 4 + 1 * 8, 5 + 1 * 8, 4 + 2 * 8, 5 + 2 * 8,

@ -30,7 +30,7 @@
#include "libavutil/avutil.h" #include "libavutil/avutil.h"
#include "h264dec.h" #include "h264_parse.h"
#include "h264data.h" #include "h264data.h"
#include "mpegutils.h" #include "mpegutils.h"

@ -95,8 +95,6 @@
#define CHROMA422(h) ((h)->ps.sps->chroma_format_idc == 2) #define CHROMA422(h) ((h)->ps.sps->chroma_format_idc == 2)
#define CHROMA444(h) ((h)->ps.sps->chroma_format_idc == 3) #define CHROMA444(h) ((h)->ps.sps->chroma_format_idc == 3)
#define MB_TYPE_REF0 MB_TYPE_ACPRED // dirty but it fits in 16 bit
#define MB_TYPE_8x8DCT 0x01000000
#define IS_REF0(a) ((a) & MB_TYPE_REF0) #define IS_REF0(a) ((a) & MB_TYPE_REF0)
#define IS_8x8DCT(a) ((a) & MB_TYPE_8x8DCT) #define IS_8x8DCT(a) ((a) & MB_TYPE_8x8DCT)

Loading…
Cancel
Save