31 { 640, 480, 24000, 1001},
32 { 176, 120, 15000, 1001},
34 { 352, 240, 15000, 1001},
36 { 704, 480, 15000, 1001},
38 { 720, 480, 30000, 1001},
40 { 1280, 720, 60000, 1001},
42 { 1920, 1080, 30000, 1001},
43 { 1920, 1080, 25, 1 },
44 { 1920, 1080, 60000, 1001},
45 { 1920, 1080, 50, 1 },
46 { 2048, 1080, 24, 1 },
47 { 4096, 2160, 24, 1 },
52 unsigned int ret_idx = 0;
55 sizeof(ff_schro_video_format_info[0]);
57 for (idx = 1; idx < num_formats; ++idx) {
121 SCHRO_VIDEO_FORMAT_CUSTOM ,
122 SCHRO_VIDEO_FORMAT_QSIF ,
123 SCHRO_VIDEO_FORMAT_QCIF ,
124 SCHRO_VIDEO_FORMAT_SIF ,
125 SCHRO_VIDEO_FORMAT_CIF ,
126 SCHRO_VIDEO_FORMAT_4SIF ,
127 SCHRO_VIDEO_FORMAT_4CIF ,
128 SCHRO_VIDEO_FORMAT_SD480I_60 ,
129 SCHRO_VIDEO_FORMAT_SD576I_50 ,
130 SCHRO_VIDEO_FORMAT_HD720P_60 ,
131 SCHRO_VIDEO_FORMAT_HD720P_50 ,
132 SCHRO_VIDEO_FORMAT_HD1080I_60 ,
133 SCHRO_VIDEO_FORMAT_HD1080I_50 ,
134 SCHRO_VIDEO_FORMAT_HD1080P_60 ,
135 SCHRO_VIDEO_FORMAT_HD1080P_50 ,
136 SCHRO_VIDEO_FORMAT_DC2K_24 ,
137 SCHRO_VIDEO_FORMAT_DC4K_24 ,
143 sizeof(ff_schro_video_formats[0]);
147 return (idx < num_formats) ? ff_schro_video_formats[idx] :
148 SCHRO_VIDEO_FORMAT_CUSTOM;
159 for (idx = 0; idx < num_formats; ++idx) {
184 int y_width, uv_width;
185 int y_height, uv_height;
188 y_width = avctx->
width;
190 uv_width = y_width >> (SCHRO_FRAME_FORMAT_H_SHIFT(schro_frame_fmt));
191 uv_height = y_height >> (SCHRO_FRAME_FORMAT_V_SHIFT(schro_frame_fmt));
199 p_frame = schro_frame_new();
201 p_frame->width = y_width;
202 p_frame->height = y_height;
205 for (i = 0; i < 3; ++i) {
206 p_frame->components[i].width = i ? uv_width : y_width;
207 p_frame->components[i].stride = p_pic->linesize[i];
208 p_frame->components[i].height = i ? uv_height : y_height;
209 p_frame->components[i].length =
210 p_frame->components[i].stride * p_frame->components[i].height;
211 p_frame->components[i].data = p_pic->data[i];
214 p_frame->components[i].v_shift =
215 SCHRO_FRAME_FORMAT_V_SHIFT(p_frame->format);
216 p_frame->components[i].h_shift =
217 SCHRO_FRAME_FORMAT_H_SHIFT(p_frame->format);