int i_frame_size;
} out;
+ /**** thread synchronization starts here ****/
+
/* frame number/poc */
int i_frame;
int i_mb_prev_xy;
int i_mb_top_xy;
+ /**** thread synchronization ends here ****/
+ /* subsequence variables are either thread-local or constant,
+ * and won't be copied from one thread to another */
+
/* mb table */
int8_t *type; /* mb type */
int8_t *qp; /* mb qp */
// copy everything except the per-thread pointers and the constants.
memcpy( &dst->i_frame, &src->i_frame, offsetof(x264_t, mb.type) - offsetof(x264_t, i_frame) );
- memcpy( &dst->mb.i_type, &src->mb.i_type, offsetof(x264_t, rc) - offsetof(x264_t, mb.i_type) );
dst->stat = src->stat;
}