Add planar audio support, improve test output
- Add planar audio support. FFmpeg and libav use planar audio for many encoders, so it was somewhat necessary to add support in libobs itself. - Improve/adjust FFmpeg test output plugin. The exports were somewhat messed up (making me rethink how exports should be done). Not yet functional; it handles video properly, but it still does not handle audio properly. - Improve planar video code. The planar video code was not properly accounting for row sizes for each plane. Specifying row sizes for each plane has now been added. This will also make it more compatible with FFmpeg/libav. - Fixed a bug where callbacks wouldn't create properly in audio-io and video-io code. - Implement 'blogva' function to allow for va_list usage with libobs logging.
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -93,6 +92,11 @@ void bcrash(const char *format, ...)
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void blogva(enum log_type type, const char *format, va_list args)
|
||||
{
|
||||
log_handler(type, format, args);
|
||||
}
|
||||
|
||||
void blog(enum log_type type, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
@@ -16,7 +16,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wctype.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "c99defs.h"
|
||||
@@ -40,6 +39,8 @@ EXPORT void base_set_log_handler(
|
||||
void (*handler)(enum log_type, const char *, va_list));
|
||||
EXPORT void base_set_crash_handler(void (*handler)(const char *, va_list));
|
||||
|
||||
EXPORT void blogva(enum log_type type, const char *format, va_list args);
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#define PRINTFATTR(f, a) __attribute__((__format__(__printf__, f, a)))
|
||||
#else
|
||||
|
Reference in New Issue
Block a user