History

lavfi: add audio channel packing negotiation fields

Mina Nagy Zaki committed 15 years ago

Commit b57df291 parent 7bda0c96 files · +51 −3Browse files

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

Unified · Split

libavfilter/avfilter.h+16−2
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "libavutil/rational.h"
3030
3131 #define LIBAVFILTER_VERSION_MAJOR 2
32−#define LIBAVFILTER_VERSION_MINOR 26
32+#define LIBAVFILTER_VERSION_MINOR 27
3333 #define LIBAVFILTER_VERSION_MICRO 0
3434
3535 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
@@ -264,6 +264,11 @@ AVFilterFormats *avfilter_all_formats(enum AVMediaType type); · 228 unmodified lines
264264 */
265265 AVFilterFormats *avfilter_all_channel_layouts(void);
266266
267+/**
268+ * Return a list of all audio packing formats.
269+ */
270+AVFilterFormats *avfilter_all_packing_formats(void);
271+
267272 /**
268273 * Return a format list which contains the intersection of the formats of
269274 * a and b. Also, all the references of a, all the references of b, and
@@ -482,6 +487,7 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per · 212 unmodified lines
482487 void avfilter_set_common_pixel_formats(AVFilterContext *ctx, AVFilterFormats *formats);
483488 void avfilter_set_common_sample_formats(AVFilterContext *ctx, AVFilterFormats *formats);
484489 void avfilter_set_common_channel_layouts(AVFilterContext *ctx, AVFilterFormats *formats);
490+void avfilter_set_common_packing_formats(AVFilterContext *ctx, AVFilterFormats *formats);
485491
486492 /** Default handler for query_formats() */
487493 int avfilter_default_query_formats(AVFilterContext *ctx);
@@ -570,6 +576,11 @@ struct AVFilterContext { · 82 unmodified lines
570576 void *priv; ///< private data for use by the filter
571577 };
572578
579+enum AVFilterPacking {
580+ AVFILTER_PACKED = 0,
581+ AVFILTER_PLANAR,
582+};
583+
573584 /**
574585 * A link between two filters. This contains pointers to the source and
575586 * destination filters between which this link exists, and the indexes of
@@ -597,9 +608,10 @@ struct AVFilterLink { · 21 unmodified lines
597608 int w; ///< agreed upon image width
598609 int h; ///< agreed upon image height
599610 AVRational sample_aspect_ratio; ///< agreed upon sample aspect ratio
600− /* These two parameters apply only to audio */
611+ /* These parameters apply only to audio */
601612 int64_t channel_layout; ///< channel layout of current buffer (see libavutil/audioconvert.h)
602613 int64_t sample_rate; ///< samples per second
614+ int planar; ///< agreed upon packing mode of audio buffers. true if planar.
603615
604616 int format; ///< agreed upon media format
605617
@@ -615,6 +627,8 @@ struct AVFilterLink { · 9 unmodified lines
615627
616628 AVFilterFormats *in_chlayouts;
617629 AVFilterFormats *out_chlayouts;
630+ AVFilterFormats *in_packing;
631+ AVFilterFormats *out_packing;
618632
619633 /**
620634 * 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