Beispiel #1
0
void x264_predict_16x16_dc_c( pixel *src )
{
    int dc = 0;
    int i;
    pixel4 dcsplat;

    for( i = 0; i < 16; i++ )
    {
        dc += src[-1 + i * FDEC_STRIDE];
        dc += src[i - FDEC_STRIDE];
    }
    dcsplat = PIXEL_SPLAT_X4( ( dc + 16 ) >> 5 );

#ifdef IDE_COMPILE
	    {
        int i = 0;
        for(  ; i < 16; i++ ) {
            (((x264_union32_t*)(src+ 0))->i) = dcsplat;
            (((x264_union32_t*)(src+ 4))->i) = dcsplat;
            (((x264_union32_t*)(src+ 8))->i) = dcsplat;
            (((x264_union32_t*)(src+12))->i) = dcsplat;
            src += 32;
        };
   }
#else
	PREDICT_16x16_DC( dcsplat );
#endif
}
Beispiel #2
0
static void x264_predict_16x16_dc_128_c( pixel *src )
{
#ifdef IDE_COMPILE
    { int i = 0; for(  ; i < 16; i++ ) { (((x264_union32_t*)(src+ 0))->i) = ((1 << (8 -1))*0x01010101U); (((x264_union32_t*)(src+ 4))->i) = ((1 << (8 -1))*0x01010101U); (((x264_union32_t*)(src+ 8))->i) = ((1 << (8 -1))*0x01010101U); (((x264_union32_t*)(src+12))->i) = ((1 << (8 -1))*0x01010101U); src += 32; }; }
#else
	PREDICT_16x16_DC( PIXEL_SPLAT_X4( 1 << (BIT_DEPTH-1) ) );
#endif
}
static void x264_predict_16x16_dc_top_c( pixel *src )
{
    int dc = 0;

    for( int i = 0; i < 16; i++ )
        dc += src[i - FDEC_STRIDE];
    pixel4 dcsplat = PIXEL_SPLAT_X4( ( dc + 8 ) >> 4 );

    PREDICT_16x16_DC( dcsplat );
}
Beispiel #4
0
static void x264_predict_16x16_dc_left_c( pixel *src )
{
    int dc = 0;
    pixel4 dcsplat;
    int i;

    for( i = 0; i < 16; i++ )
        dc += src[-1 + i * FDEC_STRIDE];
    dcsplat = PIXEL_SPLAT_X4( ( dc + 8 ) >> 4 );

    PREDICT_16x16_DC( dcsplat );
}
void x264_predict_16x16_dc_c( pixel *src )
{
    int dc = 0;

    for( int i = 0; i < 16; i++ )
    {
        dc += src[-1 + i * FDEC_STRIDE];
        dc += src[i - FDEC_STRIDE];
    }
    pixel4 dcsplat = PIXEL_SPLAT_X4( ( dc + 16 ) >> 5 );

    PREDICT_16x16_DC( dcsplat );
}
static void x264_predict_16x16_dc_128_c( pixel *src )
{
    PREDICT_16x16_DC( PIXEL_SPLAT_X4( 1 << (BIT_DEPTH-1) ) );
}