Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0021f7a1
Commit
0021f7a1
authored
Jun 24, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added vlc_chroma_description_t::pixel_bits.
parent
bbf253f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
21 deletions
+28
-21
include/vlc_fourcc.h
include/vlc_fourcc.h
+2
-1
src/misc/fourcc.c
src/misc/fourcc.c
+26
-20
No files found.
include/vlc_fourcc.h
View file @
0021f7a1
...
@@ -448,7 +448,8 @@ typedef struct {
...
@@ -448,7 +448,8 @@ typedef struct {
unsigned
den
;
unsigned
den
;
}
h
;
}
h
;
}
p
[
4
];
}
p
[
4
];
unsigned
pixel_size
;
unsigned
pixel_size
;
/* Number of bytes per pixel for a plane */
unsigned
pixel_bits
;
/* Number of bits actually used bits per pixel for a plane */
}
vlc_chroma_description_t
;
}
vlc_chroma_description_t
;
/**
/**
...
...
src/misc/fourcc.c
View file @
0021f7a1
...
@@ -1710,21 +1710,23 @@ bool vlc_fourcc_IsYUV(vlc_fourcc_t fcc)
...
@@ -1710,21 +1710,23 @@ bool vlc_fourcc_IsYUV(vlc_fourcc_t fcc)
return
false
;
return
false
;
}
}
#define PLANAR(n, w_den, h_den, size) \
#define PLANAR(n, w_den, h_den, size
, bits
) \
{ .plane_count = n, \
{ .plane_count = n, \
.p = { {.w = {1, 1}, .h = {1, 1}}, \
.p = { {.w = {1, 1}, .h = {1, 1}}, \
{.w = {1,w_den}, .h = {1,h_den}}, \
{.w = {1,w_den}, .h = {1,h_den}}, \
{.w = {1,w_den}, .h = {1,h_den}}, \
{.w = {1,w_den}, .h = {1,h_den}}, \
{.w = {1, 1}, .h = {1, 1}} }, \
{.w = {1, 1}, .h = {1, 1}} }, \
.pixel_size = size }
.pixel_size = size, \
.pixel_bits = bits }
#define PLANAR_8(n, w_den, h_den)
PLANAR(n, w_den, h_den, 1
)
#define PLANAR_8(n, w_den, h_den)
PLANAR(n, w_den, h_den, 1, 8
)
#define PLANAR_16(n, w_den, h_den
) PLANAR(n, w_den, h_den, 2
)
#define PLANAR_16(n, w_den, h_den
, bits) PLANAR(n, w_den, h_den, 2, bits
)
#define PACKED_FMT(size) \
#define PACKED_FMT(size
, bits
) \
{ .plane_count = 1, \
{ .plane_count = 1, \
.p = { {.w = {1,1}, .h = {1,1}} }, \
.p = { {.w = {1,1}, .h = {1,1}} }, \
.pixel_size = size }
.pixel_size = size, \
.pixel_bits = bits }
static
const
struct
static
const
struct
{
{
...
@@ -1740,29 +1742,33 @@ static const struct
...
@@ -1740,29 +1742,33 @@ static const struct
{
{
VLC_CODEC_YUVA
,
0
},
PLANAR_8
(
4
,
1
,
1
)
},
{
{
VLC_CODEC_YUVA
,
0
},
PLANAR_8
(
4
,
1
,
1
)
},
{
{
VLC_CODEC_I420_10L
,
{
{
VLC_CODEC_I420_10L
,
VLC_CODEC_I420_10B
,
0
},
PLANAR_16
(
3
,
2
,
2
)
},
VLC_CODEC_I420_10B
,
0
},
PLANAR_16
(
3
,
2
,
2
,
10
)
},
{
{
VLC_CODEC_I420_9L
,
{
{
VLC_CODEC_I420_9L
,
VLC_CODEC_I420_9B
,
0
},
PLANAR_16
(
3
,
2
,
2
)
},
VLC_CODEC_I420_9B
,
0
},
PLANAR_16
(
3
,
2
,
2
,
9
)
},
{
{
VLC_CODEC_I422_10L
,
{
{
VLC_CODEC_I422_10L
,
VLC_CODEC_I422_10B
,
0
},
PLANAR_16
(
3
,
2
,
1
)
},
VLC_CODEC_I422_10B
,
0
},
PLANAR_16
(
3
,
2
,
1
,
10
)
},
{
{
VLC_CODEC_I422_9L
,
{
{
VLC_CODEC_I422_9L
,
VLC_CODEC_I422_9B
,
0
},
PLANAR_16
(
3
,
2
,
1
)
},
VLC_CODEC_I422_9B
,
0
},
PLANAR_16
(
3
,
2
,
1
,
9
)
},
{
{
VLC_CODEC_I444_10L
,
{
{
VLC_CODEC_I444_10L
,
VLC_CODEC_I444_10B
,
0
},
PLANAR_16
(
3
,
1
,
1
)
},
VLC_CODEC_I444_10B
,
0
},
PLANAR_16
(
3
,
1
,
1
,
10
)
},
{
{
VLC_CODEC_I444_9L
,
{
{
VLC_CODEC_I444_9L
,
VLC_CODEC_I444_9B
,
0
},
PLANAR_16
(
3
,
1
,
1
)
},
VLC_CODEC_I444_9B
,
0
},
PLANAR_16
(
3
,
1
,
1
,
9
)
},
{
{
VLC_CODEC_YUV_PACKED
,
0
},
PACKED_FMT
(
2
)
},
{
{
VLC_CODEC_YUV_PACKED
,
0
},
PACKED_FMT
(
2
,
16
)
},
{
{
VLC_CODEC_RGB8
,
VLC_CODEC_GREY
,
{
{
VLC_CODEC_RGB8
,
VLC_CODEC_GREY
,
VLC_CODEC_YUVP
,
VLC_CODEC_RGBP
,
0
},
PACKED_FMT
(
1
)
},
VLC_CODEC_YUVP
,
VLC_CODEC_RGBP
,
0
},
PACKED_FMT
(
1
,
8
)
},
{
{
VLC_CODEC_RGB16
,
VLC_CODEC_RGB15
,
VLC_CODEC_RGBT
,
VLC_CODEC_RGB12
,
VLC_CODEC_RGBA16
,
0
},
PACKED_FMT
(
2
)
},
{
{
VLC_CODEC_RGB24
,
0
},
PACKED_FMT
(
3
)
},
{
{
VLC_CODEC_RGB32
,
VLC_CODEC_RGBA
,
0
},
PACKED_FMT
(
4
)
},
{
{
VLC_CODEC_Y211
,
0
},
{
1
,
{
{{
1
,
4
},
{
1
,
1
}}
},
4
}
},
{
{
VLC_CODEC_RGB15
,
0
},
PACKED_FMT
(
2
,
15
)
},
{
{
VLC_CODEC_RGB12
,
0
},
PACKED_FMT
(
2
,
12
)
},
{
{
VLC_CODEC_RGB16
,
VLC_CODEC_RGBT
,
VLC_CODEC_RGBA16
,
0
},
PACKED_FMT
(
2
,
16
)
},
{
{
VLC_CODEC_RGB24
,
0
},
PACKED_FMT
(
3
,
24
)
},
{
{
VLC_CODEC_RGB32
,
0
},
PACKED_FMT
(
4
,
24
)
},
{
{
VLC_CODEC_RGBA
,
0
},
PACKED_FMT
(
4
,
32
)
},
{
{
0
},
{
0
,
{},
0
}
}
{
{
VLC_CODEC_Y211
,
0
},
{
1
,
{
{{
1
,
4
},
{
1
,
1
}}
},
4
,
32
}
},
{
{
0
},
{
0
,
{},
0
,
0
}
}
};
};
#undef PACKED_FMT
#undef PACKED_FMT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment