Changeset aa02864cbab21136b17322841c0b845b9b2c3145
- 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
| r1309f14 |
raa02864 |
|
| 33 | 33 | #include "vlc_filter.h" |
|---|
| 34 | 34 | |
|---|
| | 35 | #include "math.h" |
|---|
| | 36 | |
|---|
| 35 | 37 | /***************************************************************************** |
|---|
| 36 | 38 | * Local prototypes |
|---|
| … | … | |
| 49 | 51 | static void get_green_from_yuv422( picture_t *, picture_t *, int, int, int ); |
|---|
| 50 | 52 | static void get_blue_from_yuv422( picture_t *, picture_t *, int, int, int ); |
|---|
| 51 | | static void make_projection_matrix( int color, int *matrix ); |
|---|
| | 53 | static void make_projection_matrix( filter_t *, int color, int *matrix ); |
|---|
| 52 | 54 | static void get_custom_from_yuv420( picture_t *, picture_t *, int, int, int, int * ); |
|---|
| 53 | 55 | static void get_custom_from_yuv422( picture_t *, picture_t *, int, int, int, int * ); |
|---|
| … | … | |
| 126 | 128 | break; |
|---|
| 127 | 129 | default: |
|---|
| 128 | | make_projection_matrix( p_filter->p_sys->i_color, |
|---|
| | 130 | make_projection_matrix( p_filter, p_filter->p_sys->i_color, |
|---|
| 129 | 131 | p_filter->p_sys->projection_matrix ); |
|---|
| 130 | 132 | break; |
|---|
| … | … | |
| 263 | 265 | } |
|---|
| 264 | 266 | } |
|---|
| 265 | | static void make_projection_matrix( int color, int *matrix ) |
|---|
| | 267 | static void make_projection_matrix( filter_t *p_filter, int color, int *matrix ) |
|---|
| 266 | 268 | { |
|---|
| 267 | 269 | double left_matrix[9] = |
|---|
| … | … | |
| 288 | 290 | double result[9]; |
|---|
| 289 | 291 | 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 ); |
|---|
| 293 | 295 | mmult( result1, rgb_matrix, right_matrix ); |
|---|
| 294 | 296 | mmult( result, left_matrix, result1 ); |
|---|
| … | … | |
| 296 | 298 | { |
|---|
| 297 | 299 | 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 | |
|---|
| 302 | 307 | static void get_custom_from_yuv420( picture_t *p_inpic, picture_t *p_outpic, |
|---|
| 303 | 308 | int yp, int up, int vp, int *m ) |
|---|
| … | … | |
| 705 | 710 | break; |
|---|
| 706 | 711 | default: |
|---|
| 707 | | make_projection_matrix( p_sys->i_color, |
|---|
| | 712 | make_projection_matrix( (filter_t *)p_this, p_sys->i_color, |
|---|
| 708 | 713 | p_sys->projection_matrix ); |
|---|
| 709 | 714 | break; |
|---|