Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
62fdb630
Commit
62fdb630
authored
Dec 06, 2005
by
Thomas Vander Stichele
Committed by
Wim Taymans
Jun 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MOVED FROM BAD 22/68] expand tabs
Original commit message from CVS: expand tabs
parent
59986536
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
gst/colorspace/yuv2rgb.c
gst/colorspace/yuv2rgb.c
+12
-12
gst/colorspace/yuv2rgb.h
gst/colorspace/yuv2rgb.h
+4
-4
No files found.
gst/colorspace/yuv2rgb.c
View file @
62fdb630
...
...
@@ -46,17 +46,17 @@ static int U_b_tab[256];
#define GAMMA_CORRECTION(x) ((int)(pow((x) / 255.0, 1.0 / gammaCorrect) * 255.0))
#define CHROMA_CORRECTION256(x) ((x) >= 128 \
? 128 + Min(127, (int)(((x) - 128.0) * chromaCorrect)) \
: 128 - Min(128, (int)((128.0 - (x)) * chromaCorrect)))
? 128 + Min(127, (int)(((x) - 128.0) * chromaCorrect)) \
: 128 - Min(128, (int)((128.0 - (x)) * chromaCorrect)))
#define CHROMA_CORRECTION128(x) ((x) >= 0 \
? Min(127, (int)(((x) * chromaCorrect))) \
: Max(-128, (int)(((x) * chromaCorrect))))
? Min(127, (int)(((x) * chromaCorrect))) \
: Max(-128, (int)(((x) * chromaCorrect))))
#define CHROMA_CORRECTION256D(x) ((x) >= 128 \
? 128.0 + Min(127.0, (((x) - 128.0) * chromaCorrect)) \
: 128.0 - Min(128.0, (((128.0 - (x)) * chromaCorrect))))
? 128.0 + Min(127.0, (((x) - 128.0) * chromaCorrect)) \
: 128.0 - Min(128.0, (((128.0 - (x)) * chromaCorrect))))
#define CHROMA_CORRECTION128D(x) ((x) >= 0 \
? Min(127.0, ((x) * chromaCorrect)) \
: Max(-128.0, ((x) * chromaCorrect)))
? Min(127.0, ((x) * chromaCorrect)) \
: Max(-128.0, ((x) * chromaCorrect)))
void
gst_colorspace_I420_to_rgb16
(
GstColorspace
*
space
,
unsigned
char
*
src
,
...
...
@@ -345,14 +345,14 @@ free_bits_at_bottom (a)
*
* InitColor16Dither --
*
*
To get rid of the multiply and other conversions in color
*
dither, we use a lookup table.
*
To get rid of the multiply and other conversions in color
*
dither, we use a lookup table.
*
* Results:
*
None.
*
None.
*
* Side effects:
*
The lookup tables are initialized.
*
The lookup tables are initialized.
*
*--------------------------------------------------------------
*/
...
...
gst/colorspace/yuv2rgb.h
View file @
62fdb630
...
...
@@ -85,10 +85,10 @@ GstColorspaceYUVTables * gst_colorspace_init_yuv(long depth,
#if 0
GstColorspaceConverter*
gst_colorspace_yuv2rgb_get_converter
(const GstCaps *from, const GstCaps *to);
#define
gst_colorspace_convert(converter, src, dest) \
(converter)->convert((converter), (src), (dest))
void
gst_colorspace_converter_destroy
(GstColorspaceConverter *space);
GstColorspaceConverter*
gst_colorspace_yuv2rgb_get_converter
(const GstCaps *from, const GstCaps *to);
#define
gst_colorspace_convert(converter, src, dest) \
(converter)->convert((converter), (src), (dest))
void
gst_colorspace_converter_destroy
(GstColorspaceConverter *space);
#endif
G_END_DECLS
...
...
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