Changeset d2d85545649c486677a45879590776402d664115
- Timestamp:
- 25/02/08 22:44:24
(7 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1203975864 +0000
- git-parent:
[8b8b4f54fc546470da7b21e5c130f937606a89d1]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1203975864 +0000
- Message:
XvMC: remove warnings. The compilation problems lies in a confustion between subpicture_data_t from spudec.h and subpicture_sys_t. No idea how to fix.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3f48284 |
rd2d8554 |
|
| 243 | 243 | { |
|---|
| 244 | 244 | const clut_t *color = (const clut_t *) icolor; |
|---|
| 245 | | int i; |
|---|
| | 245 | unsigned int i; |
|---|
| 246 | 246 | |
|---|
| 247 | 247 | for (i=0; i<num_xvmc_components; ++i) |
|---|
| … | … | |
| 263 | 263 | unsigned num_xvmc_components, char *xvmc_components ) |
|---|
| 264 | 264 | { |
|---|
| 265 | | int i; |
|---|
| | 265 | unsigned int i; |
|---|
| 266 | 266 | const uint32_t *cluts = p->cluts + first_xx44_entry; |
|---|
| 267 | 267 | |
|---|
| … | … | |
| 279 | 279 | static int xx44_paletteIndex( xx44_palette_t *p, int color, uint32_t clut ) |
|---|
| 280 | 280 | { |
|---|
| 281 | | int i; |
|---|
| | 281 | unsigned int i; |
|---|
| 282 | 282 | uint32_t *cluts = p->cluts; |
|---|
| 283 | 283 | int tmp; |
|---|
| … | … | |
| 311 | 311 | uint8_t masked_val = val & mask; |
|---|
| 312 | 312 | |
|---|
| 313 | | if (size < 0) |
|---|
| 314 | | return; |
|---|
| | 313 | /* size_t is unsigned, therefore always positive |
|---|
| | 314 | if (size < 0) |
|---|
| | 315 | return;*/ |
|---|
| 315 | 316 | |
|---|
| 316 | 317 | while(size--) |
|---|
| … | … | |
| 339 | 340 | int i_len, i_color; |
|---|
| 340 | 341 | uint16_t *p_source = NULL; |
|---|
| 341 | | uint16_t i_colprecomp, i_destalpha; |
|---|
| 342 | 342 | |
|---|
| 343 | 343 | if (!sub_img) |
|---|
| … | … | |
| 350 | 350 | alphamask = (ia44) ? 0x0F : 0xF0; |
|---|
| 351 | 351 | p_source = (uint16_t *)sub_img->p_sys->p_data; |
|---|
| 352 | | i_colprecomp, i_destalpha; |
|---|
| 353 | 352 | |
|---|
| 354 | 353 | dst_y = dst_img + dst_pitch*y_off + x_off; |
|---|
| … | … | |
| 835 | 834 | width, height, |
|---|
| 836 | 835 | curCap->subPicType.id ); |
|---|
| 837 | | if( !sp == NULL ) |
|---|
| 838 | | return VLC_EGENERIC; |
|---|
| 839 | | |
|---|
| 840 | | init_xx44_palette( &p_vout->p_sys->palette, sp->num_palette_entries ); |
|---|
| 841 | | p_vout->p_sys->xvmc_palette = (char *) malloc( sp->num_palette_entries |
|---|
| 842 | | * sp->entry_bytes ); |
|---|
| 843 | | xxmc_xvmc_free_subpicture( p_vout, sp); |
|---|
| 844 | | if( !p_vout->p_sys->xvmc_palette ) |
|---|
| 845 | | return VLC_EGENERIC; |
|---|
| 846 | | p_vout->p_sys->hwSubpictures = 1; |
|---|
| | 836 | if( sp ) |
|---|
| | 837 | { |
|---|
| | 838 | init_xx44_palette( &p_vout->p_sys->palette, sp->num_palette_entries ); |
|---|
| | 839 | p_vout->p_sys->xvmc_palette = (char *) malloc( sp->num_palette_entries |
|---|
| | 840 | * sp->entry_bytes ); |
|---|
| | 841 | xxmc_xvmc_free_subpicture( p_vout, sp); |
|---|
| | 842 | if( !p_vout->p_sys->xvmc_palette ) |
|---|
| | 843 | return VLC_EGENERIC; |
|---|
| | 844 | p_vout->p_sys->hwSubpictures = 1; |
|---|
| | 845 | } |
|---|
| 847 | 846 | } |
|---|
| 848 | 847 | return VLC_SUCCESS; |
|---|
| … | … | |
| 1037 | 1036 | unsigned int width, unsigned int height ) |
|---|
| 1038 | 1037 | { |
|---|
| 1039 | | int i, k; |
|---|
| | 1038 | unsigned int i, k; |
|---|
| 1040 | 1039 | vlc_bool_t found = VLC_FALSE; |
|---|
| 1041 | 1040 | xvmc_capabilities_t *curCap = NULL; |
|---|
| … | … | |
| 1435 | 1434 | XvMCPutSlice2( p_vout->p_sys->p_display, |
|---|
| 1436 | 1435 | &p_vout->p_sys->context, |
|---|
| 1437 | | picture->p_sys->xxmc_data.slice_data, |
|---|
| | 1436 | (char *)picture->p_sys->xxmc_data.slice_data, |
|---|
| 1438 | 1437 | picture->p_sys->xxmc_data.slice_data_size, |
|---|
| 1439 | 1438 | picture->p_sys->xxmc_data.slice_code ); |
|---|