int i_nal_ref_idc; /* threads only */
/* We use only one SPS and one PPS */
- x264_sps_t sps_array[32];
+ x264_sps_t sps_array[1];
x264_sps_t *sps;
- x264_pps_t pps_array[256];
+ x264_pps_t pps_array[1];
x264_pps_t *pps;
int i_idr_pic_id;
enum profile_e
{
PROFILE_BASELINE = 66,
- PROFILE_MAIN = 77,
+ PROFILE_MAIN = 77,
PROFILE_EXTENTED = 88,
- PROFILE_HIGH = 100,
- PROFILE_HIGH10 = 110,
+ PROFILE_HIGH = 100,
+ PROFILE_HIGH10 = 110,
PROFILE_HIGH422 = 122,
PROFILE_HIGH444 = 144
};
int b_pic_order;
int i_num_slice_groups;
+#if 0
+ /* FIXME: if this stuff is ever needed, move SPS/PPS from x264_t
+ * to the heap, to avoid excessive memcpy'ing with threads. */
int i_slice_group_map_type;
/* i_slice_group_map_type == 0 */
int i_run_length[256]; /* FIXME */
/* i_slice_group_map_type == 6 */
int i_pic_size_in_map_units;
int i_slice_group_id[256]; /* FIXME */
+#endif
int i_num_ref_idx_l0_active;
int i_num_ref_idx_l1_active;
pps->b_pic_order = 0;
pps->i_num_slice_groups = 1;
+#if 0
if( pps->i_num_slice_groups > 1 )
{
int i;
}
}
}
+#endif
pps->i_num_ref_idx_l0_active = 1;
pps->i_num_ref_idx_l1_active = 1;
bs_write( s, 1, pps->b_pic_order );
bs_write_ue( s, pps->i_num_slice_groups - 1 );
+#if 0
if( pps->i_num_slice_groups > 1 )
{
int i;
}
}
}
+#endif
bs_write_ue( s, pps->i_num_ref_idx_l0_active - 1 );
bs_write_ue( s, pps->i_num_ref_idx_l1_active - 1 );