Merge commit '251cbb44003caf179fb17afbb8a6c56643c2a646'
authorClément Bœsch <u@pkh.me>
Fri, 29 Jul 2016 09:13:44 +0000 (11:13 +0200)
committerClément Bœsch <u@pkh.me>
Fri, 29 Jul 2016 09:13:44 +0000 (11:13 +0200)
* commit '251cbb44003caf179fb17afbb8a6c56643c2a646':
  h264: create a new header for common h264 definitions

Merged-by: Clément Bœsch <u@pkh.me>
1  2 
libavcodec/h264.h
libavcodec/h264_parse.c
libavcodec/h264_parser.c
libavcodec/h264_refs.c
libavcodec/h264_slice.c
libavcodec/h264dec.c
libavcodec/h264dec.h
libavcodec/omx.c
libavcodec/vaapi_encode_h264.c
libavformat/mxfenc.c

index 0000000,650371f..72b133b
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,45 +1,45 @@@
 - * This file is part of Libav.
+ /*
 - * Libav is free software; you can redistribute it and/or
++ * This file is part of FFmpeg.
+  *
 - * Libav is distributed in the hope that it will be useful,
++ * 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.
+  *
 - * License along with Libav; if not, write to the Free Software
++ * 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.264 common definitions
+  */
+ #ifndef AVCODEC_H264_H
+ #define AVCODEC_H264_H
+ /* NAL unit types */
+ enum {
+     NAL_SLICE           = 1,
+     NAL_DPA             = 2,
+     NAL_DPB             = 3,
+     NAL_DPC             = 4,
+     NAL_IDR_SLICE       = 5,
+     NAL_SEI             = 6,
+     NAL_SPS             = 7,
+     NAL_PPS             = 8,
+     NAL_AUD             = 9,
+     NAL_END_SEQUENCE    = 10,
+     NAL_END_STREAM      = 11,
+     NAL_FILLER_DATA     = 12,
+     NAL_SPS_EXT         = 13,
+     NAL_AUXILIARY_SLICE = 19,
+ };
+ #endif /* AVCODEC_H264_H */
Simple merge
Simple merge
  
  #include <inttypes.h>
  
 +#include "libavutil/avassert.h"
  #include "internal.h"
  #include "avcodec.h"
+ #include "h264.h"
  #include "h264dec.h"
  #include "golomb.h"
  #include "mpegutils.h"
Simple merge
Simple merge
  #define IS_REF0(a)         ((a) & MB_TYPE_REF0)
  #define IS_8x8DCT(a)       ((a) & MB_TYPE_8x8DCT)
  
 -#define QP_MAX_NUM (51 + 2 * 6)           // The maximum supported qp
 +#define QP_MAX_NUM (51 + 6*6)           // The maximum supported qp
  
- /* NAL unit types */
- enum {
-     NAL_SLICE           = 1,
-     NAL_DPA             = 2,
-     NAL_DPB             = 3,
-     NAL_DPC             = 4,
-     NAL_IDR_SLICE       = 5,
-     NAL_SEI             = 6,
-     NAL_SPS             = 7,
-     NAL_PPS             = 8,
-     NAL_AUD             = 9,
-     NAL_END_SEQUENCE    = 10,
-     NAL_END_STREAM      = 11,
-     NAL_FILLER_DATA     = 12,
-     NAL_SPS_EXT         = 13,
-     NAL_AUXILIARY_SLICE = 19,
- };
  /**
   * Sequence parameter set
   */
Simple merge
Simple merge
  #include <math.h>
  #include <time.h>
  
 +#include "libavutil/opt.h"
  #include "libavutil/random_seed.h"
 +#include "libavutil/timecode.h"
 +#include "libavutil/avassert.h"
 +#include "libavutil/pixdesc.h"
  #include "libavutil/time_internal.h"
  #include "libavcodec/bytestream.h"
- #include "libavcodec/h264dec.h"
 +#include "libavcodec/dnxhddata.h"
++#include "libavcodec/h264.h"
 +#include "libavcodec/internal.h"
  #include "audiointerleave.h"
  #include "avformat.h"
 +#include "avio_internal.h"
  #include "internal.h"
  #include "mxf.h"
 -
 -static const int NTSC_samples_per_frame[] = { 1602, 1601, 1602, 1601, 1602, 0 };
 -static const int PAL_samples_per_frame[]  = { 1920, 0 };
 +#include "config.h"
  
  extern AVOutputFormat ff_mxf_d10_muxer;
 +extern AVOutputFormat ff_mxf_opatom_muxer;
  
  #define EDIT_UNITS_PER_BODY 250
  #define KAG_SIZE 512