Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monado
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
monado
Commits
5b6e6bf6
Commit
5b6e6bf6
authored
4 years ago
by
Jakob Bornecrantz
Committed by
Jakob Bornecrantz
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
xrt: Add XRT_FORMAT_BAYER_GR8 format
parent
bfdd3a0a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/changes/xrt/mr.665.2.md
+1
-0
1 addition, 0 deletions
doc/changes/xrt/mr.665.2.md
src/xrt/auxiliary/util/u_format.c
+5
-0
5 additions, 0 deletions
src/xrt/auxiliary/util/u_format.c
src/xrt/include/xrt/xrt_defines.h
+2
-0
2 additions, 0 deletions
src/xrt/include/xrt/xrt_defines.h
with
8 additions
and
0 deletions
doc/changes/xrt/mr.665.2.md
0 → 100644
+
1
−
0
View file @
5b6e6bf6
Add
`XRT_FORMAT_BAYER_GR8`
format.
This diff is collapsed.
Click to expand it.
src/xrt/auxiliary/util/u_format.c
+
5
−
0
View file @
5b6e6bf6
...
...
@@ -21,6 +21,7 @@ u_format_str(enum xrt_format f)
case
XRT_FORMAT_R8G8B8
:
return
"XRT_FORMAT_R8G8B8"
;
case
XRT_FORMAT_R8G8
:
return
"XRT_FORMAT_R8G8"
;
case
XRT_FORMAT_R8
:
return
"XRT_FORMAT_R8"
;
case
XRT_FORMAT_BAYER_GR8
:
return
"XRT_FORMAT_BAYER_GR8"
;
case
XRT_FORMAT_L8
:
return
"XRT_FORMAT_L8"
;
case
XRT_FORMAT_BITMAP_8X1
:
return
"XRT_FORMAT_BITMAP_8X1"
;
case
XRT_FORMAT_BITMAP_8X8
:
return
"XRT_FORMAT_BITMAP_8X8"
;
...
...
@@ -41,6 +42,7 @@ u_format_is_blocks(enum xrt_format f)
case
XRT_FORMAT_R8G8B8
:
case
XRT_FORMAT_R8G8
:
case
XRT_FORMAT_R8
:
case
XRT_FORMAT_BAYER_GR8
:
case
XRT_FORMAT_L8
:
case
XRT_FORMAT_BITMAP_8X1
:
case
XRT_FORMAT_BITMAP_8X8
:
...
...
@@ -65,6 +67,7 @@ u_format_block_width(enum xrt_format f)
case
XRT_FORMAT_R8G8B8
:
case
XRT_FORMAT_R8G8
:
case
XRT_FORMAT_R8
:
case
XRT_FORMAT_BAYER_GR8
:
case
XRT_FORMAT_L8
:
case
XRT_FORMAT_YUV888
:
// Regular one pixel per block formats.
...
...
@@ -90,6 +93,7 @@ u_format_block_height(enum xrt_format f)
case
XRT_FORMAT_R8G8B8
:
case
XRT_FORMAT_R8G8
:
case
XRT_FORMAT_R8
:
case
XRT_FORMAT_BAYER_GR8
:
case
XRT_FORMAT_L8
:
case
XRT_FORMAT_BITMAP_8X1
:
case
XRT_FORMAT_YUV888
:
...
...
@@ -110,6 +114,7 @@ u_format_block_size(enum xrt_format f)
switch
(
f
)
{
case
XRT_FORMAT_BITMAP_8X1
:
case
XRT_FORMAT_R8
:
case
XRT_FORMAT_BAYER_GR8
:
case
XRT_FORMAT_L8
:
// One byte blocks
return
1
;
...
...
This diff is collapsed.
Click to expand it.
src/xrt/include/xrt/xrt_defines.h
+
2
−
0
View file @
5b6e6bf6
...
...
@@ -69,6 +69,8 @@ enum xrt_format
XRT_FORMAT_R8G8
,
XRT_FORMAT_R8
,
XRT_FORMAT_BAYER_GR8
,
XRT_FORMAT_L8
,
// Luminence, R = L, G = L, B = L.
XRT_FORMAT_BITMAP_8X1
,
// One bit format tiled in 8x1 blocks.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment