mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avdevice: Give names to anonymously typedeffed structs
Anonymous structs can cause trouble in header files, so try to avoid them altogether as a matter of good style.
This commit is contained in:
parent
24af1aa0f7
commit
c0de9159a7
@ -51,7 +51,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct VideoData {
|
||||||
AVClass *class;
|
AVClass *class;
|
||||||
int video_fd;
|
int video_fd;
|
||||||
int tuner_fd;
|
int tuner_fd;
|
||||||
|
@ -76,7 +76,7 @@ static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *v
|
|||||||
return AV_PIX_FMT_NONE;
|
return AV_PIX_FMT_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FBDevContext {
|
||||||
AVClass *class; ///< class for private options
|
AVClass *class; ///< class for private options
|
||||||
int frame_size; ///< size in bytes of a grabbed frame
|
int frame_size; ///< size in bytes of a grabbed frame
|
||||||
AVRational framerate_q; ///< framerate
|
AVRational framerate_q; ///< framerate
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
*/
|
*/
|
||||||
#define FIFO_PACKETS_NUM 16
|
#define FIFO_PACKETS_NUM 16
|
||||||
|
|
||||||
typedef struct {
|
typedef struct JackData {
|
||||||
AVClass *class;
|
AVClass *class;
|
||||||
jack_client_t * client;
|
jack_client_t * client;
|
||||||
int activated;
|
int activated;
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
#define AUDIO_BLOCK_SIZE 4096
|
#define AUDIO_BLOCK_SIZE 4096
|
||||||
|
|
||||||
typedef struct {
|
typedef struct AudioData {
|
||||||
AVClass *class;
|
AVClass *class;
|
||||||
int fd;
|
int fd;
|
||||||
int sample_rate;
|
int sample_rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user