History

lavfi: reorder AVFilterBufferRef fields.

Place related fields together, remove holes.

Anton Khirnov committed 14 years ago

Commit f14e6851 parent cb81e291 file · +18 −17Browse files

Unified · Split

libavfilter/avfilter.h+18−17
@@ -139,23 +139,6 @@ typedef struct AVFilterBufferRefVideoProps { · 138 unmodified lines
139139 typedef struct AVFilterBufferRef {
140140 AVFilterBuffer *buf; ///< the buffer that this is a reference to
141141 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−
159142 /**
160143 * pointers to the data planes/channels.
161144 *
@@ -171,6 +154,24 @@ typedef struct AVFilterBufferRef { · 9 unmodified lines
171154 * in order to access all channels.
172155 */
173156 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
174175 } AVFilterBufferRef;
175176
176177 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t