Lines Matching refs:vinfo
424 GstVideoInfo vinfo; in GST_START_TEST() local
439 gst_video_info_init (&vinfo); in GST_START_TEST()
440 fail_unless (gst_video_info_set_format (&vinfo, fmt, WIDTH, HEIGHT)); in GST_START_TEST()
441 vsize = GST_VIDEO_INFO_SIZE (&vinfo); in GST_START_TEST()
453 for (p = 0; p < GST_VIDEO_INFO_N_PLANES (&vinfo); ++p) { in GST_START_TEST()
454 data[p] = vdata + GST_VIDEO_INFO_PLANE_OFFSET (&vinfo, p); in GST_START_TEST()
455 stride[p] = GST_VIDEO_INFO_PLANE_STRIDE (&vinfo, p); in GST_START_TEST()
527 GstVideoInfo vinfo; in GST_START_TEST() local
535 gst_video_info_init (&vinfo); in GST_START_TEST()
536 fail_unless (gst_video_info_set_format (&vinfo, fmt, w, h)); in GST_START_TEST()
541 fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 0), in GST_START_TEST()
544 && GST_VIDEO_INFO_N_PLANES (&vinfo) <= 2) { in GST_START_TEST()
546 fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 1), in GST_START_TEST()
548 fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 2), in GST_START_TEST()
553 size = GST_VIDEO_INFO_SIZE (&vinfo); in GST_START_TEST()
554 off0 = GST_VIDEO_INFO_COMP_OFFSET (&vinfo, 0); in GST_START_TEST()
555 off1 = GST_VIDEO_INFO_COMP_OFFSET (&vinfo, 1); in GST_START_TEST()
556 off2 = GST_VIDEO_INFO_COMP_OFFSET (&vinfo, 2); in GST_START_TEST()
569 off3 = GST_VIDEO_INFO_COMP_OFFSET (&vinfo, 3); in GST_START_TEST()
572 cs0 = GST_VIDEO_INFO_COMP_WIDTH (&vinfo, 0) * in GST_START_TEST()
573 GST_VIDEO_INFO_COMP_HEIGHT (&vinfo, 0); in GST_START_TEST()
574 cs1 = GST_VIDEO_INFO_COMP_WIDTH (&vinfo, 1) * in GST_START_TEST()
575 GST_VIDEO_INFO_COMP_HEIGHT (&vinfo, 1); in GST_START_TEST()
576 cs2 = GST_VIDEO_INFO_COMP_WIDTH (&vinfo, 2) * in GST_START_TEST()
577 GST_VIDEO_INFO_COMP_HEIGHT (&vinfo, 2); in GST_START_TEST()
585 if (GST_VIDEO_FORMAT_INFO_HAS_ALPHA (vinfo.finfo)) { in GST_START_TEST()
586 cs3 = GST_VIDEO_INFO_COMP_WIDTH (&vinfo, 3) * in GST_START_TEST()
587 GST_VIDEO_INFO_COMP_HEIGHT (&vinfo, 2); in GST_START_TEST()
615 GstVideoInfo vinfo; in GST_START_TEST() local
617 gst_video_info_init (&vinfo); in GST_START_TEST()
619 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, 32768, in GST_START_TEST()
625 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, 32768, in GST_START_TEST()
628 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, in GST_START_TEST()
630 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, G_MAXINT, in GST_START_TEST()
632 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, in GST_START_TEST()
634 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, G_MAXINT, in GST_START_TEST()
636 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, in GST_START_TEST()
638 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, G_MAXUINT, in GST_START_TEST()
640 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, in GST_START_TEST()
642 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, G_MAXUINT, in GST_START_TEST()
645 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, in GST_START_TEST()
647 fail_if (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_ARGB, 1073741824, in GST_START_TEST()
656 GstVideoInfo vinfo; in GST_START_TEST() local
661 gst_video_info_init (&vinfo); in GST_START_TEST()
662 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_RGB, 800, in GST_START_TEST()
664 vinfo.par_n = 1; in GST_START_TEST()
665 vinfo.par_d = 1; in GST_START_TEST()
666 vinfo.fps_n = 0; in GST_START_TEST()
667 vinfo.fps_d = 1; in GST_START_TEST()
668 caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
693 GstVideoInfo vinfo; in GST_START_TEST() local
698 gst_video_info_init (&vinfo); in GST_START_TEST()
699 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_RGBA, 29700, in GST_START_TEST()
701 vinfo.par_n = 1; in GST_START_TEST()
702 vinfo.par_d = 1; in GST_START_TEST()
703 vinfo.fps_n = 0; in GST_START_TEST()
704 vinfo.fps_d = 1; in GST_START_TEST()
705 caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
721 fail_unless (vinfo.size == (gsize) 29700 * 21000 * 4); in GST_START_TEST()
826 GstVideoInfo vinfo; in GST_START_TEST() local
843 gst_video_info_init (&vinfo); in GST_START_TEST()
844 fail_unless (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
845 fail_unless_equals_int (GST_VIDEO_INFO_FORMAT (&vinfo), formats[i].fmt); in GST_START_TEST()
846 fail_unless_equals_int (GST_VIDEO_INFO_WIDTH (&vinfo), 2 * (i + 1)); in GST_START_TEST()
847 fail_unless_equals_int (GST_VIDEO_INFO_HEIGHT (&vinfo), i + 1); in GST_START_TEST()
850 caps2 = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
900 GstVideoInfo vinfo; in GST_START_TEST() local
903 gst_video_info_init (&vinfo); in GST_START_TEST()
904 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_I420, in GST_START_TEST()
907 GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo) = modes[i]; in GST_START_TEST()
908 GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo) = flags[j]; in GST_START_TEST()
910 caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
915 fail_unless (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
918 modes[i], flags[j], GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo), in GST_START_TEST()
919 GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo)); in GST_START_TEST()
921 fail_unless (GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo) == modes[i], in GST_START_TEST()
923 GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo)); in GST_START_TEST()
924 fail_unless (GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo) == flags[j], in GST_START_TEST()
926 GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo)); in GST_START_TEST()
1019 GstVideoInfo vinfo; in GST_START_TEST() local
1040 gst_video_info_init (&vinfo); in GST_START_TEST()
1041 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_xRGB, 640, in GST_START_TEST()
1043 vinfo.fps_n = 25; in GST_START_TEST()
1044 vinfo.fps_d = 1; in GST_START_TEST()
1045 vinfo.par_n = 1; in GST_START_TEST()
1046 vinfo.par_d = 1; in GST_START_TEST()
1047 from_caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1064 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_I420, 240, in GST_START_TEST()
1066 vinfo.fps_n = 25; in GST_START_TEST()
1067 vinfo.fps_d = 1; in GST_START_TEST()
1068 vinfo.par_n = 1; in GST_START_TEST()
1069 vinfo.par_d = 2; in GST_START_TEST()
1070 to_caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1106 GstVideoInfo vinfo; in GST_START_TEST() local
1130 gst_video_info_init (&vinfo); in GST_START_TEST()
1131 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_xRGB, 640, in GST_START_TEST()
1133 vinfo.par_n = 1; in GST_START_TEST()
1134 vinfo.par_d = 1; in GST_START_TEST()
1135 vinfo.fps_n = 25; in GST_START_TEST()
1136 vinfo.fps_d = 1; in GST_START_TEST()
1137 from_caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1143 gst_video_info_init (&vinfo); in GST_START_TEST()
1144 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_I420, 240, in GST_START_TEST()
1146 vinfo.par_n = 1; in GST_START_TEST()
1147 vinfo.par_d = 2; in GST_START_TEST()
1148 vinfo.fps_n = 25; in GST_START_TEST()
1149 vinfo.fps_d = 1; in GST_START_TEST()
1150 to_caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1170 GstVideoInfo vinfo; in GST_START_TEST() local
1192 gst_video_info_init (&vinfo); in GST_START_TEST()
1193 fail_unless (gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_xRGB, 640, in GST_START_TEST()
1195 vinfo.par_n = 1; in GST_START_TEST()
1196 vinfo.par_d = 1; in GST_START_TEST()
1197 vinfo.fps_n = 25; in GST_START_TEST()
1198 vinfo.fps_d = 1; in GST_START_TEST()
1199 from_caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1233 GstVideoInfo vinfo; in GST_START_TEST() local
1241 gst_video_info_init (&vinfo); in GST_START_TEST()
1242 fail_unless (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
1243 fail_unless (GST_VIDEO_INFO_SIZE (&vinfo) == (640 * 480 * 12 / 8)); in GST_START_TEST()
1252 GstVideoInfo vinfo; in GST_START_TEST() local
1260 gst_video_info_init (&vinfo); in GST_START_TEST()
1263 fail_unless (gst_video_info_set_interlaced_format (&vinfo, in GST_START_TEST()
1266 fail_unless (GST_VIDEO_INFO_SIZE (&vinfo) == 115200); in GST_START_TEST()
1268 caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1277 fail_unless (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
1278 fail_unless (GST_VIDEO_INFO_INTERLACE_MODE (&vinfo) == in GST_START_TEST()
1284 fail_unless (gst_video_info_set_interlaced_format (&vinfo, in GST_START_TEST()
1286 fail_unless (GST_VIDEO_INFO_SIZE (&vinfo) == 57600); in GST_START_TEST()
1287 GST_VIDEO_INFO_FIELD_ORDER (&vinfo) = GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST; in GST_START_TEST()
1289 caps = gst_video_info_to_caps (&vinfo); in GST_START_TEST()
1305 fail_unless (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
1306 fail_unless (GST_VIDEO_INFO_INTERLACE_MODE (&vinfo) == in GST_START_TEST()
1308 fail_unless (GST_VIDEO_INFO_FIELD_ORDER (&vinfo) == in GST_START_TEST()
1320 fail_if (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
1329 fail_unless (gst_video_info_from_caps (&vinfo, caps)); in GST_START_TEST()
3034 GstVideoInfo vinfo; in test_overlay_blend_rect() local
3040 gst_video_info_init (&vinfo); in test_overlay_blend_rect()
3041 fail_unless (gst_video_info_set_format (&vinfo, in test_overlay_blend_rect()
3043 gst_video_frame_map (video_frame, &vinfo, pix, GST_MAP_READWRITE); in test_overlay_blend_rect()
3129 GstVideoInfo vinfo; in GST_START_TEST() local
3139 gst_video_info_init (&vinfo); in GST_START_TEST()
3140 fail_unless (gst_video_info_set_format (&vinfo, in GST_START_TEST()
3142 gst_video_frame_map (&video_frame, &vinfo, pix1, GST_MAP_READWRITE); in GST_START_TEST()