mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
spa: ffmpeg: move some function declarations to a header
Move the declarations for `spa_ffmpeg_{dec,enc}_init` to the
"ffmpeg.h" header file. This way the implementation is checked
against the signature.
This commit is contained in:
parent
1a21da9898
commit
6cb8fb899d
4 changed files with 21 additions and 4 deletions
|
|
@ -38,6 +38,8 @@
|
||||||
#include <spa/param/video/format.h>
|
#include <spa/param/video/format.h>
|
||||||
#include <spa/pod/filter.h>
|
#include <spa/pod/filter.h>
|
||||||
|
|
||||||
|
#include "ffmpeg.h"
|
||||||
|
|
||||||
#define IS_VALID_PORT(this,d,id) ((id) == 0)
|
#define IS_VALID_PORT(this,d,id) ((id) == 0)
|
||||||
#define GET_IN_PORT(this,p) (&this->in_ports[p])
|
#define GET_IN_PORT(this,p) (&this->in_ports[p])
|
||||||
#define GET_OUT_PORT(this,p) (&this->out_ports[p])
|
#define GET_OUT_PORT(this,p) (&this->out_ports[p])
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@
|
||||||
#include <spa/param/video/format-utils.h>
|
#include <spa/param/video/format-utils.h>
|
||||||
#include <spa/pod/filter.h>
|
#include <spa/pod/filter.h>
|
||||||
|
|
||||||
|
#include "ffmpeg.h"
|
||||||
|
|
||||||
#define IS_VALID_PORT(this,d,id) ((id) == 0)
|
#define IS_VALID_PORT(this,d,id) ((id) == 0)
|
||||||
#define GET_IN_PORT(this,p) (&this->in_ports[p])
|
#define GET_IN_PORT(this,p) (&this->in_ports[p])
|
||||||
#define GET_OUT_PORT(this,p) (&this->out_ports[p])
|
#define GET_OUT_PORT(this,p) (&this->out_ports[p])
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,7 @@
|
||||||
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
|
|
||||||
int spa_ffmpeg_dec_init(struct spa_handle *handle, const struct spa_dict *info,
|
#include "ffmpeg.h"
|
||||||
const struct spa_support *support, uint32_t n_support);
|
|
||||||
int spa_ffmpeg_enc_init(struct spa_handle *handle, const struct spa_dict *info,
|
|
||||||
const struct spa_support *support, uint32_t n_support);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ffmpeg_dec_init(const struct spa_handle_factory *factory,
|
ffmpeg_dec_init(const struct spa_handle_factory *factory,
|
||||||
|
|
|
||||||
16
spa/plugins/ffmpeg/ffmpeg.h
Normal file
16
spa/plugins/ffmpeg/ffmpeg.h
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#ifndef SPA_FFMPEG_H
|
||||||
|
#define SPA_FFMPEG_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
struct spa_dict;
|
||||||
|
struct spa_handle;
|
||||||
|
struct spa_support;
|
||||||
|
|
||||||
|
int spa_ffmpeg_dec_init(struct spa_handle *handle, const struct spa_dict *info,
|
||||||
|
const struct spa_support *support, uint32_t n_support);
|
||||||
|
int spa_ffmpeg_enc_init(struct spa_handle *handle, const struct spa_dict *info,
|
||||||
|
const struct spa_support *support, uint32_t n_support);
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Add table
Add a link
Reference in a new issue