Place related fields together, remove holes.
Unified · Split
| @@ -139,23 +139,6 @@ typedef struct AVFilterBufferRefVideoProps { · 138 unmodified lines | |||
| 139 | typedef struct AVFilterBufferRef { | 139 | typedef struct AVFilterBufferRef { |
| 140 | AVFilterBuffer *buf; ///< the buffer that this is a reference to | 140 | AVFilterBuffer *buf; ///< the buffer that this is a reference to |
| 141 | uint8_t *data[8]; ///< picture/audio data for each plane | 141 | uint8_t *data[8]; ///< picture/audio data for each plane |
| 142 | int linesize[8]; ///< number of bytes per line | ||
| 143 | int format; ///< media format | ||
| 144 | |||
| 145 | /** | ||
| 146 | * presentation timestamp. The time unit may change during | ||
| 147 | * filtering, as it is specified in the link and the filter code | ||
| 148 | * may need to rescale the PTS accordingly. | ||
| 149 | */ | ||
| 150 | int64_t pts; | ||
| 151 | int64_t pos; ///< byte position in stream, -1 if unknown | ||
| 152 | |||
| 153 | int perms; ///< permissions, see the AV_PERM_* flags | ||
| 154 | |||
| 155 | enum AVMediaType type; ///< media type of buffer data | ||
| 156 | AVFilterBufferRefVideoProps *video; ///< video buffer specific properties | ||
| 157 | AVFilterBufferRefAudioProps *audio; ///< audio buffer specific properties | ||
| 158 | |||
| 159 | /** | 142 | /** |
| 160 | * pointers to the data planes/channels. | 143 | * pointers to the data planes/channels. |
| 161 | * | 144 | * |
| @@ -171,6 +154,24 @@ typedef struct AVFilterBufferRef { · 9 unmodified lines | |||
| 171 | * in order to access all channels. | 154 | * in order to access all channels. |
| 172 | */ | 155 | */ |
| 173 | uint8_t **extended_data; | 156 | uint8_t **extended_data; |
| 157 | int linesize[8]; ///< number of bytes per line | ||
| 158 | |||
| 159 | AVFilterBufferRefVideoProps *video; ///< video buffer specific properties | ||
| 160 | AVFilterBufferRefAudioProps *audio; ///< audio buffer specific properties | ||
| 161 | |||
| 162 | /** | ||
| 163 | * presentation timestamp. The time unit may change during | ||
| 164 | * filtering, as it is specified in the link and the filter code | ||
| 165 | * may need to rescale the PTS accordingly. | ||
| 166 | */ | ||
| 167 | int64_t pts; | ||
| 168 | int64_t pos; ///< byte position in stream, -1 if unknown | ||
| 169 | |||
| 170 | int format; ///< media format | ||
| 171 | |||
| 172 | int perms; ///< permissions, see the AV_PERM_* flags | ||
| 173 | |||
| 174 | enum AVMediaType type; ///< media type of buffer data | ||
| 174 | } AVFilterBufferRef; | 175 | } AVFilterBufferRef; |
| 175 | 176 | ||
| 176 | /** | 177 | /** |