media_capture.c: V4L2 (YUYV, 4 mmap buffers, poll, QBUF again after use) and a test pattern; a camera with another size is scaled to the call's 640x360, and a build without HAVE_V4L2 gets the pattern. On this T14 the integrated camera is /dev/video0 and gives frames (test_capture: v4l2:/dev/video0, non-uniform frame, 320x180 through the scaler; pattern frames differ and have Y and chroma). configure defines HAVE_V4L2 for linux/videodev2.h. media_video.c gains dc_vpx_enc_keyframe (VPX_EFLAG_FORCE_KF on the next frame), media_packet a DC_MEDIA_KFREQ control, media_call dc_call_request_keyframe/take and DC_MEDIA_KFREQ in the sealed type range. dc_call_video_out now decodes the reassembled VP8 frame into I420 (it returned the compressed frame, which the UI drew as a green picture); dc_call_video_packet keeps the compressed frame for tests and recordings. Video timestamps are wall clock, not frame counts, so a pump slower than 15 fps does not drift behind the audio clock. localui starts camera+encoder on entering the call, sends 15 fps, requests a keyframe after a loss, forces one when asked, decodes incoming frames into the call window, drains up to four 20 ms capture frames per 40 ms pump (one per pump halved the audio clock), and logs video in/out under DTCHAT_CALL_DEBUG; DTCHAT_TEST_VIDEO switches to the pattern. Two UIs under Xvfb: A pattern, B camera, 90 frames each way in about 6 s, audio 300 frames (real time), the window shows the peer's picture (build/mcde-shots/dtchat-t71-video-call.png). test_video_packet uses the packet interface; its 50 KB/42-fragment loopback check still passes. New harness entry DtChat/test_capture (43). In-tree build pending: a foreign make release holds the lock.
108 lines
5.4 KiB
Makefile
108 lines
5.4 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
# libDtChatIpc: JSON and line framing for adapters (no X, no TLS, no codec).
|
|
# libDtChat: the core, which links the IPC part and adds the event loop,
|
|
# storage, adapters and the local peer in the later tasks.
|
|
lib_LTLIBRARIES = libDtChatIpc.la libDtChat.la
|
|
|
|
libDtChatIpc_la_CPPFLAGS = -I$(top_srcdir)/include
|
|
libDtChatIpc_la_SOURCES = json.c
|
|
libDtChatIpc_la_LDFLAGS = -version-info 1:0:0
|
|
|
|
libDtChat_la_CPPFLAGS = -I$(top_srcdir)/include $(VPX_CPPFLAGS)
|
|
libDtChat_la_SOURCES = core.c loop.c store.c conv.c text.c adapter.c instance.c \
|
|
irc.c identity.c peers.c local.c filexfer.c pair.c i18n.c media_audio.c \
|
|
media_packet.c media_call.c media_video.c media_video_packet.c \
|
|
media_render.c media_sync.c media_capture.c dc_internal.h
|
|
libDtChat_la_LIBADD = libDtChatIpc.la $(CRYPTOLIB) $(LIBTLS) $(OPUSLIB) $(VPXLIB)
|
|
libDtChat_la_LDFLAGS = -version-info 1:0:0
|
|
|
|
# Built by make mcde-host as well, so tools/mcde-tests.sh finds them in
|
|
# build/mcde-host; make check still builds and runs them.
|
|
noinst_PROGRAMS = test_json test_frame test_loop test_store test_conv test_text test_irc \
|
|
test_identity test_peers test_local test_filexfer test_pair test_fuzz \
|
|
test_i18n test_audio_opus test_media_packet test_media_call test_video_vp8 \
|
|
test_video_packet test_video_render test_media_sync test_capture \
|
|
test_adapter test_instance fake_adapter
|
|
test_json_SOURCES = test_json.c
|
|
test_json_CPPFLAGS = -I$(top_srcdir)/include
|
|
test_json_LDADD = libDtChatIpc.la
|
|
test_frame_SOURCES = test_frame.c
|
|
test_frame_CPPFLAGS = -I$(top_srcdir)/include
|
|
test_frame_LDADD = libDtChatIpc.la
|
|
test_loop_SOURCES = test_loop.c
|
|
test_loop_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_loop_LDADD = libDtChat.la
|
|
test_store_SOURCES = test_store.c
|
|
test_store_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_store_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_conv_SOURCES = test_conv.c
|
|
test_conv_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_conv_LDADD = libDtChat.la
|
|
test_text_SOURCES = test_text.c
|
|
test_text_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_text_LDADD = libDtChat.la libDtChatIpc.la
|
|
fake_adapter_SOURCES = fake_adapter.c
|
|
fake_adapter_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
fake_adapter_LDADD = libDtChatIpc.la
|
|
test_adapter_SOURCES = test_adapter.c
|
|
test_adapter_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_adapter_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_adapter_DEPENDENCIES = fake_adapter$(EXEEXT) libDtChat.la libDtChatIpc.la
|
|
test_instance_SOURCES = test_instance.c
|
|
test_instance_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_instance_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_irc_SOURCES = test_irc.c
|
|
test_irc_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_irc_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_identity_SOURCES = test_identity.c
|
|
test_identity_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_identity_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB)
|
|
test_peers_SOURCES = test_peers.c
|
|
test_peers_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_peers_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_local_SOURCES = test_local.c
|
|
test_local_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_local_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB) $(LIBTLS) -lpthread
|
|
test_filexfer_SOURCES = test_filexfer.c
|
|
test_filexfer_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_filexfer_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB) $(LIBTLS)
|
|
test_pair_SOURCES = test_pair.c
|
|
test_pair_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_pair_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB)
|
|
test_fuzz_SOURCES = fuzz.c
|
|
test_fuzz_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_fuzz_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_i18n_SOURCES = test_i18n.c
|
|
test_i18n_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_i18n_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_audio_opus_SOURCES = test_audio_opus.c
|
|
test_audio_opus_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_audio_opus_LDADD = libDtChat.la libDtChatIpc.la $(OPUSLIB) -lm
|
|
test_media_packet_SOURCES = test_media_packet.c
|
|
test_media_packet_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_media_packet_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB)
|
|
test_media_call_SOURCES = test_media_call.c
|
|
test_media_call_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_media_call_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB) $(OPUSLIB) -lm
|
|
test_video_vp8_SOURCES = test_video_vp8.c
|
|
test_video_vp8_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir) $(VPX_CPPFLAGS)
|
|
test_video_vp8_LDADD = libDtChat.la libDtChatIpc.la $(VPXLIB) -lm
|
|
test_video_packet_SOURCES = test_video_packet.c
|
|
test_video_packet_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_video_packet_LDADD = libDtChat.la libDtChatIpc.la $(CRYPTOLIB) $(OPUSLIB) -lm
|
|
test_video_render_SOURCES = test_video_render.c
|
|
test_video_render_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_video_render_LDADD = libDtChat.la libDtChatIpc.la -lm
|
|
test_media_sync_SOURCES = test_media_sync.c
|
|
test_media_sync_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_media_sync_LDADD = libDtChat.la libDtChatIpc.la
|
|
test_capture_SOURCES = test_capture.c
|
|
test_capture_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)
|
|
test_capture_LDADD = libDtChat.la libDtChatIpc.la -lm
|
|
TESTS = test_json test_frame test_loop test_store test_conv test_text test_irc \
|
|
test_identity test_peers test_local test_filexfer test_pair test_fuzz \
|
|
test_i18n test_audio_opus test_media_packet test_media_call test_video_vp8 \
|
|
test_video_packet test_video_render test_media_sync test_capture \
|
|
test_adapter test_instance
|