| 1 |
/* { dg-require-visibility "" } */ |
| 2 |
/* { dg-options "-fvisibility=internal -fPIC" { target fpic } } */ |
| 3 |
/* { dg-additional-options "-std=gnu17" } */ |
| 4 |
|
| 5 |
extern char num_4x4_blocks_high_lookup, num_4x4_blocks_wide_lookup, |
| 6 |
vp9_foreach_transformed_block_in_plane_xd_0_0_0; |
| 7 |
int vp9_first_pass_encode_tile_mb_row_cpi_0, |
| 8 |
vp9_first_pass_encode_tile_mb_row_tile_data_0_0, vp9_encode_sby_pass1_x; |
| 9 |
typedef void foreach_transformed_block_visitor(); |
| 10 |
void vp9_encode_sby_pass1(); |
| 11 |
typedef struct { |
| 12 |
long coded_error; |
| 13 |
long sr_coded_error; |
| 14 |
long frame_noise_energy; |
| 15 |
long intra_error; |
| 16 |
} FIRSTPASS_DATA; |
| 17 |
typedef struct { |
| 18 |
FIRSTPASS_DATA fp_data; |
| 19 |
} TileDataEnc; |
| 20 |
TileDataEnc accumulate_fp_mb_row_stat_this_tile; |
| 21 |
void vp9_first_pass_encode_tile_mb_row(FIRSTPASS_DATA *fp_acc_data) { |
| 22 |
int mb_col_end = vp9_first_pass_encode_tile_mb_row_tile_data_0_0; |
| 23 |
for (; mb_col_end;) { |
| 24 |
vp9_encode_sby_pass1(); |
| 25 |
if (vp9_first_pass_encode_tile_mb_row_cpi_0) { |
| 26 |
FIRSTPASS_DATA __trans_tmp_1 = *fp_acc_data; |
| 27 |
accumulate_fp_mb_row_stat_this_tile.fp_data.coded_error += |
| 28 |
accumulate_fp_mb_row_stat_this_tile.fp_data.sr_coded_error += |
| 29 |
__trans_tmp_1.sr_coded_error; |
| 30 |
accumulate_fp_mb_row_stat_this_tile.fp_data.frame_noise_energy += |
| 31 |
__trans_tmp_1.frame_noise_energy; |
| 32 |
accumulate_fp_mb_row_stat_this_tile.fp_data.intra_error += |
| 33 |
__trans_tmp_1.intra_error; |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
foreach_transformed_block_visitor vp9_foreach_transformed_block_in_plane_visit; |
| 38 |
void vp9_foreach_transformed_block_in_plane(void *arg) { |
| 39 |
int c, max_blocks_wide = num_4x4_blocks_wide_lookup; |
| 40 |
for (; num_4x4_blocks_high_lookup;) { |
| 41 |
c = 0; |
| 42 |
for (; c < max_blocks_wide; |
| 43 |
c += vp9_foreach_transformed_block_in_plane_xd_0_0_0) |
| 44 |
vp9_foreach_transformed_block_in_plane_visit(arg); |
| 45 |
} |
| 46 |
} |
| 47 |
void vp9_encode_sby_pass1() { |
| 48 |
vp9_foreach_transformed_block_in_plane(&vp9_encode_sby_pass1_x); |
| 49 |
} |