Move noise reduction data into thread-specific data.
Use correct reference list for L1 temporal predictors.
const uint8_t *chroma_qp_table; /* includes both the nonlinear luma->chroma mapping and chroma_qp_offset */
- ALIGNED_16( uint32_t nr_residual_sum[2][64] );
- ALIGNED_16( uint16_t nr_offset[2][64] );
- uint32_t nr_count[2];
-
/* Slice header */
x264_slice_header_t sh;
} stat;
+ ALIGNED_16( uint32_t nr_residual_sum[2][64] );
+ ALIGNED_16( uint16_t nr_offset[2][64] );
+ uint32_t nr_count[2];
+
void *scratch_buffer; /* for any temporary storage that doesn't want repeated malloc */
/* CPU functions dependents */
if( h->fref0[0]->i_ref[0] > 0 )
{
x264_frame_t *l0 = h->fref0[0];
+ x264_frame_t **fref = i_list ? h->fref1 : h->fref0;
int field = h->mb.i_mb_y&1;
int curpoc = h->fdec->i_poc + field*h->sh.i_delta_poc_bottom;
- int refpoc = h->fref0[i_ref>>h->sh.b_mbaff]->i_poc;
+ int refpoc = fref[i_ref>>h->sh.b_mbaff]->i_poc;
if( h->sh.b_mbaff && field^(i_ref&1) )
refpoc += h->sh.i_delta_poc_bottom;
h->out.i_nal = 0;
- x264_noise_reduction_update( thread_current );
+ x264_noise_reduction_update( h );
/* ---------------------- Compute/Print statistics --------------------- */
x264_thread_sync_stat( h, h->thread[0] );