obs-output module: Fill out more functions

- Add start/stop code to obs-output module

 - Use a circular buffer for the buffered encoder packets instead of a
   dynamic array

 - Add pthreads.lib as a dependency to obs-output module on windows in
   visual studio project files

 - Fix an windows export bug for avc parsing functions on windows.
   Also, rename those functions to be more consistent with each other.

 - Make outputs use a single function for encoded data rather than
   multiple functions

 - Add the ability to make 'text' properties be passworded
This commit is contained in:
jp9000
2014-04-02 00:42:12 -07:00
parent fd9d395509
commit 4a652ec82d
14 changed files with 214 additions and 82 deletions

View File

@@ -16,6 +16,7 @@
******************************************************************************/
#include "obs.h"
#include "obs-avc.h"
#include "util/array-serializer.h"
enum {
@@ -127,8 +128,8 @@ static void serialize_avc_data(struct serializer *s, const uint8_t *data,
}
}
void obs_create_avc_packet(struct encoder_packet *avc_packet,
struct encoder_packet *src)
void obs_parse_avc_packet(struct encoder_packet *avc_packet,
const struct encoder_packet *src)
{
struct array_output_data output;
struct serializer s;
@@ -182,7 +183,7 @@ static void get_sps_pps(const uint8_t *data, size_t size,
}
}
size_t obs_create_avc_header(uint8_t **header, const uint8_t *data, size_t size)
size_t obs_parse_avc_header(uint8_t **header, const uint8_t *data, size_t size)
{
struct array_output_data output;
struct serializer s;