Changeset 62829b3b5eac81d4db269c6b1be7631e6a1f9beb
- Timestamp:
- 05/06/08 10:57:47
(2 months ago)
- Author:
- Jean-Paul Saman <jean-paul.saman@m2x.nl>
- git-committer:
- Jean-Paul Saman <jean-paul.saman@m2x.nl> 1210064267 +0200
- git-parent:
[09b646affc8be98f194ce09d59484423423b696c]
- git-author:
- Jean-Paul Saman <jean-paul.saman@m2x.nl> 1210061663 +0200
- Message:
Remove dead code.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r09b646a |
r62829b3 |
|
| 51 | 51 | #include <vlc_strings.h> |
|---|
| 52 | 52 | |
|---|
| 53 | | // #define FBOSD_BLENDING |
|---|
| | 53 | #undef FBOSD_BLENDING |
|---|
| | 54 | #undef FBOSD_DEBUG |
|---|
| 54 | 55 | |
|---|
| 55 | 56 | /***************************************************************************** |
|---|
| … | … | |
| 73 | 74 | static int OpenTextRenderer ( intf_thread_t * ); |
|---|
| 74 | 75 | static void CloseTextRenderer( intf_thread_t * ); |
|---|
| 75 | | |
|---|
| 76 | | #if 0 |
|---|
| 77 | | static int OpenScaling ( intf_thread_t * ); |
|---|
| 78 | | static int CloseScaling ( intf_thread_t * ); |
|---|
| 79 | | #endif |
|---|
| 80 | 76 | |
|---|
| 81 | 77 | /* Manipulate the overlay buffer */ |
|---|
| … | … | |
| 280 | 276 | #endif |
|---|
| 281 | 277 | filter_t *p_text; /* text renderer module */ |
|---|
| 282 | | #if 0 |
|---|
| 283 | | filter_t *p_scale; /* scaling module */ |
|---|
| 284 | | #endif |
|---|
| 285 | 278 | |
|---|
| 286 | 279 | /* Render */ |
|---|
| … | … | |
| 292 | 285 | /* Position */ |
|---|
| 293 | 286 | bool b_absolute; |
|---|
| 294 | | int i_x; |
|---|
| 295 | | int i_y; |
|---|
| 296 | | int i_pos; |
|---|
| 297 | | |
|---|
| 298 | | int i_alpha; /* transparency for images */ |
|---|
| | 287 | int i_x; |
|---|
| | 288 | int i_y; |
|---|
| | 289 | int i_pos; |
|---|
| | 290 | |
|---|
| | 291 | int i_alpha; /* transparency for images */ |
|---|
| 299 | 292 | |
|---|
| 300 | 293 | /* commands control */ |
|---|
| … | … | |
| 314 | 307 | char *psz_tmp; |
|---|
| 315 | 308 | int i; |
|---|
| 316 | | |
|---|
| 317 | 309 | |
|---|
| 318 | 310 | /* Allocate instance and initialize some members */ |
|---|
| … | … | |
| 471 | 463 | return VLC_EGENERIC; |
|---|
| 472 | 464 | } |
|---|
| 473 | | #if 0 |
|---|
| 474 | | /* Load scaling module */ |
|---|
| 475 | | if( OpenScaling( p_intf ) ) |
|---|
| 476 | | { |
|---|
| 477 | | msg_Err( p_intf, "Unable to load image scaling module" ); |
|---|
| 478 | | Destroy( VLC_OBJECT(p_intf) ); |
|---|
| 479 | | return VLC_EGENERIC; |
|---|
| 480 | | } |
|---|
| 481 | | #endif |
|---|
| | 465 | |
|---|
| 482 | 466 | p_sys->b_render = true; |
|---|
| 483 | 467 | p_sys->b_need_update = true; |
|---|
| … | … | |
| 544 | 528 | #endif |
|---|
| 545 | 529 | if( p_sys->p_text ) CloseTextRenderer( p_intf ); |
|---|
| 546 | | #if 0 |
|---|
| 547 | | if( p_sys->p_scale ) CloseScaling( p_intf ); |
|---|
| 548 | | #endif |
|---|
| | 530 | |
|---|
| 549 | 531 | if( p_sys->p_image ) |
|---|
| 550 | 532 | image_HandlerDelete( p_sys->p_image ); |
|---|
| … | … | |
| 649 | 631 | } |
|---|
| 650 | 632 | } |
|---|
| 651 | | #if 0 |
|---|
| 652 | | static int OpenScaling( intf_thread_t *p_intf ) |
|---|
| 653 | | { |
|---|
| 654 | | if( p_intf->p_sys->p_scale ) return VLC_EGENERIC; |
|---|
| 655 | | |
|---|
| 656 | | p_intf->p_sys->p_scale = |
|---|
| 657 | | vlc_object_create( p_intf, VLC_OBJECT_FILTER ); |
|---|
| 658 | | vlc_object_attach( p_intf->p_sys->p_scale, p_intf ); |
|---|
| 659 | | p_intf->p_sys->p_scale->fmt_out.video.i_chroma = |
|---|
| 660 | | p_intf->p_sys->p_scale->fmt_in.video.i_chroma = |
|---|
| 661 | | p_intf->p_sys->fmt_out.i_chroma; |
|---|
| 662 | | |
|---|
| 663 | | /* XXX: We'll also be using it for YUVA and RGBA blending ... */ |
|---|
| 664 | | p_intf->p_sys->p_scale->fmt_in.video.i_width = |
|---|
| 665 | | p_intf->p_sys->p_scale->fmt_in.video.i_height = 32; |
|---|
| 666 | | p_intf->p_sys->p_scale->fmt_out.video.i_width = |
|---|
| 667 | | p_intf->p_sys->p_scale->fmt_out.video.i_height = 16; |
|---|
| 668 | | |
|---|
| 669 | | p_intf->p_sys->p_scale->p_module = |
|---|
| 670 | | module_Need( p_intf->p_sys->p_scale, "video filter2", 0, 0 ); |
|---|
| 671 | | |
|---|
| 672 | | if( !p_intf->p_sys->p_scale->p_module ) |
|---|
| 673 | | return VLC_EGENERIC; |
|---|
| 674 | | |
|---|
| 675 | | return VLC_SUCCESS; |
|---|
| 676 | | } |
|---|
| 677 | | |
|---|
| 678 | | static int CloseScaling( intf_thread_t *p_intf ) |
|---|
| 679 | | { |
|---|
| 680 | | if( p_intf->p_sys->p_scale ) |
|---|
| 681 | | { |
|---|
| 682 | | if( p_intf->p_sys->p_scale->p_module ) |
|---|
| 683 | | module_Unneed( p_intf->p_sys->p_scale, |
|---|
| 684 | | p_intf->p_sys->p_scale->p_module ); |
|---|
| 685 | | |
|---|
| 686 | | vlc_object_detach( p_intf->p_sys->p_scale ); |
|---|
| 687 | | vlc_object_release( p_intf->p_sys->p_scale ); |
|---|
| 688 | | } |
|---|
| 689 | | } |
|---|
| 690 | | #endif |
|---|
| 691 | 633 | |
|---|
| 692 | 634 | /***************************************************************************** |
|---|
| … | … | |
| 786 | 728 | |
|---|
| 787 | 729 | memcpy( &p_sys->p_blend->fmt_in.video, p_fmt_src, sizeof( video_format_t ) ); |
|---|
| 788 | | #if 0 |
|---|
| 789 | | msg_Dbg( p_intf, "Blending pictures %p %4.4s (%dx%d) %d bits %d planes: 0=%p 1=%p 2=%p 3=%p", |
|---|
| 790 | | p_pic_src, (char*)&p_fmt_src->i_chroma, |
|---|
| 791 | | p_sys->p_blend->fmt_in.video.i_width, p_sys->p_blend->fmt_in.video.i_height, |
|---|
| 792 | | p_fmt_src->i_bits_per_pixel, |
|---|
| 793 | | p_pic_src->i_planes, |
|---|
| 794 | | p_pic_src->p[0].p_pixels, p_pic_src->p[1].p_pixels, |
|---|
| 795 | | p_pic_src->p[2].p_pixels, p_pic_src->p[3].p_pixels ); |
|---|
| 796 | | msg_Dbg( p_intf, "Blending pictures %p %4.4s (%dx%d) %d bits %d planes: 0=%p 1=%p 2=%p 3=%p", |
|---|
| 797 | | p_pic_dst, (char*)&p_fmt_dst->i_chroma, |
|---|
| 798 | | p_fmt_dst->i_width, p_fmt_dst->i_height, |
|---|
| 799 | | p_fmt_dst->i_bits_per_pixel, |
|---|
| 800 | | p_pic_dst->i_planes, |
|---|
| 801 | | p_pic_dst->p[0].p_pixels, p_pic_dst->p[1].p_pixels, |
|---|
| 802 | | p_pic_dst->p[2].p_pixels, p_pic_dst->p[3].p_pixels ); |
|---|
| 803 | | #endif |
|---|
| | 730 | |
|---|
| 804 | 731 | /* Update the output picture size */ |
|---|
| 805 | 732 | p_sys->p_blend->fmt_out.video.i_width = |
|---|
| … | … | |
| 821 | 748 | return VLC_EGENERIC; |
|---|
| 822 | 749 | } |
|---|
| 823 | | #endif |
|---|
| 824 | 750 | |
|---|
| 825 | 751 | static int InvertAlpha( intf_thread_t *p_intf, picture_t **p_pic, video_format_t fmt ) |
|---|
| … | … | |
| 867 | 793 | return VLC_SUCCESS; |
|---|
| 868 | 794 | } |
|---|
| | 795 | #endif |
|---|
| 869 | 796 | |
|---|
| 870 | 797 | /***************************************************************************** |
|---|
| … | … | |
| 903 | 830 | i_y_clip = ( i_y_offset + p_src->p[i].i_visible_lines ) - p_dest->p[i].i_visible_lines; |
|---|
| 904 | 831 | i_y_clip = ( i_y_clip > 0 ) ? i_y_clip : 0; |
|---|
| 905 | | #if 0 |
|---|
| | 832 | #if defined(FBOSD_DEBUG) |
|---|
| 906 | 833 | msg_Dbg( p_intf, "i_pitch (%d,%d), (%d,%d)/(%d,%d)", |
|---|
| 907 | 834 | p_dest->p[i].i_visible_pitch, p_src->p[i].i_visible_pitch, |
|---|
| … | … | |
| 1202 | 1129 | if( !p_sys->p_palette ) |
|---|
| 1203 | 1130 | { |
|---|
| 1204 | | msg_Err( p_intf, "out of memory" ); |
|---|
| 1205 | 1131 | close( p_sys->i_fd ); |
|---|
| 1206 | 1132 | return VLC_ENOMEM; |
|---|
| … | … | |
| 1366 | 1292 | Render( p_intf, &p_sys->render[i] ); |
|---|
| 1367 | 1293 | RenderClear( p_intf, &p_sys->render[i] ); |
|---|
| 1368 | | } |
|---|
| 1369 | | } |
|---|
| | 1294 | } |
|---|
| | 1295 | } |
|---|
| 1370 | 1296 | |
|---|
| 1371 | 1297 | if( p_sys->b_clear ) |
|---|