Files
FFmpegKit56/Sources/FFmpegKit/include/avformat_shim.h
cuong mac mini m2 4b968a3347
Some checks failed
/ buid (push) Has been cancelled
first commit
2026-04-16 14:48:09 +07:00

48 lines
2.0 KiB
Objective-C

#ifndef AVFORMAT_SHIM_H
#define AVFORMAT_SHIM_H
#import <Libavformat/avformat.h>
#import <Libavformat/avio.h>
//#import <Libavformat/vpcc.h>
/**
* Writes VP codec configuration to the provided AVIOContext.
*
* @param s address of the AVFormatContext for the logging context.
* @param pb address of the AVIOContext where the vpcC shall be written.
* @param data address of a data array which contains coded bitstream data from
* which codec information can be extracted. May be NULL.
* @param len length of the data array.
* @param par address of the AVCodecParameters which contains codec information.
* @return >=0 in case of success, a negative value corresponding to an AVERROR
* code in case of failure
*/
int ff_isom_write_vpcc(AVFormatContext *s, AVIOContext *pb,
const uint8_t *data, int len,
AVCodecParameters *par);
//int ff_isom_write_avcc(AVIOContext *pb, const uint8_t *data, int len);
//int ff_isom_write_hvcc(AVIOContext *pb, const uint8_t *data, int size, int ps_array_completeness);
//int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int size, int write_seq_header);
//#import <Libavformat/url.h>
extern AVClass ffurl_context_class;
typedef struct URLContext {
const AVClass *av_class; /**< information for av_log(). Set by url_open(). */
const struct URLProtocol *prot;
void *priv_data;
char *filename; /**< specified URL */
int flags;
int max_packet_size; /**< if non zero, the stream is packetized with this max packet size */
int is_streamed; /**< true if streamed (no seek possible), default = false */
int is_connected;
AVIOInterruptCB interrupt_callback;
int64_t rw_timeout; /**< maximum time to wait for (network) read/write operation completion, in mcs */
const char *protocol_whitelist;
const char *protocol_blacklist;
int min_packet_size; /**< if non zero, the stream is packetized with this min packet size */
} URLContext;
#endif /* AVFORMAT_SHIM_H */