34 Commits

Author SHA1 Message Date
Anthony Minessale
af0f2e6ea8 FS-7514: buffer video too for vlc 2015-05-28 12:47:05 -05:00
Anthony Minessale
4bcc6e6d64 FS-7503 FS-7514: First crack at recording mp4 <action application="capture_video" data="vlc://#transcode{vcodec=h264,acodec=mp3}:std{access=file,mux=mp4,dst=/var/www/sounds/file.mp4}"/> 2015-05-28 12:47:05 -05:00
Mike Jerris
086cf1c279 FS-7500: expand libpng detection to try to find a good png >= 1.6.16, fall back to older verison in weezy, and add support for building without libpng 2015-05-28 12:47:05 -05:00
Anthony Minessale
84074ab804 FS-7513: cleanup 2015-05-28 12:47:02 -05:00
Seven Du
e02ff26569 FS-7500: libpng 1.6.0 has much simpler APIs, also add a new switch_img_patch_png to possible patch a transparent png to an img
While this is not optimal, we should cache the png:
1) cache the whole buffer, with comes with RGBARGBA pixel formats
2) Allow switch_image_t to be other formats e.g. VPX_IMG_FMT_ARGB, VPX_IMG_FMT_ARGB_LE, or VPX_IMG_FMT_444A
   those can have alpha channels so we can check the alpha channel before we patch

Note all PNG are created equel, or maybe a bug in libpng since for some PNG files with alpha the returned buffer
     not seems like RGBARGBA... while docs says it should default be RGBA
2015-05-28 12:47:02 -05:00
Seven Du
f4fad4e756 FS-7500: fix seg 2015-05-28 12:47:02 -05:00
Anthony Minessale
e65f6bd604 FS-7513: add logo func and positioning param and vid snapshot 2015-05-28 12:47:02 -05:00
Anthony Minessale
ae68efd48e FS-7500: assert on neg coordinates causes a seg on free if they are used 2015-05-28 12:47:02 -05:00
Seven Du
84a1f5f642 FS-7500: add overlay func 2015-05-28 12:47:02 -05:00
Seven Du
9faf03c91e FS-7500: be safe for patch and fill, off by 1 2015-05-28 12:47:01 -05:00
Seven Du
c70e8cf216 FS-7500: add yuv2rgb 2015-05-28 12:47:01 -05:00
Seven Du
b90ef728f3 FS-7500: fix rgb2yuv typo 2015-05-28 12:47:01 -05:00
Seven Du
061bcb063a FS-7500: fix patch and fill on an odd position 2015-05-28 12:47:01 -05:00
Seven Du
2841319037 FS-7500: fix compiler warning 2015-05-28 12:47:01 -05:00
Anthony Minessale
1faf602251 FS-7513: basic logo 2015-05-28 12:47:01 -05:00
Anthony Minessale
521a97935e FS-7500: check in png code and put it in the core to mature 2015-05-28 12:47:00 -05:00
Seven Du
90ea86bc95 FS-7506 FS-7513: refactor with rgb color space to support anti aliasing 2015-05-28 12:47:00 -05:00
Seven Du
187b0c1485 FS-7506: fix pen position and add mono font support 2015-05-28 12:47:00 -05:00
Anthony Minessale
0697db4fb4 FS-7506 FS-7513: set banner with video_banner_text variable set before calling in, NEEDS DOCS params are parsable inside a {} string 2015-05-28 12:46:59 -05:00
Seven Du
9d7eef28e6 FS-7500 FS-7513: add and use switch_img_fill 2015-05-28 12:46:59 -05:00
Seven Du
0f28311b17 FS-7506 FS-7513: refactor switch color and implement draw_text in mod_conference 2015-05-28 12:46:59 -05:00
Seven Du
2842dedc21 FS-7500: refactor switch_img_patch, it was made complicated than it should be 2015-05-28 12:46:59 -05:00
Anthony Minessale
e14ad07a26 FS-7500: move function to core 2015-05-28 12:46:58 -05:00
Anthony Minessale
fa5d6af2cd FS-7513: refactor conference video muxing to create one distinct encoder per codec used and only create one encoded frame per distinct codec, store current image used by layer on the layer so it is not destroyed before the canvas is written, refactor and rearrange some functions 2015-05-28 12:46:57 -05:00
Anthony Minessale
260e277f36 FS-7513: conf WIP hard code 4x4 squares in 720p more to come 2015-05-28 12:46:56 -05:00
Anthony Minessale
7ccbf44725 FS-7500: fix missing division 2015-05-28 12:46:55 -05:00
Seven Du
7c0237c142 FS-7500: really fix image copy 2015-05-28 12:46:55 -05:00
Anthony Minessale
d87cfae0c9 FS-7513: more conf vid WIP 2015-05-28 12:46:55 -05:00
Anthony Minessale
2f5989c453 FS-7500: fix compile err 2015-05-28 12:46:55 -05:00
Seven Du
89c02eada9 FS-7500: fix image copy 2015-05-28 12:46:55 -05:00
Anthony Minessale
387cbc9dda FS-7513: WIP CONF STUFF 2015-05-28 12:46:55 -05:00
Seven Du
c52d69d173 FS-7500: add switch_img_copy to clone an image 2015-05-28 12:46:54 -05:00
Anthony Minessale
853873725b FS-7500: factor out the write_image callback and fix the vlc video endpoint to setup and match the audio params of the A leg when bridged 2015-05-28 12:46:48 -05:00
Seven Du
bcbdf8a347 FS-7500: add switch_core_video code 2015-05-28 12:46:42 -05:00