xine-lib  1.2.9
yuv2rgb_private.h
Go to the documentation of this file.
1 /*
2  * yuv2rgb_private.h
3  *
4  * Copyright (C) 2001-2017 the xine project
5  * This file is part of xine, a free video player.
6  *
7  * based on work from mpeg2dec:
8  * Copyright (C) 1999-2001 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
9  *
10  * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
11  *
12  * mpeg2dec is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * mpeg2dec is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
25  */
26 
27 #ifndef YUV2RGB_PRIVATE_H
28 #define YUV2RGB_PRIVATE_H
29 
30 #include <inttypes.h>
31 
32 #ifdef HAVE_MLIB
33 #include <mlib_video.h>
34 #endif
35 
36 #include "yuv2rgb.h"
37 
40 
41 typedef void (*scale_line_func_t) (uint8_t *source, uint8_t *dest, int width, int step);
42 
44 
46 
54 
55  uint8_t *y_buffer;
56  uint8_t *u_buffer;
57  uint8_t *v_buffer;
58 
59  void **table_rV;
60  void **table_gU;
61  int *table_gV;
62  void **table_bU;
63  void *table_mmx;
64 
65  uint8_t *cmap;
67 
68 #ifdef HAVE_MLIB
69  uint8_t *mlib_buffer;
70  uint8_t *mlib_resize_buffer;
71  mlib_filter mlib_filter_type;
72 #endif
73 };
74 
76 
78 
79  int mode;
80  int swapped;
81  uint8_t *cmap;
82 
83  void *table_base;
84  void *table_rV[256];
85  void *table_gU[256];
86  int table_gV[256];
87  void *table_bU[256];
88  void *table_mmx;
89 
90  /* preselected functions for mode/swap/hardware */
94 };
95 
97  int brightness, int contrast, int saturation,
98  int colormatrix);
102 
103 
104 #endif /* YUV2RGB_PRIVATE_H */
void ** table_bU
Definition: yuv2rgb_private.h:62
Definition: yuv2rgb.h:75
yuv2rgb_fun_t yuv2rgb_fun
Definition: yuv2rgb_private.h:91
void ** table_rV
Definition: yuv2rgb_private.h:59
void * table_rV[256]
Definition: yuv2rgb_private.h:84
int step_dx
Definition: yuv2rgb_private.h:52
yuy22rgb_fun_t yuy22rgb_fun
Definition: yuv2rgb_private.h:92
int swapped
Definition: yuv2rgb_private.h:80
int * table_gV
Definition: yuv2rgb_private.h:61
void ** table_gU
Definition: yuv2rgb_private.h:60
int dest_width
Definition: yuv2rgb_private.h:49
uint8_t * cmap
Definition: yuv2rgb_private.h:65
void(* yuy22rgb_fun_t)(yuv2rgb_t *this, uint8_t *image, uint8_t *p)
Definition: yuv2rgb.h:45
int dest_height
Definition: yuv2rgb_private.h:49
int slice_height
Definition: yuv2rgb_private.h:51
int do_scale
Definition: yuv2rgb_private.h:53
int source_height
Definition: yuv2rgb_private.h:47
uint8_t * u_buffer
Definition: yuv2rgb_private.h:56
int swapped
Definition: yuv2rgb_private.h:53
void * table_gU[256]
Definition: yuv2rgb_private.h:85
int rgb_stride
Definition: yuv2rgb_private.h:50
void yuv2rgb_init_mmxext(yuv2rgb_factory_impl_t *this)
void mmx_yuv2rgb_set_csc_levels(yuv2rgb_factory_t *this, int brightness, int contrast, int saturation, int colormatrix)
int y_stride
Definition: yuv2rgb_private.h:48
yuv2rgb_single_pixel_fun_t yuv2rgb_single_pixel_fun
Definition: yuv2rgb_private.h:93
int slice_offset
Definition: yuv2rgb_private.h:51
void * table_base
Definition: yuv2rgb_private.h:83
contrast
Definition: eq.c:162
int step_dy
Definition: yuv2rgb_private.h:52
int table_gV[256]
Definition: yuv2rgb_private.h:86
uint32_t(* yuv2rgb_single_pixel_fun_t)(yuv2rgb_t *this, uint8_t y, uint8_t u, uint8_t v)
Definition: yuv2rgb.h:47
void * table_bU[256]
Definition: yuv2rgb_private.h:87
Definition: yuv2rgb_private.h:75
uint8_t * cmap
Definition: yuv2rgb_private.h:81
unsigned int width
Definition: gfontrle.c:4
uint8_t * v_buffer
Definition: yuv2rgb_private.h:57
yuv2rgb_factory_t intf
Definition: yuv2rgb_private.h:77
void(* yuv2rgb_fun_t)(yuv2rgb_t *this, uint8_t *image, uint8_t *py, uint8_t *pu, uint8_t *pv)
Definition: yuv2rgb.h:43
scale_line_func_t scale_line
Definition: yuv2rgb_private.h:66
void * table_mmx
Definition: yuv2rgb_private.h:88
void yuv2rgb_init_mlib(yuv2rgb_factory_impl_t *this)
void yuv2rgb_init_mmx(yuv2rgb_factory_impl_t *this)
uint8_t * y_buffer
Definition: yuv2rgb_private.h:55
int mode
Definition: yuv2rgb_private.h:79
int uv_stride
Definition: yuv2rgb_private.h:48
yuv2rgb_t intf
Definition: yuv2rgb_private.h:45
Definition: yuv2rgb_private.h:43
Definition: yuv2rgb.h:117
void(* scale_line_func_t)(uint8_t *source, uint8_t *dest, int width, int step)
Definition: yuv2rgb_private.h:41
void * table_mmx
Definition: yuv2rgb_private.h:63
int source_width
Definition: yuv2rgb_private.h:47