comparison libschroedinger.c @ 10060:965220ebc611 libavcodec

cosmetics: indentation, prettyprinting, K&R coding style
author diego
date Sat, 15 Aug 2009 11:42:15 +0000
parents e9d9d946f213
children 09f2db2d7c90
comparison
equal deleted inserted replaced
10059:c6ace59701ce 10060:965220ebc611
55 unsigned int num_formats = sizeof(ff_schro_video_formats) / 55 unsigned int num_formats = sizeof(ff_schro_video_formats) /
56 sizeof(ff_schro_video_formats[0]); 56 sizeof(ff_schro_video_formats[0]);
57 57
58 unsigned int idx = ff_dirac_schro_get_video_format_idx (avccontext); 58 unsigned int idx = ff_dirac_schro_get_video_format_idx (avccontext);
59 59
60 return (idx < num_formats) ? 60 return (idx < num_formats) ? ff_schro_video_formats[idx] :
61 ff_schro_video_formats[idx] : SCHRO_VIDEO_FORMAT_CUSTOM; 61 SCHRO_VIDEO_FORMAT_CUSTOM;
62 } 62 }
63 63
64 int ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt, 64 int ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt,
65 SchroFrameFormat *schro_frame_fmt) 65 SchroFrameFormat *schro_frame_fmt)
66 { 66 {
69 69
70 int idx; 70 int idx;
71 71
72 for (idx = 0; idx < num_formats; ++idx) { 72 for (idx = 0; idx < num_formats; ++idx) {
73 if (ffmpeg_schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt) { 73 if (ffmpeg_schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt) {
74 *schro_frame_fmt = 74 *schro_frame_fmt = ffmpeg_schro_pixel_format_map[idx].schro_frame_fmt;
75 ffmpeg_schro_pixel_format_map[idx].schro_frame_fmt;
76 return 0; 75 return 0;
77 } 76 }
78 } 77 }
79 return -1; 78 return -1;
80 } 79 }