Skip to content

Commit

Permalink
Add explicit const casts in filters code to quiet some gcc warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Oct 3, 2012
1 parent 14230c6 commit ee0ebae
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 45 deletions.
4 changes: 2 additions & 2 deletions mythtv/filters/adjust/filter_adjust.c
Expand Up @@ -316,8 +316,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &newAdjustFilter,
name: "adjust",
descript: "adjust range and gamma of video",
name: (char*)"adjust",
descript: (char*)"adjust range and gamma of video",
formats: FmtList,
libname: NULL
},
Expand Down
6 changes: 4 additions & 2 deletions mythtv/filters/bobdeint/filter_bobdeint.c
Expand Up @@ -144,8 +144,10 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "bobdeint",
descript: "bob deinterlace filter; splits fields to top and bottom of buffer",
name: (char*)"bobdeint",
descript: (char*)
"bob deinterlace filter; "
"splits fields to top and bottom of buffer",
formats: FmtList,
libname: NULL,
},
Expand Down
4 changes: 2 additions & 2 deletions mythtv/filters/crop/filter_crop.c
Expand Up @@ -304,8 +304,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "crop",
descript: "crops picture by macroblock intervals",
name: (char*)"crop",
descript: (char*)"crops picture by macroblock intervals",
formats: FmtList,
libname: NULL
},
Expand Down
5 changes: 3 additions & 2 deletions mythtv/filters/denoise3d/filter_denoise3d.c
Expand Up @@ -475,8 +475,9 @@ const FilterInfo filter_table[] =
{
{
filter_init: &NewDenoise3DFilter,
name: "denoise3d",
descript: "removes noise with a spatial and temporal low-pass filter",
name: (char*)"denoise3d",
descript: (char*)
"removes noise with a spatial and temporal low-pass filter",
formats: FmtList,
libname: NULL
},
Expand Down
4 changes: 2 additions & 2 deletions mythtv/filters/fieldorder/filter_fieldorder.c
Expand Up @@ -230,8 +230,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &FieldorderDeintFilter,
name: "fieldorderdoubleprocessdeint",
descript: "avoids synchronisation problems when matching an "
name: (char*)"fieldorderdoubleprocessdeint",
descript: (char*)"avoids synchronisation problems when matching an "
"interlaced video mode to an interlaced source",
formats: FmtList,
libname: NULL
Expand Down
16 changes: 8 additions & 8 deletions mythtv/filters/force/filter_force.c
Expand Up @@ -99,29 +99,29 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_force_yv12,
name: "forceyv12",
descript: "forces use of YV12 video format",
name: (char*)"forceyv12",
descript: (char*)"forces use of YV12 video format",
formats: Fmt_List_YV12,
libname: NULL
},
{
filter_init: &new_force_yuv422p,
name: "forceyuv422p",
descript: "forces use of YUV422P video format",
name: (char*)"forceyuv422p",
descript: (char*)"forces use of YUV422P video format",
formats: Fmt_List_YUV422P,
libname: NULL
},
{
filter_init: &new_force_rgb24,
name: "forcergb24",
descript: "forces use of RGB24 video format",
name: (char*)"forcergb24",
descript: (char*)"forces use of RGB24 video format",
formats: Fmt_List_RGB24,
libname: NULL
},
{
filter_init: &new_force_argb32,
name: "forceargb32",
descript: "forces use of ARGB32 video format",
name: (char*)"forceargb32",
descript: (char*)"forces use of ARGB32 video format",
formats: Fmt_List_ARGB32,
libname: NULL
},
Expand Down
8 changes: 4 additions & 4 deletions mythtv/filters/greedyhdeint/filter_greedyhdeint.c
Expand Up @@ -277,15 +277,15 @@ const FilterInfo filter_table[] =
{
{
filter_init: &GreedyHDeintFilter,
name: "greedyhdeint",
descript: "combines data from several fields to deinterlace with less motion blur",
name: (char*)"greedyhdeint",
descript: (char*)"combines data from several fields to deinterlace with less motion blur",
formats: FmtList,
libname: NULL
},
{
filter_init: &GreedyHDeintFilter,
name: "greedyhdoubleprocessdeint",
descript: "combines data from several fields to deinterlace with less motion blur",
name: (char*)"greedyhdoubleprocessdeint",
descript: (char*)"combines data from several fields to deinterlace with less motion blur",
formats: FmtList,
libname: NULL
},FILT_NULL
Expand Down
4 changes: 2 additions & 2 deletions mythtv/filters/invert/filter_invert.c
Expand Up @@ -80,8 +80,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "invert",
descript: "inverts the colors of the input video",
name: (char*)"invert",
descript: (char*)"inverts the colors of the input video",
formats: FmtList,
libname: NULL
},
Expand Down
4 changes: 2 additions & 2 deletions mythtv/filters/ivtc/filter_ivtc.c
Expand Up @@ -253,8 +253,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &NewIvtcFilter,
name: "ivtc",
descript: "inverse telecine filter",
name: (char*)"ivtc",
descript: (char*)"inverse telecine filter",
formats: FmtList,
libname: NULL
},
Expand Down
8 changes: 4 additions & 4 deletions mythtv/filters/kerneldeint/filter_kerneldeint.c
Expand Up @@ -665,16 +665,16 @@ const FilterInfo filter_table[] =
{
{
filter_init: &NewKernelDeintFilter,
name: "kerneldeint",
descript: "combines data from several fields to deinterlace "
name: (char*)"kerneldeint",
descript: (char*)"combines data from several fields to deinterlace "
"with less motion blur",
formats: FmtList,
libname: NULL
},
{
filter_init: &NewKernelDeintFilter,
name: "kerneldoubleprocessdeint",
descript: "combines data from several fields to deinterlace "
name: (char*)"kerneldoubleprocessdeint",
descript: (char*)"combines data from several fields to deinterlace "
"with less motion blur",
formats: FmtList,
libname: NULL
Expand Down
4 changes: 2 additions & 2 deletions mythtv/filters/linearblend/filter_linearblend.c
Expand Up @@ -379,8 +379,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "linearblend",
descript: "fast blending deinterlace filter",
name: (char*)"linearblend",
descript: (char*)"fast blending deinterlace filter",
formats: FmtList,
libname: NULL
},
Expand Down
6 changes: 4 additions & 2 deletions mythtv/filters/onefield/filter_onefield.c
Expand Up @@ -98,8 +98,10 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "onefield",
descript: "one-field-only deinterlace filter; parameter \"bottom\" for bottom field, otherwise top",
name: (char*)"onefield",
descript: (char*)
"one-field-only deinterlace filter; "
"parameter \"bottom\" for bottom field, otherwise top",
formats: FmtList,
libname: NULL,
},
Expand Down
4 changes: 2 additions & 2 deletions mythtv/filters/postprocess/filter_postprocess.c
Expand Up @@ -137,8 +137,8 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "postprocess",
descript: "FFMPEG's postprocessing filters",
name: (char*)"postprocess",
descript: (char*)"FFMPEG's postprocessing filters",
formats: FmtList,
libname: NULL
},
Expand Down
5 changes: 3 additions & 2 deletions mythtv/filters/quickdnr/filter_quickdnr.c
Expand Up @@ -591,8 +591,9 @@ const FilterInfo filter_table[] =
{
{
filter_init: &new_filter,
name: "quickdnr",
descript: "removes noise with a fast single/double thresholded average filter",
name: (char*)"quickdnr",
descript: (char*)
"removes noise with a fast single/double thresholded average filter",
formats: FmtList,
libname: NULL
},
Expand Down
6 changes: 3 additions & 3 deletions mythtv/filters/vflip/filter_vflip.c
Expand Up @@ -140,12 +140,12 @@ static FmtConv FmtList[] =
FMT_NULL
};

const FilterInfo filter_table[] =
const FilterInfo filter_table_priv[] =
{
{
filter_init: &new_filter,
name: "vflip",
descript: "flips the video image vertically",
name: (char*)"vflip",
descript: (char*)"flips the video image vertically",
formats: FmtList,
libname: NULL
},
Expand Down
12 changes: 8 additions & 4 deletions mythtv/filters/yadif/filter_yadif.c
Expand Up @@ -724,15 +724,19 @@ const FilterInfo filter_table[] =
{
{
filter_init: &YadifDeintFilter,
name: "yadifdeint",
descript: "combines data from several fields to deinterlace with less motion blur",
name: (char*)"yadifdeint",
descript: (char*)
"combines data from several fields to "
"deinterlace with less motion blur",
formats: FmtList,
libname: NULL
},
{
filter_init: &YadifDeintFilter,
name: "yadifdoubleprocessdeint",
descript: "combines data from several fields to deinterlace with less motion blur",
name: (char*)"yadifdoubleprocessdeint",
descript: (char*)
"combines data from several fields to "
"deinterlace with less motion blur",
formats: FmtList,
libname: NULL
},
Expand Down

0 comments on commit ee0ebae

Please sign in to comment.