History

lavfi: drop planar/packed negotiation support

The planar/packed switch and the packing_formats list is no longer required, since the planar/packed information is now stored in the sample format enum. This is technically a major API break, possibly it should be not too painful as we marked the audio filtering API as unstable.

Stefano Sabatini committed 14 years ago

Commit 4d4098d1 parent 183596f28 files · +71 −145Browse files

Showing the changes to libavfilter/avfilter.h (1 of 28 files). Show all

Unified · Split

libavfilter/avfilter.h+12−0
@@ -121,7 +121,9 @@ typedef struct AVFilterBufferRefAudioProps { · 120 unmodified lines
121121 uint64_t channel_layout; ///< channel layout of audio buffer
122122 int nb_samples; ///< number of audio samples per channel
123123 int sample_rate; ///< audio buffer sample rate
124+#if FF_API_PACKING
124125 int planar; ///< audio buffer - planar or packed
126+#endif
125127 } AVFilterBufferRefAudioProps;
126128
127129 /**
@@ -303,10 +305,12 @@ AVFilterFormats *avfilter_make_all_formats(enum AVMediaType type); · 175 unmodified lines
303305 */
304306 extern const int64_t avfilter_all_channel_layouts[];
305307
308+#if FF_API_PACKING
306309 /**
307310 * Return a list of all audio packing formats.
308311 */
309312 AVFilterFormats *avfilter_make_all_packing_formats(void);
313+#endif
310314
311315 /**
312316 * Return a format list which contains the intersection of the formats of
@@ -519,7 +523,9 @@ void avfilter_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats) · 206 unmodified lines
519523 void avfilter_set_common_pixel_formats(AVFilterContext *ctx, AVFilterFormats *formats);
520524 void avfilter_set_common_sample_formats(AVFilterContext *ctx, AVFilterFormats *formats);
521525 void avfilter_set_common_channel_layouts(AVFilterContext *ctx, AVFilterFormats *formats);
526+#if FF_API_PACKING
522527 void avfilter_set_common_packing_formats(AVFilterContext *ctx, AVFilterFormats *formats);
528+#endif
523529
524530 /** Default handler for query_formats() */
525531 int avfilter_default_query_formats(AVFilterContext *ctx);
@@ -616,10 +622,12 @@ struct AVFilterContext { · 90 unmodified lines
616622 struct AVFilterCommand *command_queue;
617623 };
618624
625+#if FF_API_PACKING
619626 enum AVFilterPacking {
620627 AVFILTER_PACKED = 0,
621628 AVFILTER_PLANAR,
622629 };
630+#endif
623631
624632 /**
625633 * A link between two filters. This contains pointers to the source and
@@ -655,7 +663,9 @@ struct AVFilterLink { · 29 unmodified lines
655663 #else
656664 int sample_rate; ///< samples per second
657665 #endif
666+#if FF_API_PACKING
658667 int planar; ///< agreed upon packing mode of audio buffers. true if planar.
668+#endif
659669
660670 int format; ///< agreed upon media format
661671
@@ -669,8 +679,10 @@ struct AVFilterLink { · 7 unmodified lines
669679 AVFilterFormats *in_formats;
670680 AVFilterFormats *out_formats;
671681
682+#if FF_API_PACKING
672683 AVFilterFormats *in_packing;
673684 AVFilterFormats *out_packing;
685+#endif
674686
675687 /**
676688 * The buffer reference currently being sent across the link by the source

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