Commit 78a24fd0 authored by James Almer's avatar James Almer

avcodec/atrac9tab: use explicit ATRAC9BlockConfig struct initializers

Cosmetic change.
Reviewed-by: 's avatarLynne <dev@lynne.ee>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 5561a1de
...@@ -41,61 +41,48 @@ typedef struct ATRAC9BlockConfig { ...@@ -41,61 +41,48 @@ typedef struct ATRAC9BlockConfig {
static const ATRAC9BlockConfig at9_block_layout[] = { static const ATRAC9BlockConfig at9_block_layout[] = {
{ /* Mono */ { /* Mono */
AV_CH_LAYOUT_MONO, .channel_layout = AV_CH_LAYOUT_MONO,
{ .type = { ATRAC9_BLOCK_TYPE_SCE, },
ATRAC9_BLOCK_TYPE_SCE, .count = 1,
},
{ { 0 }, },
1,
}, },
{ /* Dual Mono */ { /* Dual Mono */
AV_CH_LAYOUT_STEREO, .channel_layout = AV_CH_LAYOUT_STEREO,
{ .type = { ATRAC9_BLOCK_TYPE_SCE,
ATRAC9_BLOCK_TYPE_SCE, ATRAC9_BLOCK_TYPE_SCE, },
ATRAC9_BLOCK_TYPE_SCE, .plane_map = { { 0 }, { 1 }, },
}, .count = 2,
{ { 0 }, { 1 }, },
2,
}, },
{ /* Stereo */ { /* Stereo */
AV_CH_LAYOUT_STEREO, .channel_layout = AV_CH_LAYOUT_STEREO,
{ .type = { ATRAC9_BLOCK_TYPE_CPE, },
ATRAC9_BLOCK_TYPE_CPE, .plane_map = { { 0, 1 }, },
}, .count = 1,
{ { 0, 1 }, },
1,
}, },
{ /* 5.1 */ { /* 5.1 */
AV_CH_LAYOUT_5POINT1, .channel_layout = AV_CH_LAYOUT_5POINT1,
{ .type = { ATRAC9_BLOCK_TYPE_CPE,
ATRAC9_BLOCK_TYPE_CPE, ATRAC9_BLOCK_TYPE_SCE,
ATRAC9_BLOCK_TYPE_SCE, ATRAC9_BLOCK_TYPE_LFE,
ATRAC9_BLOCK_TYPE_LFE, ATRAC9_BLOCK_TYPE_CPE, },
ATRAC9_BLOCK_TYPE_CPE, .plane_map = { { 0, 1 }, { 2 }, { 3 }, { 4, 5 }, },
}, .count = 4,
{ { 0, 1 }, { 2 }, { 3 }, { 4, 5 }, },
4,
}, },
{ /* 5.1 */ { /* 7.1 */
AV_CH_LAYOUT_7POINT1, .channel_layout = AV_CH_LAYOUT_7POINT1,
{ .type = { ATRAC9_BLOCK_TYPE_CPE,
ATRAC9_BLOCK_TYPE_CPE, ATRAC9_BLOCK_TYPE_SCE,
ATRAC9_BLOCK_TYPE_SCE, ATRAC9_BLOCK_TYPE_LFE,
ATRAC9_BLOCK_TYPE_LFE, ATRAC9_BLOCK_TYPE_CPE,
ATRAC9_BLOCK_TYPE_CPE, ATRAC9_BLOCK_TYPE_CPE, },
ATRAC9_BLOCK_TYPE_CPE, .plane_map = { { 0, 1 }, { 2 }, { 3 }, { 4, 5 }, { 6, 7 }, },
}, .count = 5,
{ { 0, 1 }, { 2 }, { 3 }, { 4, 5 }, { 6, 7 }, },
5,
}, },
{ /* Quad */ { /* Quad */
AV_CH_LAYOUT_QUAD, .channel_layout = AV_CH_LAYOUT_QUAD,
{ .type = { ATRAC9_BLOCK_TYPE_CPE,
ATRAC9_BLOCK_TYPE_CPE, ATRAC9_BLOCK_TYPE_CPE, },
ATRAC9_BLOCK_TYPE_CPE, .plane_map = { { 0, 1 }, { 2, 3 }, },
}, .count = 2,
{ { 0, 1 }, { 2, 3 }, },
2,
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment