summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-26 15:04:29 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-26 15:04:29 +0100
commitee38234c43b6b3280304be7a43dc569cef683c43 (patch)
treed8988b87ec816f608ac38eb18a2d236220a3ac8a /libavcodec/h264.h
parent79aafd43fd255fc04e4f4db4c45d6d1f5a9b9fff (diff)
parente481458bc308ee838deaeacac51929514762e7a7 (diff)
downloadffmpeg-streaming-ee38234c43b6b3280304be7a43dc569cef683c43.zip
ffmpeg-streaming-ee38234c43b6b3280304be7a43dc569cef683c43.tar.gz
Merge commit 'e481458bc308ee838deaeacac51929514762e7a7'
* commit 'e481458bc308ee838deaeacac51929514762e7a7': h264: factor out pred weight table parsing into a separate file Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 6d6629b..e655995 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -33,6 +33,7 @@
#include "cabac.h"
#include "error_resilience.h"
#include "get_bits.h"
+#include "h264_parse.h"
#include "h264chroma.h"
#include "h264dsp.h"
#include "h264pred.h"
@@ -384,17 +385,7 @@ typedef struct H264SliceContext {
int slice_alpha_c0_offset;
int slice_beta_offset;
- // Weighted pred stuff
- int use_weight;
- int use_weight_chroma;
- int luma_log2_weight_denom;
- int chroma_log2_weight_denom;
- int luma_weight_flag[2]; ///< 7.4.3.2 luma_weight_lX_flag
- int chroma_weight_flag[2]; ///< 7.4.3.2 chroma_weight_lX_flag
- // The following 2 can be changed to int8_t but that causes 10cpu cycles speedloss
- int luma_weight[48][2][2];
- int chroma_weight[48][2][2][2];
- int implicit_weight[48][48][2];
+ H264PredWeightTable pwt;
int prev_mb_skipped;
int next_mb_skipped;
@@ -1213,7 +1204,6 @@ int ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl);
void ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl, int y, int height);
int ff_init_poc(H264Context *h, int pic_field_poc[2], int *pic_poc);
-int ff_pred_weight_table(H264Context *h, H264SliceContext *sl);
int ff_set_ref_count(H264Context *h, H264SliceContext *sl);
int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl);
OpenPOWER on IntegriCloud