-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
56 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
#include <libavformat/avformat.h> | ||
|
||
typedef struct Demuxer Demuxer; | ||
typedef struct { | ||
AVFormatContext *fmt_ctx; | ||
} Demuxer; | ||
|
||
int demuxer_alloc_from_file(Demuxer **demuxer, char *path); | ||
int demuxer_alloc_in_mem(Demuxer **demuxer, int probe_size); | ||
int demuxer_alloc_from_file(Demuxer **ctx, char *path); | ||
|
||
// @doc Returns < 0 in case of error, 0 on success, > 1 to | ||
// indicate the amount of data should be supplied (i.e. demand) | ||
int demuxer_read_packet(Demuxer *ctx, AVPacket *packet); | ||
int demuxer_add_data(Demuxer *ctx, void *data, int size); | ||
int demuxer_demand(Demuxer *ctx); | ||
int demuxer_is_ready(Demuxer *ctx); | ||
|
||
void demuxer_fmt_ctx(Demuxer *ctx, AVFormatContext **fmt_ctx); | ||
void demuxer_free(Demuxer **ctx); |
Oops, something went wrong.