mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
Don't anonymously typedef structs
This commit is contained in:
parent
7f9f771eac
commit
bf704132a5
@ -84,14 +84,14 @@ typedef enum {
|
|||||||
OBJECT
|
OBJECT
|
||||||
} PrintElementType;
|
} PrintElementType;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct PrintElement {
|
||||||
const char *name;
|
const char *name;
|
||||||
PrintElementType type;
|
PrintElementType type;
|
||||||
int64_t index;
|
int64_t index;
|
||||||
int64_t nb_elems;
|
int64_t nb_elems;
|
||||||
} PrintElement;
|
} PrintElement;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct PrintContext {
|
||||||
PrintElement *prefix;
|
PrintElement *prefix;
|
||||||
int level;
|
int level;
|
||||||
void (*print_header)(void);
|
void (*print_header)(void);
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct FileLogContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
int log_offset;
|
int log_offset;
|
||||||
void *log_ctx;
|
void *log_ctx;
|
||||||
|
@ -32,12 +32,12 @@
|
|||||||
#include "time_internal.h"
|
#include "time_internal.h"
|
||||||
#include "parseutils.h"
|
#include "parseutils.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct VideoSizeAbbr {
|
||||||
const char *abbr;
|
const char *abbr;
|
||||||
int width, height;
|
int width, height;
|
||||||
} VideoSizeAbbr;
|
} VideoSizeAbbr;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct VideoRateAbbr {
|
||||||
const char *abbr;
|
const char *abbr;
|
||||||
AVRational rate;
|
AVRational rate;
|
||||||
} VideoRateAbbr;
|
} VideoRateAbbr;
|
||||||
@ -143,7 +143,7 @@ int av_parse_video_rate(AVRational *rate, const char *arg)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct ColorEntry {
|
||||||
const char *name; ///< a string representing the name of the color
|
const char *name; ///< a string representing the name of the color
|
||||||
uint8_t rgb_color[3]; ///< RGB values for the color
|
uint8_t rgb_color[3]; ///< RGB values for the color
|
||||||
} ColorEntry;
|
} ColorEntry;
|
||||||
|
Loading…
Reference in New Issue
Block a user