mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 19:32:13 +00:00
Merge commit 'e36a2f4c5280e2779b0e88974295a711cf8d88be'
* commit 'e36a2f4c5280e2779b0e88974295a711cf8d88be':
hevc: eliminate an unnecessary array
Conflicts:
libavcodec/hevc.c
See: 255086a7e0
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
453224f10b
@ -2123,15 +2123,15 @@ static int hls_coding_quadtree(HEVCContext *s, int x0, int y0,
|
|||||||
const int cb_size = 1 << log2_cb_size;
|
const int cb_size = 1 << log2_cb_size;
|
||||||
int ret;
|
int ret;
|
||||||
int qp_block_mask = (1<<(s->sps->log2_ctb_size - s->pps->diff_cu_qp_delta_depth)) - 1;
|
int qp_block_mask = (1<<(s->sps->log2_ctb_size - s->pps->diff_cu_qp_delta_depth)) - 1;
|
||||||
int split_cu_flag;
|
int split_cu;
|
||||||
|
|
||||||
lc->ct.depth = cb_depth;
|
lc->ct.depth = cb_depth;
|
||||||
if (x0 + cb_size <= s->sps->width &&
|
if (x0 + cb_size <= s->sps->width &&
|
||||||
y0 + cb_size <= s->sps->height &&
|
y0 + cb_size <= s->sps->height &&
|
||||||
log2_cb_size > s->sps->log2_min_cb_size) {
|
log2_cb_size > s->sps->log2_min_cb_size) {
|
||||||
split_cu_flag = ff_hevc_split_coding_unit_flag_decode(s, cb_depth, x0, y0);
|
split_cu = ff_hevc_split_coding_unit_flag_decode(s, cb_depth, x0, y0);
|
||||||
} else {
|
} else {
|
||||||
split_cu_flag = (log2_cb_size > s->sps->log2_min_cb_size);
|
split_cu = (log2_cb_size > s->sps->log2_min_cb_size);
|
||||||
}
|
}
|
||||||
if (s->pps->cu_qp_delta_enabled_flag &&
|
if (s->pps->cu_qp_delta_enabled_flag &&
|
||||||
log2_cb_size >= s->sps->log2_ctb_size - s->pps->diff_cu_qp_delta_depth) {
|
log2_cb_size >= s->sps->log2_ctb_size - s->pps->diff_cu_qp_delta_depth) {
|
||||||
@ -2144,7 +2144,7 @@ static int hls_coding_quadtree(HEVCContext *s, int x0, int y0,
|
|||||||
lc->tu.is_cu_chroma_qp_offset_coded = 0;
|
lc->tu.is_cu_chroma_qp_offset_coded = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (split_cu_flag) {
|
if (split_cu) {
|
||||||
const int cb_size_split = cb_size >> 1;
|
const int cb_size_split = cb_size >> 1;
|
||||||
const int x1 = x0 + cb_size_split;
|
const int x1 = x0 + cb_size_split;
|
||||||
const int y1 = y0 + cb_size_split;
|
const int y1 = y0 + cb_size_split;
|
||||||
|
Loading…
Reference in New Issue
Block a user