code stringlengths 1 1.05M | repo_name stringlengths 7 65 | path stringlengths 2 255 | language stringclasses 236
values | license stringclasses 24
values | size int64 1 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/include/mk_transcode.h | C | bsd | 10,412 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/include/mk_util.h | C | bsd | 8,036 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/include/mk_webrtc.h | C | bsd | 3,976 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_common.cpp | C++ | bsd | 12,415 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_events.cpp | C++ | bsd | 9,573 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_events_objects.cpp | C++ | bsd | 26,466 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_frame.cpp | C++ | bsd | 8,751 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_h264_splitter.cpp | C++ | bsd | 3,908 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_httpclient.cpp | C++ | bsd | 5,764 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_media.cpp | C++ | bsd | 16,552 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_player.cpp | C++ | bsd | 7,850 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_proxyplayer.cpp | C++ | bsd | 4,602 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_pusher.cpp | C++ | bsd | 3,538 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_recorder.cpp | C++ | bsd | 6,110 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_rtp_server.cpp | C++ | bsd | 5,742 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_tcp.cpp | C++ | bsd | 14,470 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_tcp_private.h | C++ | bsd | 1,455 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_thread.cpp | C++ | bsd | 5,785 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_track.cpp | C++ | bsd | 7,258 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_transcode.cpp | C++ | bsd | 6,383 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_util.cpp | C++ | bsd | 8,485 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/source/mk_webrtc.cpp | C++ | bsd | 6,945 |
# MIT License
#
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | vincent-in-black-sesame/ZLMediaKit | api/tests/CMakeLists.txt | CMake | bsd | 1,855 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/h264_media_server.c | C | bsd | 7,259 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/h264_pusher.c | C | bsd | 4,860 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/httpclient.c | C | bsd | 1,994 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/player_opencv.c | C | bsd | 3,953 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/pusher.c | C | bsd | 5,045 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/server.c | C | bsd | 25,710 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | api/tests/websocket.c | C | bsd | 8,946 |
#!/bin/bash
set -e
while getopts c:t:p:m:v: opt
do
case $opt in
t)
type=$OPTARG
;;
v)
version=$OPTARG
;;
p)
platform=$OPTARG
;;
m)
model=$OPTARG
;;
?)
echo "unkonwn"
exit
;;
esac
done
help_string=".sh [-t build|push] [-p (amd64|arm64|...,default is `arch`) ] [-m Debu... | vincent-in-black-sesame/ZLMediaKit | build_docker_images.sh | Shell | bsd | 1,611 |
# Copyright (c) 2014, Pavel Rojtberg
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | vincent-in-black-sesame/ZLMediaKit | cmake/AndroidNdkGdb.cmake | CMake | bsd | 4,420 |
# Copyright (c) 2014, Pavel Rojtberg
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | vincent-in-black-sesame/ZLMediaKit | cmake/AndroidNdkModules.cmake | CMake | bsd | 2,741 |
find_path(AVCODEC_INCLUDE_DIR
NAMES libavcodec/avcodec.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
find_library(AVCODEC_LIBRARY
NAMES avcodec
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
set(AVCODEC_LIBRARIES ${AVCODEC_LIBRARY})
set(AVCODEC_INCLUDE_DIRS ${AVC... | vincent-in-black-sesame/ZLMediaKit | cmake/FindAVCODEC.cmake | CMake | bsd | 471 |
find_path(AVFORMAT_INCLUDE_DIR
NAMES libavformat/avformat.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
find_library(AVFORMAT_LIBRARY
NAMES avformat
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
set(AVFORMAT_LIBRARIES ${AVFORMAT_LIBRARY})
set(AVFORMAT_INCLUDE_DI... | vincent-in-black-sesame/ZLMediaKit | cmake/FindAVFORMAT.cmake | CMake | bsd | 483 |
find_path(AVUTIL_INCLUDE_DIR
NAMES libavutil/avutil.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
find_library(AVUTIL_LIBRARY
NAMES avutil
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
set(AVUTIL_LIBRARIES ${AVUTIL_LIBRARY})
set(AVUTIL_INCLUDE_DIRS ${AVUTIL_INCL... | vincent-in-black-sesame/ZLMediaKit | cmake/FindAVUTIL.cmake | CMake | bsd | 459 |
find_path(FAAC_INCLUDE_DIR
NAMES faac.h
)
find_library(FAAC_LIBRARY
NAMES faac
)
set(FAAC_INCLUDE_DIRS ${FAAC_INCLUDE_DIR})
set(FAAC_LIBRARIES ${FAAC_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FAAC DEFAULT_MSG FAAC_LIBRARY FAAC_INCLUDE_DIR)
| vincent-in-black-sesame/ZLMediaKit | cmake/FindFAAC.cmake | CMake | bsd | 291 |
# Tries to find Jemalloc headers and libraries.
#
# Usage of this module as follows:
#
# find_package(jemalloc)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# JEMALLOC_ROOT_DIR Set this variable to the root installation of
# ... | vincent-in-black-sesame/ZLMediaKit | cmake/FindJEMALLOC.cmake | CMake | bsd | 1,395 |
find_path(MP4V2_INCLUDE_DIR
NAMES mp4v2/mp4v2.h)
find_library(MP4V2_LIBRARY
NAMES mp4v2)
set(MP4V2_LIBRARIES ${MP4V2_LIBRARY})
set(MP4V2_INCLUDE_DIRS ${MP4V2_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set MP4V2_FOUND to TRUE
# if all listed variables are... | vincent-in-black-sesame/ZLMediaKit | cmake/FindMP4V2.cmake | CMake | bsd | 411 |
# - Try to find MySQL / MySQL Embedded library
# Find the MySQL includes and client library
# This module defines
# MYSQL_INCLUDE_DIR, where to find mysql.h
# MYSQL_LIBRARIES, the libraries needed to use MySQL.
# MYSQL_LIB_DIR, path to the MYSQL_LIBRARIES
# MYSQL_EMBEDDED_LIBRARIES, the libraries needed to use MySQ... | vincent-in-black-sesame/ZLMediaKit | cmake/FindMYSQL.cmake | CMake | bsd | 4,258 |
# - Try to find libpcap
#
# Once done this will define
# PCAP_FOUND - System has libpcap
# PCAP_INCLUDE_DIRS - The libpcap include directories
# PCAP_LIBRARIES - The libpcap library
# Find libpcap
FIND_PATH(
PCAP_INCLUDE_DIRS
NAMES pcap.h
)
FIND_LIBRARY(
PCAP_LIBRARIES
NAMES pcap
)
messa... | vincent-in-black-sesame/ZLMediaKit | cmake/FindPCAP.cmake | CMake | bsd | 551 |
# - Try to find sctp
#
# Once done this will define
# SCTP_FOUND - System has mbedtls
# SCTP_INCLUDE_DIRS - The mbedtls include directories
# SCTP_LIBRARIES - The mbedtls library
#find Mbedtls
FIND_PATH(
SCTP_INCLUDE_DIRS
NAMES usrsctp.h
)
FIND_LIBRARY(
SCTP_LIBRARIES
NAMES usrsctp
)
me... | vincent-in-black-sesame/ZLMediaKit | cmake/FindSCTP.cmake | CMake | bsd | 555 |
find_path(SDL2_INCLUDE_DIR
NAMES SDL2/SDL.h
HINTS SDL2
PATHS $ENV{HOME}/sdl2/include)
find_library(SDL2_LIBRARY
NAMES SDL2
PATHS $ENV{HOME}/sdl2/lib/x86)
set(SDL2_LIBRARIES ${SDL2_LIBRARY})
set(SDL2_INCLUDE_DIRS ${SDL2_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_stand... | vincent-in-black-sesame/ZLMediaKit | cmake/FindSDL2.cmake | CMake | bsd | 376 |
############################################################################
# FindSRTP.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under ... | vincent-in-black-sesame/ZLMediaKit | cmake/FindSRTP.cmake | CMake | bsd | 1,840 |
find_path(SWRESAMPLE_INCLUDE_DIR
NAMES libswresample/swresample.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
find_library(SWRESAMPLE_LIBRARY
NAMES swresample
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
set(SWRESAMPLE_LIBRARIES ${SWRESAMPLE_LIBRARY})
set(SWRES... | vincent-in-black-sesame/ZLMediaKit | cmake/FindSWRESAMPLE.cmake | CMake | bsd | 507 |
find_path(SWSCALE_INCLUDE_DIR
NAMES libswscale/swscale.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
find_library(SWSCALE_LIBRARY
NAMES swscale
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
set(SWSCALE_LIBRARIES ${SWSCALE_LIBRARY})
set(SWSCALE_INCLUDE_DIRS ${SWS... | vincent-in-black-sesame/ZLMediaKit | cmake/FindSWSCALE.cmake | CMake | bsd | 471 |
############################################################################
# FindX264.txt
# Copyright (C) 2015 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under ... | vincent-in-black-sesame/ZLMediaKit | cmake/FindX264.cmake | CMake | bsd | 1,745 |
# Download and build Jemalloc
set(JEMALLOC_VERSION 5.3.0)
set(JEMALLOC_NAME jemalloc-${JEMALLOC_VERSION})
set(JEMALLOC_TAR_PATH ${DEP_ROOT_DIR}/${JEMALLOC_NAME}.tar.bz2)
list(APPEND jemalloc_CONFIG_ARGS --disable-initial-exec-tls)
#list(APPEND jemalloc_CONFIG_ARGS --without-export)
if (ENABLE_JEMALLOC_STAT)
list(... | vincent-in-black-sesame/ZLMediaKit | cmake/Jemalloc.cmake | CMake | bsd | 2,797 |
# Copyright (c) 2010-2011, Ethan Rublee
# Copyright (c) 2011-2014, Andrey Kamaev
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyri... | vincent-in-black-sesame/ZLMediaKit | cmake/android.toolchain.cmake | CMake | bsd | 82,348 |
#include <atomic>
static int test()
{
std::atomic<long long> x;
return x;
}
int main()
{
return test();
} | vincent-in-black-sesame/ZLMediaKit | cmake/checks/atomic_check.cpp | C++ | bsd | 122 |
# This file is part of the ios-cmake project. It was retrieved from
# https://github.com/cristeab/ios-cmake.git, which is a fork of
# https://code.google.com/p/ios-cmake/. Which in turn is based off of
# the Platform/Darwin.cmake and Platform/UnixPaths.cmake files which
# are included with CMake 2.8.4
#
# The ios-cmake... | vincent-in-black-sesame/ZLMediaKit | cmake/ios.toolchain.cmake | CMake | bsd | 29,613 |
#!/bin/bash
set -e
docker build -t gemfield/zlmediakit:20.04-runtime-ubuntu18.04 -f ubuntu18.04/Dockerfile.runtime .
docker build -t gemfield/zlmediakit:20.04-devel-ubuntu18.04 -f ubuntu18.04/Dockerfile.devel .
docker build -t gemfield/zlmediakit:20.04-runtime-ubuntu16.04 -f ubuntu16.04/Dockerfile.runtime .
docker buil... | vincent-in-black-sesame/ZLMediaKit | docker/build_docker_images.sh | Shell | bsd | 487 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AAC.cpp | C++ | bsd | 16,048 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AAC.h | C++ | bsd | 1,677 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AACRtmp.cpp | C++ | bsd | 2,182 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AACRtmp.h | C++ | bsd | 2,390 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AACRtp.cpp | C++ | bsd | 5,550 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AACRtp.h | C++ | bsd | 1,926 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AV1.cpp | C++ | bsd | 2,236 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AV1.h | C++ | bsd | 926 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AV1Rtp.cpp | C++ | bsd | 17,972 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/AV1Rtp.h | C++ | bsd | 2,851 |
# MIT License
#
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... | vincent-in-black-sesame/ZLMediaKit | ext-codec/CMakeLists.txt | CMake | bsd | 2,031 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/G711.cpp | C++ | bsd | 4,885 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/G711.h | C++ | bsd | 998 |
#include "G711Rtp.h"
namespace mediakit {
G711RtpEncoder::G711RtpEncoder(int sample_rate, int channels, int sample_bit) {
_sample_rate = sample_rate;
_channels = channels;
_sample_bit = sample_bit;
}
void G711RtpEncoder::setOpt(int opt, const toolkit::Any ¶m) {
if (opt == RTP_ENCODER_PKT_DUR_MS)... | vincent-in-black-sesame/ZLMediaKit | ext-codec/G711Rtp.cpp | C++ | bsd | 1,574 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/G711Rtp.h | C++ | bsd | 1,684 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H264.cpp | C++ | bsd | 15,316 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H264.h | C++ | bsd | 5,359 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H264Rtmp.cpp | C++ | bsd | 3,970 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H264Rtmp.h | C++ | bsd | 2,809 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H264Rtp.cpp | C++ | bsd | 14,343 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H264Rtp.h | C++ | bsd | 3,241 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H265.cpp | C++ | bsd | 14,805 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H265.h | C++ | bsd | 6,078 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H265Rtmp.cpp | C++ | bsd | 7,064 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H265Rtmp.h | C++ | bsd | 2,850 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H265Rtp.cpp | C++ | bsd | 14,951 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/H265Rtp.h | C++ | bsd | 3,102 |
#include "JPEG.h"
#include "JPEGRtp.h"
#include "Rtsp/Rtsp.h"
#include "Util/util.h"
#include "Extension/Factory.h"
using namespace toolkit;
namespace mediakit {
bool JPEGTrack::inputFrame(const Frame::Ptr &frame) {
if (!ready()) {
if (_height > 0 && _width > 0) {
if (_tmp == 0) _tmp = frame... | vincent-in-black-sesame/ZLMediaKit | ext-codec/JPEG.cpp | C++ | bsd | 2,333 |
#ifndef ZLMEDIAKIT_JPEG_H
#define ZLMEDIAKIT_JPEG_H
#include "Extension/Frame.h"
#include "Extension/Track.h"
namespace mediakit {
class JPEGTrack : public VideoTrack {
public:
using Ptr = std::shared_ptr<JPEGTrack>;
CodecId getCodecId() const override { return CodecJPEG; }
int getVideoHeight() const o... | vincent-in-black-sesame/ZLMediaKit | ext-codec/JPEG.h | C++ | bsd | 2,281 |
#include "JPEGRtp.h"
#include "JPEG.h"
using namespace std;
using namespace mediakit;
#define AV_WB24(p, d) \
do { ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/JPEGRtp.cpp | C++ | bsd | 30,211 |
#ifndef ZLMEDIAKIT_JPEGRTP_H
#define ZLMEDIAKIT_JPEGRTP_H
#include "Rtsp/RtpCodec.h"
#include "Extension/Frame.h"
namespace mediakit {
/**
* RTP/JPEG specific private data.
*/
struct PayloadContext {
std::string frame; ///< current frame buffer
uint32_t timestamp; ///< current frame timestamp... | vincent-in-black-sesame/ZLMediaKit | ext-codec/JPEGRtp.h | C++ | bsd | 1,425 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/L16.cpp | C++ | bsd | 2,196 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/L16.h | C++ | bsd | 969 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/MP3.cpp | C++ | bsd | 2,182 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/MP3.h | C++ | bsd | 914 |
#include "MP3Rtp.h"
#define MPEG12_HEADER_LEN 4
namespace mediakit {
//MPEG Audio-specific header
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| MBZ | ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/MP3Rtp.cpp | C++ | bsd | 2,458 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/MP3Rtp.h | C++ | bsd | 1,359 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/Opus.cpp | C++ | bsd | 2,047 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | ext-codec/Opus.h | C++ | bsd | 1,142 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h> /* for uint32_t, etc */
#include "SPSParser.h"
/********************************************
*define here
********************************************/
#define SPS_PPS_DEBUG
//#undef SPS_PPS_DEBUG
#define MAX_LEN 32
#define EXTENDED_SAR... | vincent-in-black-sesame/ZLMediaKit | ext-codec/SPSParser.c | C | bsd | 76,776 |
#ifndef _SPSPARSER_H_
#define _SPSPARSER_H_
#if defined (__cplusplus)
extern "C" {
#endif
#define QP_MAX_NUM (51 + 6*6) // The maximum supported qp
#define HEVC_MAX_SHORT_TERM_RPS_COUNT 64
#define T_PROFILE_HEVC_MAIN 1
#define T_PROFILE_HEVC_MAIN_10 2
#defin... | vincent-in-black-sesame/ZLMediaKit | ext-codec/SPSParser.h | C | bsd | 18,461 |
package zlmediakit
//#include "mk_mediakit.h"
//#include "mk_common.h"
import "C"
import (
"fmt"
"zlmediakit/helper"
)
type LogMask int
type LogLevel int
const (
LogConsole LogMask = 1 << 0
LogFile LogMask = 1 << 1
LogCallback LogMask = 2 << 1
)
const (
LTrace LogLevel = 0
LDebug LogLevel = 1
LInfo Lo... | vincent-in-black-sesame/ZLMediaKit | golang/zlmediakit/mk_common.go | Go | bsd | 6,178 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | player/AudioSRC.cpp | C++ | bsd | 4,162 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | player/AudioSRC.h | C++ | bsd | 2,073 |
# MIT License
#
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | vincent-in-black-sesame/ZLMediaKit | player/CMakeLists.txt | CMake | bsd | 2,593 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | player/SDLAudioDevice.cpp | C++ | bsd | 3,031 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing ... | vincent-in-black-sesame/ZLMediaKit | player/SDLAudioDevice.h | C++ | bsd | 1,344 |
/*
* Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit).
*
* Use of this source code is governed by MIT-like license that can be found in the
* LICENSE file in the root of the source tree. All contributing... | vincent-in-black-sesame/ZLMediaKit | player/YuvDisplayer.h | C++ | bsd | 6,498 |