summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-02 11:43:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-02 12:33:54 +0100
commitce7f1c76bd8fc3b4b2dc013ea7e635ed26a8c9fd (patch)
tree8be215ba20ca416953db67b910cd23bd8988e312 /libavcodec
parent641358addcffe0cca55c547316781b11e9315dbc (diff)
downloadffmpeg-ce7f1c76bd8fc3b4b2dc013ea7e635ed26a8c9fd.tar.gz
avcodec/hevc: more whitespaces to reduce difference to 064698d381e1e7790f21b0199a8930ea04e2e942
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc.c1
-rw-r--r--libavcodec/hevc.h3
-rw-r--r--libavcodec/hevc_cabac.c3
-rw-r--r--libavcodec/hevc_filter.c1
-rw-r--r--libavcodec/hevc_parser.c2
-rw-r--r--libavcodec/hevc_ps.c43
-rw-r--r--libavcodec/hevcdsp.c4
-rw-r--r--libavcodec/hevcpred.c1
-rw-r--r--libavcodec/hevcpred_template.c2
9 files changed, 33 insertions, 27 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 324ba2ab3b..642ab6857c 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -29,6 +29,7 @@
#include "libavutil/internal.h"
#include "libavutil/md5.h"
#include "libavutil/opt.h"
+
#include "libavutil/pixdesc.h"
#include "bytestream.h"
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index 66556ae25f..a1fa85586c 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -33,6 +33,7 @@
#include "hevcpred.h"
#include "hevcdsp.h"
#include "internal.h"
+
#include "thread.h"
#include "videodsp.h"
@@ -951,7 +952,6 @@ int ff_hevc_transform_skip_flag_decode(HEVCContext *s, int c_idx);
* Get the number of candidate references for the current frame.
*/
int ff_hevc_frame_nb_refs(HEVCContext *s);
-
int ff_hevc_set_new_ref(HEVCContext *s, AVFrame **frame, int poc);
/**
@@ -981,6 +981,7 @@ int ff_hevc_cu_qp_delta_sign_flag(HEVCContext *s);
int ff_hevc_cu_qp_delta_abs(HEVCContext *s);
void ff_hevc_hls_filter(HEVCContext *s, int x, int y);
void ff_hevc_hls_filters(HEVCContext *s, int x_ctb, int y_ctb, int ctb_size);
+
void ff_hevc_hls_residual_coding(HEVCContext *s, int x0, int y0,
int log2_trafo_size, enum ScanType scan_idx,
int c_idx);
diff --git a/libavcodec/hevc_cabac.c b/libavcodec/hevc_cabac.c
index a8cf9a78fa..43fd8924bc 100644
--- a/libavcodec/hevc_cabac.c
+++ b/libavcodec/hevc_cabac.c
@@ -320,8 +320,7 @@ static const uint8_t init_values[3][HEVC_CONTEXTS] = {
154, 196, 167, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121,
136, 122, 169, 208, 166, 167, 154, 152, 167, 182,
// coeff_abs_level_greater2_flag
- 107, 167, 91, 107, 107, 167,
- },
+ 107, 167, 91, 107, 107, 167, },
};
static const uint8_t scan_1x1[1] = {
diff --git a/libavcodec/hevc_filter.c b/libavcodec/hevc_filter.c
index a2b4f68a62..8d967a3d7f 100644
--- a/libavcodec/hevc_filter.c
+++ b/libavcodec/hevc_filter.c
@@ -28,6 +28,7 @@
#include "cabac_functions.h"
#include "golomb.h"
#include "hevc.h"
+
#include "bit_depth_template.c"
#define LUMA 0
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index c8af881809..3801e1ffa1 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -300,9 +300,9 @@ static int hevc_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
return i - 3;
} else { // no parameter set at the beginning of the stream
return 0;
+ }
}
}
- }
return 0;
}
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 3e84692273..073ec7396b 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -822,12 +822,12 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
sps->nb_st_rps = get_ue_golomb_long(gb);
if (sps->nb_st_rps > MAX_SHORT_TERM_RPS_COUNT) {
- av_log(s->avctx, AV_LOG_ERROR,
- "Too many short term RPS: %d.\n",
+ av_log(s->avctx, AV_LOG_ERROR,
+ "Too many short term RPS: %d.\n",
sps->nb_st_rps);
ret = AVERROR_INVALIDDATA;
- goto err;
- }
+ goto err;
+ }
for (i = 0; i < sps->nb_st_rps; i++) {
if ((ret = ff_hevc_decode_short_term_rps(s, &sps->st_rps[i],
sps, 0)) < 0)
@@ -873,9 +873,10 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
sps->output_width, sps->output_height);
if (s->avctx->err_recognition & AV_EF_EXPLODE) {
ret = AVERROR_INVALIDDATA;
- goto err;
- }
- av_log(s->avctx, AV_LOG_WARNING, "Displaying the whole video surface.\n");
+ goto err;
+ }
+ av_log(s->avctx, AV_LOG_WARNING,
+ "Displaying the whole video surface.\n");
sps->pic_conf_win.left_offset =
sps->pic_conf_win.right_offset =
sps->pic_conf_win.top_offset =
@@ -1018,8 +1019,8 @@ int ff_hevc_decode_nal_pps(HEVCContext *s)
if (pps_id >= MAX_PPS_COUNT) {
av_log(s->avctx, AV_LOG_ERROR, "PPS id out of range: %d\n", pps_id);
ret = AVERROR_INVALIDDATA;
- goto err;
- }
+ goto err;
+ }
pps->sps_id = get_ue_golomb_long(gb);
if (pps->sps_id >= MAX_SPS_COUNT) {
av_log(s->avctx, AV_LOG_ERROR, "SPS id out of range: %d\n", pps->sps_id);
@@ -1082,11 +1083,11 @@ int ff_hevc_decode_nal_pps(HEVCContext *s)
pps->num_tile_rows = get_ue_golomb_long(gb) + 1;
if (pps->num_tile_columns == 0 ||
pps->num_tile_columns >= sps->width) {
- av_log(s->avctx, AV_LOG_ERROR, "num_tile_columns_minus1 out of range: %d\n",
- pps->num_tile_columns - 1);
- ret = AVERROR_INVALIDDATA;
- goto err;
- }
+ av_log(s->avctx, AV_LOG_ERROR, "num_tile_columns_minus1 out of range: %d\n",
+ pps->num_tile_columns - 1);
+ ret = AVERROR_INVALIDDATA;
+ goto err;
+ }
if (pps->num_tile_rows == 0 ||
pps->num_tile_rows >= sps->height) {
av_log(s->avctx, AV_LOG_ERROR, "num_tile_rows_minus1 out of range: %d\n",
@@ -1112,8 +1113,8 @@ int ff_hevc_decode_nal_pps(HEVCContext *s)
if (sum >= sps->ctb_width) {
av_log(s->avctx, AV_LOG_ERROR, "Invalid tile widths.\n");
ret = AVERROR_INVALIDDATA;
- goto err;
- }
+ goto err;
+ }
pps->column_width[pps->num_tile_columns - 1] = sps->ctb_width - sum;
sum = 0;
@@ -1168,8 +1169,8 @@ int ff_hevc_decode_nal_pps(HEVCContext *s)
av_log(s->avctx, AV_LOG_ERROR, "log2_parallel_merge_level_minus2 out of range: %d\n",
pps->log2_parallel_merge_level - 2);
ret = AVERROR_INVALIDDATA;
- goto err;
- }
+ goto err;
+ }
pps->slice_header_extension_present_flag = get_bits1(gb);
pps->pps_extension_flag = get_bits1(gb);
@@ -1189,9 +1190,9 @@ int ff_hevc_decode_nal_pps(HEVCContext *s)
pps->row_height = av_malloc_array(pps->num_tile_rows, sizeof(*pps->row_height));
}
if (!pps->column_width || !pps->row_height) {
- ret = AVERROR(ENOMEM);
- goto err;
- }
+ ret = AVERROR(ENOMEM);
+ goto err;
+ }
for (i = 0; i < pps->num_tile_columns; i++) {
pps->column_width[i] = ((i + 1) * sps->ctb_width) / pps->num_tile_columns -
diff --git a/libavcodec/hevcdsp.c b/libavcodec/hevcdsp.c
index 6c40caf0ac..d6fafdc403 100644
--- a/libavcodec/hevcdsp.c
+++ b/libavcodec/hevcdsp.c
@@ -161,13 +161,13 @@ void ff_hevc_dsp_init(HEVCDSPContext *hevcdsp, int bit_depth)
hevcdsp->put_hevc_epel[0][1] = FUNC(put_hevc_epel_h, depth); \
hevcdsp->put_hevc_epel[1][0] = FUNC(put_hevc_epel_v, depth); \
hevcdsp->put_hevc_epel[1][1] = FUNC(put_hevc_epel_hv, depth); \
- \
+ \
\
hevcdsp->put_unweighted_pred = FUNC(put_unweighted_pred, depth); \
hevcdsp->put_weighted_pred_avg = FUNC(put_weighted_pred_avg, depth); \
\
hevcdsp->weighted_pred = FUNC(weighted_pred, depth); \
- hevcdsp->weighted_pred_avg = FUNC(weighted_pred_avg, depth); \
+ hevcdsp->weighted_pred_avg = FUNC(weighted_pred_avg, depth); \
hevcdsp->hevc_h_loop_filter_luma = FUNC(hevc_h_loop_filter_luma, depth); \
hevcdsp->hevc_v_loop_filter_luma = FUNC(hevc_v_loop_filter_luma, depth); \
hevcdsp->hevc_h_loop_filter_chroma = FUNC(hevc_h_loop_filter_chroma, depth); \
diff --git a/libavcodec/hevcpred.c b/libavcodec/hevcpred.c
index 4ab885634d..e4987f8eca 100644
--- a/libavcodec/hevcpred.c
+++ b/libavcodec/hevcpred.c
@@ -21,6 +21,7 @@
*/
#include "hevc.h"
+
#include "hevcpred.h"
#define BIT_DEPTH 8
diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c
index 86097234f3..2276023252 100644
--- a/libavcodec/hevcpred_template.c
+++ b/libavcodec/hevcpred_template.c
@@ -21,6 +21,7 @@
*/
#include "libavutil/pixdesc.h"
+
#include "bit_depth_template.c"
#include "hevcpred.h"
@@ -557,4 +558,5 @@ static void FUNC(pred_angular_3)(uint8_t *src, const uint8_t *top,
{
FUNC(pred_angular)(src, top, left, stride, c_idx, mode, 1 << 5);
}
+
#undef POS