Changeset aa02864cbab21136b17322841c0b845b9b2c3145

Show
Ignore:
Timestamp:
31/03/07 22:00:03 (2 years ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1175371203 +0000
git-parent:

[1309f14889aed40073e79942e4919a21649ac474]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1175371203 +0000
Message:

convert a few printfs to msg_Dbg.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_filter/extract.c

    r1309f14 raa02864  
    3333#include "vlc_filter.h" 
    3434 
     35#include "math.h" 
     36 
    3537/***************************************************************************** 
    3638 * Local prototypes 
     
    4951static void get_green_from_yuv422( picture_t *, picture_t *, int, int, int ); 
    5052static void get_blue_from_yuv422( picture_t *, picture_t *, int, int, int ); 
    51 static void make_projection_matrix( int color, int *matrix ); 
     53static void make_projection_matrix( filter_t *, int color, int *matrix ); 
    5254static void get_custom_from_yuv420( picture_t *, picture_t *, int, int, int, int * ); 
    5355static void get_custom_from_yuv422( picture_t *, picture_t *, int, int, int, int * ); 
     
    126128            break; 
    127129        default: 
    128             make_projection_matrix( p_filter->p_sys->i_color, 
     130            make_projection_matrix( p_filter, p_filter->p_sys->i_color, 
    129131                                    p_filter->p_sys->projection_matrix ); 
    130132            break; 
     
    263265    } 
    264266} 
    265 static void make_projection_matrix( int color, int *matrix ) 
     267static void make_projection_matrix( filter_t *p_filter, int color, int *matrix ) 
    266268{ 
    267269    double left_matrix[9] = 
     
    288290    double result[9]; 
    289291    int i; 
    290     printf( "%f\n", red ); 
    291     printf( "%f\n", green ); 
    292     printf( "%f\n", blue ); 
     292    msg_Dbg( p_filter, "red: %f", red ); 
     293    msg_Dbg( p_filter, "green: %f", green ); 
     294    msg_Dbg( p_filter, "blue: %f", blue ); 
    293295    mmult( result1, rgb_matrix, right_matrix ); 
    294296    mmult( result, left_matrix, result1 ); 
     
    296298    { 
    297299        matrix[i] = (int)result[i]; 
    298         printf( "%d ", matrix[i] ); 
    299         if( i%3 == 2 ) printf( "\n" ); 
    300     } 
    301 
     300    } 
     301    msg_Dbg( p_filter, "Projection matrix:" ); 
     302    msg_Dbg( p_filter, "%6d %6d %6d", matrix[0], matrix[1], matrix[2] ); 
     303    msg_Dbg( p_filter, "%6d %6d %6d", matrix[3], matrix[4], matrix[5] ); 
     304    msg_Dbg( p_filter, "%6d %6d %6d", matrix[6], matrix[7], matrix[8] ); 
     305
     306 
    302307static void get_custom_from_yuv420( picture_t *p_inpic, picture_t *p_outpic, 
    303308                                    int yp, int up, int vp, int *m ) 
     
    705710                break; 
    706711            default: 
    707                 make_projection_matrix( p_sys->i_color, 
     712                make_projection_matrix( (filter_t *)p_this, p_sys->i_color, 
    708713                                        p_sys->projection_matrix ); 
    709714                break;