@ -1109,7 +1109,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
int trafo_size = 1 < < log2_trafo_size ;
ff_hevc_set_neighbour_available ( lc , x0 , y0 , trafo_size , trafo_size ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , x0 , y0 , 0 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , x0 , y0 , 0 ) ;
}
if ( cbf_luma | | cbf_cb [ 0 ] | | cbf_cr [ 0 ] | |
@ -1195,7 +1195,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
for ( i = 0 ; i < ( s - > ps . sps - > chroma_format_idc = = 2 ? 2 : 1 ) ; i + + ) {
if ( lc - > cu . pred_mode = = MODE_INTRA ) {
ff_hevc_set_neighbour_available ( lc , x0 , y0 + ( i < < log2_trafo_size_c ) , trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( s , x0 , y0 + ( i < < log2_trafo_size_c ) , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( lc , x0 , y0 + ( i < < log2_trafo_size_c ) , 1 ) ;
}
if ( cbf_cb [ i ] )
ff_hevc_hls_residual_coding ( lc , x0 , y0 + ( i < < log2_trafo_size_c ) ,
@ -1225,7 +1225,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
if ( lc - > cu . pred_mode = = MODE_INTRA ) {
ff_hevc_set_neighbour_available ( lc , x0 , y0 + ( i < < log2_trafo_size_c ) ,
trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( s , x0 , y0 + ( i < < log2_trafo_size_c ) , 2 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( lc , x0 , y0 + ( i < < log2_trafo_size_c ) , 2 ) ;
}
if ( cbf_cr [ i ] )
ff_hevc_hls_residual_coding ( lc , x0 , y0 + ( i < < log2_trafo_size_c ) ,
@ -1254,7 +1254,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
if ( lc - > cu . pred_mode = = MODE_INTRA ) {
ff_hevc_set_neighbour_available ( lc , xBase , yBase + ( i < < log2_trafo_size ) ,
trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , xBase , yBase + ( i < < log2_trafo_size ) , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , xBase , yBase + ( i < < log2_trafo_size ) , 1 ) ;
}
if ( cbf_cb [ i ] )
ff_hevc_hls_residual_coding ( lc , xBase , yBase + ( i < < log2_trafo_size ) ,
@ -1264,7 +1264,7 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
if ( lc - > cu . pred_mode = = MODE_INTRA ) {
ff_hevc_set_neighbour_available ( lc , xBase , yBase + ( i < < log2_trafo_size ) ,
trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , xBase , yBase + ( i < < log2_trafo_size ) , 2 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , xBase , yBase + ( i < < log2_trafo_size ) , 2 ) ;
}
if ( cbf_cr [ i ] )
ff_hevc_hls_residual_coding ( lc , xBase , yBase + ( i < < log2_trafo_size ) ,
@ -1276,26 +1276,26 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
int trafo_size_h = 1 < < ( log2_trafo_size_c + s - > ps . sps - > hshift [ 1 ] ) ;
int trafo_size_v = 1 < < ( log2_trafo_size_c + s - > ps . sps - > vshift [ 1 ] ) ;
ff_hevc_set_neighbour_available ( lc , x0 , y0 , trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( s , x0 , y0 , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( s , x0 , y0 , 2 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( lc , x0 , y0 , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( lc , x0 , y0 , 2 ) ;
if ( s - > ps . sps - > chroma_format_idc = = 2 ) {
ff_hevc_set_neighbour_available ( lc , x0 , y0 + ( 1 < < log2_trafo_size_c ) ,
trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( s , x0 , y0 + ( 1 < < log2_trafo_size_c ) , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( s , x0 , y0 + ( 1 < < log2_trafo_size_c ) , 2 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( lc , x0 , y0 + ( 1 < < log2_trafo_size_c ) , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size_c - 2 ] ( lc , x0 , y0 + ( 1 < < log2_trafo_size_c ) , 2 ) ;
}
} else if ( blk_idx = = 3 ) {
int trafo_size_h = 1 < < ( log2_trafo_size + 1 ) ;
int trafo_size_v = 1 < < ( log2_trafo_size + s - > ps . sps - > vshift [ 1 ] ) ;
ff_hevc_set_neighbour_available ( lc , xBase , yBase ,
trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , xBase , yBase , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , xBase , yBase , 2 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , xBase , yBase , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , xBase , yBase , 2 ) ;
if ( s - > ps . sps - > chroma_format_idc = = 2 ) {
ff_hevc_set_neighbour_available ( lc , xBase , yBase + ( 1 < < ( log2_trafo_size ) ) ,
ff_hevc_set_neighbour_available ( lc , xBase , yBase + ( 1 < < log2_trafo_size ) ,
trafo_size_h , trafo_size_v ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , xBase , yBase + ( 1 < < ( log2_trafo_size ) ) , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( s , xBase , yBase + ( 1 < < ( log2_trafo_size ) ) , 2 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , xBase , yBase + ( 1 < < log2_trafo_size ) , 1 ) ;
s - > hpc . intra_pred [ log2_trafo_size - 2 ] ( lc , xBase , yBase + ( 1 < < log2_trafo_size ) , 2 ) ;
}
}
}