layouts.c
来自「mediastreamer2是开源的网络传输媒体流的库」· C语言 代码 · 共 89 行
C
89 行
#include "stitcher.h"#include "stdlib.h"/* this file defines position of video pictures within the stitcher frame *//* Coordinates are expressed in percentage of the width/height of the stitcher frame and point the center of the video input.*/static Region regions_1[]={ { 0.5 , 0.5 , 1 }};static Region regions_2[]={ { 0.25, 0.5, 0.5 }, { 0.75, 0.5, 0.5 }};static Region regions_3[]={ { 0.5, 0.25, 0.5 }, { 0.25, 0.75, 0.5 }, { 0.75, 0.75, 0.5 }};static Region regions_4[]={ { 0.25, 0.25, 0.5 }, { 0.75, 0.25, 0.5 }, { 0.25, 0.75, 0.5 }, { 0.75, 0.75, 0.5 }};#if 0static Region regions_5[]={ { 1/6, 1/6, 2/6 }, { 5/6, 1/6, 2/6 }, { 0.5, 0.5, 2/6 }, { 1/6, 5/6, 2/6 }, { 5/6, 5/6, 2/6 },};static Region regions_6[]={ { 1/6, 1/6, 2/6 }, { 5/6, 1/6, 2/6 }, { 1/6, 0.5, 2/6 }, { 5/6, 0.5, 2/6 }, { 1/6, 5/6, 2/6 }, { 5/6, 5/6, 2/6 },};static Region regions_7[]={ { 1/6, 1/6, 2/6 }, { 0.5, 1/6, 2/6 }, { 5/6, 1/6, 2/6 }, { 0.5, 0.5, 2/6 }, { 1/6, 5/6, 2/6 }, { 0.5, 5/6, 2/6 }, { 5/6, 5/6, 2/6 },};static Region regions_8[]={ { 1/6, 1/6, 2/6 }, { 0.5, 1/6, 2/6 }, { 5/6, 1/6, 2/6 }, { 1/6, 0.5, 2/6 }, { 5/6, 0.5, 2/6 }, { 1/6, 5/6, 2/6 }, { 0.5, 5/6, 2/6 }, { 5/6, 5/6, 2/6 },};#endifLayout msstitcher_default_layout[]={ { 1, regions_1 }, { 2, regions_2 }, { 3, regions_3 }, { 4, regions_4 }, { 0, NULL }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?