cosmetic: give a coherent indentation

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27115 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2008-06-20 20:24:53 +00:00
parent 598f6c15b9
commit b6697c56e6
1 changed files with 13 additions and 13 deletions

View File

@ -108,7 +108,7 @@ int vdlGetCapability(VDL_HANDLE ctx, vidix_capability_t *cap)
#define MPLAYER_IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8)) #define MPLAYER_IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
#define MPLAYER_IMGFMT_RGB_MASK 0xFFFFFF00 #define MPLAYER_IMGFMT_RGB_MASK 0xFFFFFF00
static uint32_t normalize_fourcc(uint32_t fourcc) static uint32_t normalize_fourcc (uint32_t fourcc)
{ {
if((fourcc & MPLAYER_IMGFMT_RGB_MASK) == (MPLAYER_IMGFMT_RGB|0) || if((fourcc & MPLAYER_IMGFMT_RGB_MASK) == (MPLAYER_IMGFMT_RGB|0) ||
(fourcc & MPLAYER_IMGFMT_RGB_MASK) == (MPLAYER_IMGFMT_BGR|0)) (fourcc & MPLAYER_IMGFMT_RGB_MASK) == (MPLAYER_IMGFMT_BGR|0))
@ -116,64 +116,64 @@ static uint32_t normalize_fourcc(uint32_t fourcc)
return fourcc; return fourcc;
} }
int vdlQueryFourcc(VDL_HANDLE ctx,vidix_fourcc_t *f) int vdlQueryFourcc(VDL_HANDLE ctx, vidix_fourcc_t *f)
{ {
f->fourcc = normalize_fourcc(f->fourcc); f->fourcc = normalize_fourcc(f->fourcc);
return ctx->drv->query_fourcc (f); return ctx->drv->query_fourcc (f);
} }
int vdlConfigPlayback(VDL_HANDLE ctx,vidix_playback_t *p) int vdlConfigPlayback (VDL_HANDLE ctx, vidix_playback_t *p)
{ {
p->fourcc = normalize_fourcc(p->fourcc); p->fourcc = normalize_fourcc(p->fourcc);
return ctx->drv->config_playback (p); return ctx->drv->config_playback (p);
} }
int vdlPlaybackOn(VDL_HANDLE ctx) int vdlPlaybackOn (VDL_HANDLE ctx)
{ {
return ctx->drv->playback_on (); return ctx->drv->playback_on ();
} }
int vdlPlaybackOff(VDL_HANDLE ctx) int vdlPlaybackOff (VDL_HANDLE ctx)
{ {
return ctx->drv->playback_off (); return ctx->drv->playback_off ();
} }
int vdlPlaybackFrameSelect(VDL_HANDLE ctx, unsigned frame_idx ) int vdlPlaybackFrameSelect (VDL_HANDLE ctx, unsigned frame_idx)
{ {
return ctx->drv->frame_sel ? ctx->drv->frame_sel (frame_idx) : ENOSYS; return ctx->drv->frame_sel ? ctx->drv->frame_sel (frame_idx) : ENOSYS;
} }
int vdlPlaybackGetEq(VDL_HANDLE ctx, vidix_video_eq_t * e) int vdlPlaybackGetEq (VDL_HANDLE ctx, vidix_video_eq_t *e)
{ {
return ctx->drv->get_eq ? ctx->drv->get_eq (e) : ENOSYS; return ctx->drv->get_eq ? ctx->drv->get_eq (e) : ENOSYS;
} }
int vdlPlaybackSetEq(VDL_HANDLE ctx, const vidix_video_eq_t * e) int vdlPlaybackSetEq (VDL_HANDLE ctx, const vidix_video_eq_t *e)
{ {
return ctx->drv->set_eq ? ctx->drv->set_eq (e) : ENOSYS; return ctx->drv->set_eq ? ctx->drv->set_eq (e) : ENOSYS;
} }
int vdlPlaybackCopyFrame(VDL_HANDLE ctx, const vidix_dma_t * f) int vdlPlaybackCopyFrame (VDL_HANDLE ctx, const vidix_dma_t *f)
{ {
return ctx->drv->copy_frame ? ctx->drv->copy_frame (f) : ENOSYS; return ctx->drv->copy_frame ? ctx->drv->copy_frame (f) : ENOSYS;
} }
int vdlGetGrKeys(VDL_HANDLE ctx, vidix_grkey_t * k) int vdlGetGrKeys (VDL_HANDLE ctx, vidix_grkey_t *k)
{ {
return ctx->drv->get_gkey ? ctx->drv->get_gkey (k) : ENOSYS; return ctx->drv->get_gkey ? ctx->drv->get_gkey (k) : ENOSYS;
} }
int vdlSetGrKeys(VDL_HANDLE ctx, const vidix_grkey_t * k) int vdlSetGrKeys (VDL_HANDLE ctx, const vidix_grkey_t *k)
{ {
return ctx->drv->set_gkey ? ctx->drv->set_gkey (k) : ENOSYS; return ctx->drv->set_gkey ? ctx->drv->set_gkey (k) : ENOSYS;
} }
int vdlPlaybackGetDeint(VDL_HANDLE ctx, vidix_deinterlace_t * d) int vdlPlaybackGetDeint (VDL_HANDLE ctx, vidix_deinterlace_t *d)
{ {
return ctx->drv->get_deint ? ctx->drv->get_deint (d) : ENOSYS; return ctx->drv->get_deint ? ctx->drv->get_deint (d) : ENOSYS;
} }
int vdlPlaybackSetDeint(VDL_HANDLE ctx, const vidix_deinterlace_t * d) int vdlPlaybackSetDeint (VDL_HANDLE ctx, const vidix_deinterlace_t *d)
{ {
return ctx->drv->set_deint ? ctx->drv->set_deint (d) : ENOSYS; return ctx->drv->set_deint ? ctx->drv->set_deint (d) : ENOSYS;
} }