diff options
Diffstat (limited to 'tinyMEDIA/include/tinymedia/tmedia_imageattr.h')
-rwxr-xr-x | tinyMEDIA/include/tinymedia/tmedia_imageattr.h | 98 |
1 files changed, 47 insertions, 51 deletions
diff --git a/tinyMEDIA/include/tinymedia/tmedia_imageattr.h b/tinyMEDIA/include/tinymedia/tmedia_imageattr.h index c709a17..c187da3 100755 --- a/tinyMEDIA/include/tinymedia/tmedia_imageattr.h +++ b/tinyMEDIA/include/tinymedia/tmedia_imageattr.h @@ -2,19 +2,19 @@ * Copyright (C) 2012 Doubango Telecom <http://www.doubango.org> * * Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org> -* +* * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. -* +* * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with DOUBANGO. * @@ -41,63 +41,59 @@ typedef int32_t xyvalue_t; typedef double qvalue_t; typedef double spvalue_t; -typedef struct tmedia_imageattr_srange_xs -{ - unsigned is_range:1; - union{ - struct{ - spvalue_t start; - spvalue_t end; - }range; - struct{ - spvalue_t values[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; - tsk_size_t count; - }array; - }; +typedef struct tmedia_imageattr_srange_xs { + unsigned is_range:1; + union { + struct { + spvalue_t start; + spvalue_t end; + } range; + struct { + spvalue_t values[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; + tsk_size_t count; + } array; + }; } tmedia_imageattr_srange_xt; -typedef struct tmedia_imageattr_xyrange_xs -{ - unsigned is_range:1; - union{ - struct{ - xyvalue_t start; - xyvalue_t step; - xyvalue_t end; - }range; - struct{ - xyvalue_t values[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; - tsk_size_t count; - }array; - }; +typedef struct tmedia_imageattr_xyrange_xs { + unsigned is_range:1; + union { + struct { + xyvalue_t start; + xyvalue_t step; + xyvalue_t end; + } range; + struct { + xyvalue_t values[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; + tsk_size_t count; + } array; + }; } tmedia_imageattr_xyrange_xt; -typedef struct tmedia_imageattr_set_xs -{ - tmedia_imageattr_xyrange_xt xrange; - tmedia_imageattr_xyrange_xt yrange; - tmedia_imageattr_srange_xt srange; - struct{ - unsigned is_present:1; - spvalue_t start; - spvalue_t end; - }prange; - qvalue_t qvalue; +typedef struct tmedia_imageattr_set_xs { + tmedia_imageattr_xyrange_xt xrange; + tmedia_imageattr_xyrange_xt yrange; + tmedia_imageattr_srange_xt srange; + struct { + unsigned is_present:1; + spvalue_t start; + spvalue_t end; + } prange; + qvalue_t qvalue; } tmedia_imageattr_set_xt; -typedef struct tmedia_imageattr_xs -{ - struct{ - tmedia_imageattr_set_xt sets[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; - tsk_size_t count; - }send; - struct{ - tmedia_imageattr_set_xt sets[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; - tsk_size_t count; - }recv; +typedef struct tmedia_imageattr_xs { + struct { + tmedia_imageattr_set_xt sets[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; + tsk_size_t count; + } send; + struct { + tmedia_imageattr_set_xt sets[TMEDIA_imageattr_ARRAY_MAX_SIZE + 1]; + tsk_size_t count; + } recv; } tmedia_imageattr_xt; |