2014-09-12 19:51:45 -07:00
|
|
|
/******************************************************************************
|
|
|
|
Copyright (C) 2014 by Hugh Bailey <obs.jim@gmail.com>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#include "ffmpeg-decode.h"
|
2017-10-29 15:50:01 -07:00
|
|
|
#include "obs-ffmpeg-compat.h"
|
2014-09-12 19:51:45 -07:00
|
|
|
#include <obs-avc.h>
|
|
|
|
|
2019-07-27 21:44:30 -07:00
|
|
|
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(58, 4, 100)
|
|
|
|
#define USE_NEW_HARDWARE_CODEC_METHOD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_NEW_HARDWARE_CODEC_METHOD
|
|
|
|
enum AVHWDeviceType hw_priority[] = {
|
2019-09-18 18:13:14 -07:00
|
|
|
AV_HWDEVICE_TYPE_NONE,
|
2019-07-27 21:44:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
static bool has_hw_type(AVCodec *c, enum AVHWDeviceType type)
|
|
|
|
{
|
|
|
|
for (int i = 0;; i++) {
|
|
|
|
const AVCodecHWConfig *config = avcodec_get_hw_config(c, i);
|
|
|
|
if (!config) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX &&
|
|
|
|
config->device_type == type)
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void init_hw_decoder(struct ffmpeg_decode *d)
|
|
|
|
{
|
|
|
|
enum AVHWDeviceType *priority = hw_priority;
|
|
|
|
AVBufferRef *hw_ctx = NULL;
|
|
|
|
|
|
|
|
while (*priority != AV_HWDEVICE_TYPE_NONE) {
|
|
|
|
if (has_hw_type(d->codec, *priority)) {
|
|
|
|
int ret = av_hwdevice_ctx_create(&hw_ctx, *priority,
|
|
|
|
NULL, NULL, 0);
|
|
|
|
if (ret == 0)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
priority++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (hw_ctx) {
|
|
|
|
d->decoder->hw_device_ctx = av_buffer_ref(hw_ctx);
|
|
|
|
d->hw = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int ffmpeg_decode_init(struct ffmpeg_decode *decode, enum AVCodecID id,
|
|
|
|
bool use_hw)
|
2014-09-12 19:51:45 -07:00
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
2019-07-28 18:31:43 -07:00
|
|
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
|
2014-09-12 19:51:45 -07:00
|
|
|
avcodec_register_all();
|
2019-07-28 18:31:43 -07:00
|
|
|
#endif
|
2014-09-12 19:51:45 -07:00
|
|
|
memset(decode, 0, sizeof(*decode));
|
|
|
|
|
|
|
|
decode->codec = avcodec_find_decoder(id);
|
|
|
|
if (!decode->codec)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
decode->decoder = avcodec_alloc_context3(decode->codec);
|
|
|
|
|
2019-07-27 21:44:30 -07:00
|
|
|
decode->decoder->thread_count = 0;
|
|
|
|
|
|
|
|
#ifdef USE_NEW_HARDWARE_CODEC_METHOD
|
|
|
|
if (use_hw)
|
|
|
|
init_hw_decoder(decode);
|
|
|
|
#else
|
|
|
|
(void)use_hw;
|
|
|
|
#endif
|
|
|
|
|
2014-09-12 19:51:45 -07:00
|
|
|
ret = avcodec_open2(decode->decoder, decode->codec, NULL);
|
|
|
|
if (ret < 0) {
|
|
|
|
ffmpeg_decode_free(decode);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-10-29 15:50:01 -07:00
|
|
|
if (decode->codec->capabilities & CODEC_CAP_TRUNC)
|
|
|
|
decode->decoder->flags |= CODEC_FLAG_TRUNC;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ffmpeg_decode_free(struct ffmpeg_decode *decode)
|
|
|
|
{
|
2019-07-27 21:44:30 -07:00
|
|
|
if (decode->hw_frame)
|
|
|
|
av_free(decode->hw_frame);
|
|
|
|
|
2014-09-12 19:51:45 -07:00
|
|
|
if (decode->decoder) {
|
|
|
|
avcodec_close(decode->decoder);
|
|
|
|
av_free(decode->decoder);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (decode->frame)
|
|
|
|
av_free(decode->frame);
|
|
|
|
|
|
|
|
if (decode->packet_buffer)
|
|
|
|
bfree(decode->packet_buffer);
|
|
|
|
|
|
|
|
memset(decode, 0, sizeof(*decode));
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline enum video_format convert_pixel_format(int f)
|
|
|
|
{
|
|
|
|
switch (f) {
|
2019-06-22 22:13:45 -07:00
|
|
|
case AV_PIX_FMT_NONE:
|
|
|
|
return VIDEO_FORMAT_NONE;
|
2019-05-05 01:18:16 -07:00
|
|
|
case AV_PIX_FMT_YUV420P:
|
2019-06-22 22:13:45 -07:00
|
|
|
case AV_PIX_FMT_YUVJ420P:
|
|
|
|
return VIDEO_FORMAT_I420;
|
|
|
|
case AV_PIX_FMT_NV12:
|
|
|
|
return VIDEO_FORMAT_NV12;
|
|
|
|
case AV_PIX_FMT_YUYV422:
|
|
|
|
return VIDEO_FORMAT_YUY2;
|
|
|
|
case AV_PIX_FMT_UYVY422:
|
|
|
|
return VIDEO_FORMAT_UYVY;
|
2019-06-17 22:25:18 -07:00
|
|
|
case AV_PIX_FMT_YUV422P:
|
|
|
|
case AV_PIX_FMT_YUVJ422P:
|
|
|
|
return VIDEO_FORMAT_I422;
|
2019-06-22 22:13:45 -07:00
|
|
|
case AV_PIX_FMT_RGBA:
|
|
|
|
return VIDEO_FORMAT_RGBA;
|
|
|
|
case AV_PIX_FMT_BGRA:
|
|
|
|
return VIDEO_FORMAT_BGRA;
|
|
|
|
case AV_PIX_FMT_BGR0:
|
|
|
|
return VIDEO_FORMAT_BGRX;
|
2014-09-12 19:51:45 -07:00
|
|
|
default:;
|
|
|
|
}
|
|
|
|
|
|
|
|
return VIDEO_FORMAT_NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline enum audio_format convert_sample_format(int f)
|
|
|
|
{
|
|
|
|
switch (f) {
|
2019-06-22 22:13:45 -07:00
|
|
|
case AV_SAMPLE_FMT_U8:
|
|
|
|
return AUDIO_FORMAT_U8BIT;
|
|
|
|
case AV_SAMPLE_FMT_S16:
|
|
|
|
return AUDIO_FORMAT_16BIT;
|
|
|
|
case AV_SAMPLE_FMT_S32:
|
|
|
|
return AUDIO_FORMAT_32BIT;
|
|
|
|
case AV_SAMPLE_FMT_FLT:
|
|
|
|
return AUDIO_FORMAT_FLOAT;
|
|
|
|
case AV_SAMPLE_FMT_U8P:
|
|
|
|
return AUDIO_FORMAT_U8BIT_PLANAR;
|
|
|
|
case AV_SAMPLE_FMT_S16P:
|
|
|
|
return AUDIO_FORMAT_16BIT_PLANAR;
|
|
|
|
case AV_SAMPLE_FMT_S32P:
|
|
|
|
return AUDIO_FORMAT_32BIT_PLANAR;
|
|
|
|
case AV_SAMPLE_FMT_FLTP:
|
|
|
|
return AUDIO_FORMAT_FLOAT_PLANAR;
|
2014-09-12 19:51:45 -07:00
|
|
|
default:;
|
|
|
|
}
|
|
|
|
|
|
|
|
return AUDIO_FORMAT_UNKNOWN;
|
|
|
|
}
|
|
|
|
|
libobs: Add surround sound audio support
(This commit also modifies the following modules: UI,
deps/media-playback, coreaudio-encoder, decklink, linux-alsa,
linux-pulseaudio, mac-capture, obs-ffmpeg, obs-filters, obs-libfdk,
obs-outputs, win-dshow, and win-wasapi)
Adds surround sound audio support to the core, core plugins, and user
interface.
Compatible streaming services: Twitch, FB 360 live
Compatible protocols: rtmp / mpeg-ts tcp udp
Compatible file formats: mkv mp4 ts (others untested)
Compatible codecs: ffmpeg aac, fdk_aac, CoreAudio aac,
opus, vorbis, pcm (others untested).
Tested streaming servers: wowza, nginx
HLS, mpeg-dash : surround passthrough
Html5 players tested with live surround:
videojs, mediaelement, viblast (hls+dash), hls.js
Decklink: on win32, swap channels order for 5.1 7.1
(due to different channel mapping on wav, mpeg, ffmpeg)
Audio filters: surround working.
Monitoring: surround working (win macOs linux (pulse-audio)).
VST: stereo plugins keep in general only the first two channels.
surround plugins should work (e.g. mcfx does).
OS: win, macOs, linux (alsa, pulse-audio).
Misc: larger audio bitrates unlocked to accommodate more channels
NB: mf-aac only supports mono and stereo + 5.1 on win 10
(not implemented due to lack of usefulness)
Closes jp9000/obs-studio#968
2017-05-26 17:15:54 -07:00
|
|
|
static inline enum speaker_layout convert_speaker_layout(uint8_t channels)
|
|
|
|
{
|
|
|
|
switch (channels) {
|
2019-06-22 22:13:45 -07:00
|
|
|
case 0:
|
|
|
|
return SPEAKERS_UNKNOWN;
|
|
|
|
case 1:
|
|
|
|
return SPEAKERS_MONO;
|
|
|
|
case 2:
|
|
|
|
return SPEAKERS_STEREO;
|
|
|
|
case 3:
|
|
|
|
return SPEAKERS_2POINT1;
|
|
|
|
case 4:
|
|
|
|
return SPEAKERS_4POINT0;
|
|
|
|
case 5:
|
|
|
|
return SPEAKERS_4POINT1;
|
|
|
|
case 6:
|
|
|
|
return SPEAKERS_5POINT1;
|
|
|
|
case 8:
|
|
|
|
return SPEAKERS_7POINT1;
|
|
|
|
default:
|
|
|
|
return SPEAKERS_UNKNOWN;
|
libobs: Add surround sound audio support
(This commit also modifies the following modules: UI,
deps/media-playback, coreaudio-encoder, decklink, linux-alsa,
linux-pulseaudio, mac-capture, obs-ffmpeg, obs-filters, obs-libfdk,
obs-outputs, win-dshow, and win-wasapi)
Adds surround sound audio support to the core, core plugins, and user
interface.
Compatible streaming services: Twitch, FB 360 live
Compatible protocols: rtmp / mpeg-ts tcp udp
Compatible file formats: mkv mp4 ts (others untested)
Compatible codecs: ffmpeg aac, fdk_aac, CoreAudio aac,
opus, vorbis, pcm (others untested).
Tested streaming servers: wowza, nginx
HLS, mpeg-dash : surround passthrough
Html5 players tested with live surround:
videojs, mediaelement, viblast (hls+dash), hls.js
Decklink: on win32, swap channels order for 5.1 7.1
(due to different channel mapping on wav, mpeg, ffmpeg)
Audio filters: surround working.
Monitoring: surround working (win macOs linux (pulse-audio)).
VST: stereo plugins keep in general only the first two channels.
surround plugins should work (e.g. mcfx does).
OS: win, macOs, linux (alsa, pulse-audio).
Misc: larger audio bitrates unlocked to accommodate more channels
NB: mf-aac only supports mono and stereo + 5.1 on win 10
(not implemented due to lack of usefulness)
Closes jp9000/obs-studio#968
2017-05-26 17:15:54 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-12 19:51:45 -07:00
|
|
|
static inline void copy_data(struct ffmpeg_decode *decode, uint8_t *data,
|
2019-06-22 22:13:45 -07:00
|
|
|
size_t size)
|
2014-09-12 19:51:45 -07:00
|
|
|
{
|
2017-10-29 15:50:01 -07:00
|
|
|
size_t new_size = size + INPUT_BUFFER_PADDING_SIZE;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
if (decode->packet_size < new_size) {
|
2019-06-22 22:13:45 -07:00
|
|
|
decode->packet_buffer =
|
|
|
|
brealloc(decode->packet_buffer, new_size);
|
|
|
|
decode->packet_size = new_size;
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|
|
|
|
|
2017-10-29 15:50:01 -07:00
|
|
|
memset(decode->packet_buffer + size, 0, INPUT_BUFFER_PADDING_SIZE);
|
2014-09-12 19:51:45 -07:00
|
|
|
memcpy(decode->packet_buffer, data, size);
|
|
|
|
}
|
|
|
|
|
2019-06-22 22:13:45 -07:00
|
|
|
bool ffmpeg_decode_audio(struct ffmpeg_decode *decode, uint8_t *data,
|
|
|
|
size_t size, struct obs_source_audio *audio,
|
|
|
|
bool *got_output)
|
2014-09-12 19:51:45 -07:00
|
|
|
{
|
|
|
|
AVPacket packet = {0};
|
|
|
|
int got_frame = false;
|
2017-12-05 13:53:18 -08:00
|
|
|
int ret = 0;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
*got_output = false;
|
|
|
|
|
|
|
|
copy_data(decode, data, size);
|
|
|
|
|
|
|
|
av_init_packet(&packet);
|
|
|
|
packet.data = decode->packet_buffer;
|
2014-10-11 21:18:34 -07:00
|
|
|
packet.size = (int)size;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
if (!decode->frame) {
|
2015-02-08 16:41:54 -08:00
|
|
|
decode->frame = av_frame_alloc();
|
2014-09-12 19:51:45 -07:00
|
|
|
if (!decode->frame)
|
2017-12-05 13:53:18 -08:00
|
|
|
return false;
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|
|
|
|
|
2017-12-05 13:53:18 -08:00
|
|
|
if (data && size)
|
|
|
|
ret = avcodec_send_packet(decode->decoder, &packet);
|
|
|
|
if (ret == 0)
|
|
|
|
ret = avcodec_receive_frame(decode->decoder, decode->frame);
|
2014-09-12 19:51:45 -07:00
|
|
|
|
2017-12-05 13:53:18 -08:00
|
|
|
got_frame = (ret == 0);
|
|
|
|
|
|
|
|
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN))
|
|
|
|
ret = 0;
|
|
|
|
|
|
|
|
if (ret < 0)
|
|
|
|
return false;
|
2018-01-22 14:41:00 -08:00
|
|
|
else if (!got_frame)
|
2017-12-05 13:53:18 -08:00
|
|
|
return true;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
for (size_t i = 0; i < MAX_AV_PLANES; i++)
|
|
|
|
audio->data[i] = decode->frame->data[i];
|
|
|
|
|
|
|
|
audio->samples_per_sec = decode->frame->sample_rate;
|
2019-06-22 22:13:45 -07:00
|
|
|
audio->format = convert_sample_format(decode->frame->format);
|
|
|
|
audio->speakers =
|
2017-12-05 13:53:18 -08:00
|
|
|
convert_speaker_layout((uint8_t)decode->decoder->channels);
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
audio->frames = decode->frame->nb_samples;
|
|
|
|
|
|
|
|
if (audio->format == AUDIO_FORMAT_UNKNOWN)
|
2017-12-05 13:53:18 -08:00
|
|
|
return false;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
*got_output = true;
|
2017-12-05 13:53:18 -08:00
|
|
|
return true;
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|
|
|
|
|
2019-06-22 22:13:45 -07:00
|
|
|
bool ffmpeg_decode_video(struct ffmpeg_decode *decode, uint8_t *data,
|
|
|
|
size_t size, long long *ts,
|
2019-09-14 17:04:22 -07:00
|
|
|
enum video_range_type range,
|
2019-06-22 22:13:45 -07:00
|
|
|
struct obs_source_frame2 *frame, bool *got_output)
|
2014-09-12 19:51:45 -07:00
|
|
|
{
|
|
|
|
AVPacket packet = {0};
|
|
|
|
int got_frame = false;
|
2019-07-27 21:44:30 -07:00
|
|
|
AVFrame *out_frame;
|
2017-12-05 13:53:18 -08:00
|
|
|
int ret;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
*got_output = false;
|
|
|
|
|
|
|
|
copy_data(decode, data, size);
|
|
|
|
|
|
|
|
av_init_packet(&packet);
|
2019-06-22 22:13:45 -07:00
|
|
|
packet.data = decode->packet_buffer;
|
|
|
|
packet.size = (int)size;
|
|
|
|
packet.pts = *ts;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
2014-12-18 12:41:53 -08:00
|
|
|
if (decode->codec->id == AV_CODEC_ID_H264 &&
|
2019-06-22 22:13:45 -07:00
|
|
|
obs_avc_keyframe(data, size))
|
2014-09-12 19:51:45 -07:00
|
|
|
packet.flags |= AV_PKT_FLAG_KEY;
|
|
|
|
|
|
|
|
if (!decode->frame) {
|
2015-02-08 16:41:54 -08:00
|
|
|
decode->frame = av_frame_alloc();
|
2014-09-12 19:51:45 -07:00
|
|
|
if (!decode->frame)
|
2017-12-05 13:53:18 -08:00
|
|
|
return false;
|
2019-07-27 21:44:30 -07:00
|
|
|
|
|
|
|
if (decode->hw && !decode->hw_frame) {
|
|
|
|
decode->hw_frame = av_frame_alloc();
|
|
|
|
if (!decode->hw_frame)
|
|
|
|
return false;
|
|
|
|
}
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|
|
|
|
|
2019-07-27 21:44:30 -07:00
|
|
|
out_frame = decode->hw ? decode->hw_frame : decode->frame;
|
|
|
|
|
2017-12-05 13:53:18 -08:00
|
|
|
ret = avcodec_send_packet(decode->decoder, &packet);
|
2019-07-27 21:44:30 -07:00
|
|
|
if (ret == 0) {
|
|
|
|
ret = avcodec_receive_frame(decode->decoder, out_frame);
|
|
|
|
}
|
2017-12-05 13:53:18 -08:00
|
|
|
|
|
|
|
got_frame = (ret == 0);
|
|
|
|
|
|
|
|
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN))
|
|
|
|
ret = 0;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
2017-12-05 13:53:18 -08:00
|
|
|
if (ret < 0)
|
|
|
|
return false;
|
2018-01-22 14:41:00 -08:00
|
|
|
else if (!got_frame)
|
2017-12-05 13:53:18 -08:00
|
|
|
return true;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
2019-07-27 21:44:30 -07:00
|
|
|
#ifdef USE_NEW_HARDWARE_CODEC_METHOD
|
|
|
|
if (got_frame && decode->hw) {
|
|
|
|
ret = av_hwframe_transfer_data(decode->frame, out_frame, 0);
|
|
|
|
if (ret < 0) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-09-12 19:51:45 -07:00
|
|
|
for (size_t i = 0; i < MAX_AV_PLANES; i++) {
|
2019-06-22 22:13:45 -07:00
|
|
|
frame->data[i] = decode->frame->data[i];
|
2014-09-12 19:51:45 -07:00
|
|
|
frame->linesize[i] = decode->frame->linesize[i];
|
|
|
|
}
|
|
|
|
|
2019-09-14 17:04:22 -07:00
|
|
|
frame->format = convert_pixel_format(decode->frame->format);
|
2014-09-12 19:51:45 -07:00
|
|
|
|
2019-09-14 17:04:22 -07:00
|
|
|
if (range == VIDEO_RANGE_DEFAULT) {
|
|
|
|
range = (decode->frame->color_range == AVCOL_RANGE_JPEG)
|
|
|
|
? VIDEO_RANGE_FULL
|
|
|
|
: VIDEO_RANGE_PARTIAL;
|
|
|
|
}
|
2014-09-12 19:51:45 -07:00
|
|
|
|
2019-09-14 17:04:22 -07:00
|
|
|
if (range != frame->range) {
|
|
|
|
const bool success = video_format_get_parameters(
|
|
|
|
VIDEO_CS_601, range, frame->color_matrix,
|
2019-06-22 22:13:45 -07:00
|
|
|
frame->color_range_min, frame->color_range_max);
|
2014-09-12 19:51:45 -07:00
|
|
|
if (!success) {
|
2019-06-22 22:13:45 -07:00
|
|
|
blog(LOG_ERROR,
|
|
|
|
"Failed to get video format "
|
|
|
|
"parameters for video format %u",
|
|
|
|
VIDEO_CS_601);
|
2017-12-05 13:53:18 -08:00
|
|
|
return false;
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|
2019-09-14 17:04:22 -07:00
|
|
|
|
|
|
|
frame->range = range;
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
*ts = decode->frame->pkt_pts;
|
|
|
|
|
2019-06-22 22:13:45 -07:00
|
|
|
frame->width = decode->frame->width;
|
2014-09-12 19:51:45 -07:00
|
|
|
frame->height = decode->frame->height;
|
2019-06-22 22:13:45 -07:00
|
|
|
frame->flip = false;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
if (frame->format == VIDEO_FORMAT_NONE)
|
2017-12-05 13:53:18 -08:00
|
|
|
return false;
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
*got_output = true;
|
2017-12-05 13:53:18 -08:00
|
|
|
return true;
|
2014-09-12 19:51:45 -07:00
|
|
|
}
|