#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/error.h"
#include "libavutil/internal.h"
#include "libavutil/macros.h"
#include "libavutil/mem.h"
Go to the source code of this file.
|
#define | BPRINT_ARGS1(bp, ...) (bp), __VA_ARGS__ |
|
#define | BPRINT_ARGS0(bp, ...) __VA_ARGS__, (bp) |
|
#define | ORD_ARGS1(str, size, ...) (str), (size), __VA_ARGS__ |
|
#define | ORD_ARGS0(str, size, ...) __VA_ARGS__, (str), (size) |
|
#define | CMP_BPRINT_AND_NONBPRINT(bp, func_name, ARG_ORDER, ...) |
|
#define | CHANNEL_NAME(x) |
|
#define | CHANNEL_DESCRIPTION(x) |
|
#define | CHANNEL_FROM_STRING(x) printf("With %-38s %8d\n", AV_STRINGIFY(x)":", av_channel_from_string(x)) |
|
#define | CHANNEL_LAYOUT_FROM_MASK(x) channel_layout_from_mask(&layout, &bp, (x)); |
|
#define | CHANNEL_LAYOUT_FROM_STRING(x) |
|
#define | CHANNEL_LAYOUT_CHANNEL_FROM_INDEX(l, x) |
|
#define | CHANNEL_LAYOUT_SUBSET(l, xstr, x) |
|
#define | CHANNEL_LAYOUT_INDEX_FROM_CHANNEL(l, x) |
|
#define | CHANNEL_LAYOUT_CHANNEL_FROM_STRING(l, x) |
|
#define | CHANNEL_LAYOUT_INDEX_FROM_STRING(l, x) |
|
◆ BPRINT_ARGS1
#define BPRINT_ARGS1 |
( |
|
bp, |
|
|
|
... |
|
) |
| (bp), __VA_ARGS__ |
◆ BPRINT_ARGS0
#define BPRINT_ARGS0 |
( |
|
bp, |
|
|
|
... |
|
) |
| __VA_ARGS__, (bp) |
◆ ORD_ARGS1
#define ORD_ARGS1 |
( |
|
str, |
|
|
|
size, |
|
|
|
... |
|
) |
| (str), (size), __VA_ARGS__ |
◆ ORD_ARGS0
#define ORD_ARGS0 |
( |
|
str, |
|
|
|
size, |
|
|
|
... |
|
) |
| __VA_ARGS__, (str), (size) |
◆ CMP_BPRINT_AND_NONBPRINT
#define CMP_BPRINT_AND_NONBPRINT |
( |
|
bp, |
|
|
|
func_name, |
|
|
|
ARG_ORDER, |
|
|
|
... |
|
) |
| |
◆ CHANNEL_NAME
#define CHANNEL_NAME |
( |
|
x | ) |
|
◆ CHANNEL_DESCRIPTION
#define CHANNEL_DESCRIPTION |
( |
|
x | ) |
|
◆ CHANNEL_FROM_STRING
◆ CHANNEL_LAYOUT_FROM_MASK
◆ CHANNEL_LAYOUT_FROM_STRING
#define CHANNEL_LAYOUT_FROM_STRING |
( |
|
x | ) |
|
Value:
printf("With \"%s\":%*s %32s\n", x, strlen(x) > 32 ? 0 : 32 - (int)strlen(x), "", bp.str);
Definition at line 178 of file channel_layout.c.
◆ CHANNEL_LAYOUT_CHANNEL_FROM_INDEX
#define CHANNEL_LAYOUT_CHANNEL_FROM_INDEX |
( |
|
l, |
|
|
|
x |
|
) |
| |
Value:
ret = -1; \
printf(
"On \"%s\" layout with %2d: %8d\n", l, x,
ret)
Definition at line 182 of file channel_layout.c.
◆ CHANNEL_LAYOUT_SUBSET
#define CHANNEL_LAYOUT_SUBSET |
( |
|
l, |
|
|
|
xstr, |
|
|
|
x |
|
) |
| |
Value:
printf(
"On \"%s\" layout with %-22s 0x%"PRIx64
"\n", l, xstr,
mask)
Definition at line 188 of file channel_layout.c.
◆ CHANNEL_LAYOUT_INDEX_FROM_CHANNEL
#define CHANNEL_LAYOUT_INDEX_FROM_CHANNEL |
( |
|
l, |
|
|
|
x |
|
) |
| |
◆ CHANNEL_LAYOUT_CHANNEL_FROM_STRING
#define CHANNEL_LAYOUT_CHANNEL_FROM_STRING |
( |
|
l, |
|
|
|
x |
|
) |
| |
◆ CHANNEL_LAYOUT_INDEX_FROM_STRING
#define CHANNEL_LAYOUT_INDEX_FROM_STRING |
( |
|
l, |
|
|
|
x |
|
) |
| |
◆ channel_name()
◆ channel_description()
static void channel_description |
( |
AVBPrint * |
bp, |
|
|
enum AVChannel |
channel |
|
) |
| |
|
static |
◆ channel_layout_from_mask()
static void channel_layout_from_mask |
( |
AVChannelLayout * |
layout, |
|
|
AVBPrint * |
bp, |
|
|
uint64_t |
channel_layout |
|
) |
| |
|
static |
◆ channel_layout_from_string()
static void channel_layout_from_string |
( |
AVChannelLayout * |
layout, |
|
|
AVBPrint * |
bp, |
|
|
const char * |
channel_layout |
|
) |
| |
|
static |
◆ describe_type()
◆ channel_layout_retype()
static const char* channel_layout_retype |
( |
AVChannelLayout * |
layout, |
|
|
AVBPrint * |
bp, |
|
|
const char * |
channel_layout |
|
) |
| |
|
static |
◆ main()
◆ channel_order_names
const char* channel_order_names[] = {"UNSPEC", "NATIVE", "CUSTOM", "AMBI"} |
|
static |
uint64_t av_channel_layout_subset(const AVChannelLayout *channel_layout, uint64_t mask)
Find out what channels from a given set are present in a channel layout, without regard for their pos...