Replace '#ifdef CONFIG_...' with '#if CONFIG_...'
This affects two places: * Fixes a compile error with frame-superres when highbitdepth is disabled. * Avoids including some supertx-related code when supertx is disabled BUG=aomedia:602 Change-Id: Idfc478fd88ade91d48c93cfd8abdd2bea86de898
This commit is contained in:
Родитель
846f10862a
Коммит
26762357b9
|
@ -902,7 +902,7 @@ void av1_superres_upscale(AV1_COMMON *cm, BufferPool *const pool) {
|
|||
|
||||
if (aom_alloc_frame_buffer(©_buffer, cm->width, cm->height,
|
||||
cm->subsampling_x, cm->subsampling_y,
|
||||
#ifdef CONFIG_HIGHBITDEPTH
|
||||
#if CONFIG_HIGHBITDEPTH
|
||||
cm->use_highbitdepth,
|
||||
#endif // CONFIG_HIGHBITDEPTH
|
||||
AOM_BORDER_IN_PIXELS, cm->byte_alignment))
|
||||
|
@ -933,7 +933,7 @@ void av1_superres_upscale(AV1_COMMON *cm, BufferPool *const pool) {
|
|||
if (aom_realloc_frame_buffer(
|
||||
frame_to_show, cm->superres_upscaled_width,
|
||||
cm->superres_upscaled_height, cm->subsampling_x, cm->subsampling_y,
|
||||
#ifdef CONFIG_HIGHBITDEPTH
|
||||
#if CONFIG_HIGHBITDEPTH
|
||||
cm->use_highbitdepth,
|
||||
#endif // CONFIG_HIGHBITDEPTH
|
||||
AOM_BORDER_IN_PIXELS, cm->byte_alignment, fb, cb, cb_priv))
|
||||
|
@ -945,7 +945,7 @@ void av1_superres_upscale(AV1_COMMON *cm, BufferPool *const pool) {
|
|||
if (aom_alloc_frame_buffer(frame_to_show, cm->superres_upscaled_width,
|
||||
cm->superres_upscaled_height, cm->subsampling_x,
|
||||
cm->subsampling_y,
|
||||
#ifdef CONFIG_HIGHBITDEPTH
|
||||
#if CONFIG_HIGHBITDEPTH
|
||||
cm->use_highbitdepth,
|
||||
#endif // CONFIG_HIGHBITDEPTH
|
||||
AOM_BORDER_IN_PIXELS, cm->byte_alignment))
|
||||
|
|
|
@ -141,7 +141,7 @@ static void alloc_tree_contexts(AV1_COMMON *cm, PC_TREE *tree,
|
|||
&tree->verticalb[1]);
|
||||
alloc_mode_context(cm, num_4x4_blk / 4, PARTITION_VERT_B,
|
||||
&tree->verticalb[2]);
|
||||
#ifdef CONFIG_SUPERTX
|
||||
#if CONFIG_SUPERTX
|
||||
alloc_mode_context(cm, num_4x4_blk, PARTITION_HORZ,
|
||||
&tree->horizontal_supertx);
|
||||
alloc_mode_context(cm, num_4x4_blk, PARTITION_VERT, &tree->vertical_supertx);
|
||||
|
@ -159,7 +159,7 @@ static void alloc_tree_contexts(AV1_COMMON *cm, PC_TREE *tree,
|
|||
alloc_mode_context(cm, num_4x4_blk, &tree->none);
|
||||
alloc_mode_context(cm, num_4x4_blk / 2, &tree->horizontal[0]);
|
||||
alloc_mode_context(cm, num_4x4_blk / 2, &tree->vertical[0]);
|
||||
#ifdef CONFIG_SUPERTX
|
||||
#if CONFIG_SUPERTX
|
||||
alloc_mode_context(cm, num_4x4_blk, &tree->horizontal_supertx);
|
||||
alloc_mode_context(cm, num_4x4_blk, &tree->vertical_supertx);
|
||||
alloc_mode_context(cm, num_4x4_blk, &tree->split_supertx);
|
||||
|
@ -190,7 +190,7 @@ static void free_tree_contexts(PC_TREE *tree) {
|
|||
free_mode_context(&tree->horizontal[1]);
|
||||
free_mode_context(&tree->vertical[0]);
|
||||
free_mode_context(&tree->vertical[1]);
|
||||
#ifdef CONFIG_SUPERTX
|
||||
#if CONFIG_SUPERTX
|
||||
free_mode_context(&tree->horizontal_supertx);
|
||||
free_mode_context(&tree->vertical_supertx);
|
||||
free_mode_context(&tree->split_supertx);
|
||||
|
|
|
@ -86,7 +86,7 @@ typedef struct PC_TREE {
|
|||
struct PC_TREE *split[4];
|
||||
PICK_MODE_CONTEXT *leaf_split[4];
|
||||
};
|
||||
#ifdef CONFIG_SUPERTX
|
||||
#if CONFIG_SUPERTX
|
||||
PICK_MODE_CONTEXT horizontal_supertx;
|
||||
PICK_MODE_CONTEXT vertical_supertx;
|
||||
PICK_MODE_CONTEXT split_supertx;
|
||||
|
|
Загрузка…
Ссылка в новой задаче