~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to libmpeg2/mpeg2_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * along with this program; if not, write to the Free Software
21
21
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
22
 *
23
 
 * Modified for use with MPlayer, see libmpeg-0.4.1.diff for the exact changes.
 
23
 * Modified for use with MPlayer, see libmpeg2_changes.diff for the exact changes.
24
24
 * detailed changelog at http://svn.mplayerhq.hu/mplayer/trunk/
25
 
 * $Id: mpeg2_internal.h 23254 2007-05-07 19:11:56Z gpoirier $
 
25
 * $Id: mpeg2_internal.h 28325 2009-01-16 09:21:21Z reimar $
26
26
 */
27
27
 
 
28
#ifndef LIBMPEG2_MPEG2_INTERNAL_H
 
29
#define LIBMPEG2_MPEG2_INTERNAL_H
 
30
 
 
31
#define STATE_INTERNAL_NORETURN ((mpeg2_state_t)-1)
 
32
 
28
33
/* macroblock modes */
29
34
#define MACROBLOCK_INTRA 1
30
35
#define MACROBLOCK_PATTERN 2
149
154
 
150
155
    int mpeg1;
151
156
 
152
 
    /* for MPlayer: */
 
157
    /* XXX: stuff due to xine shit */
 
158
    int8_t q_scale_type;
 
159
 
153
160
    int quantizer_scales[32];
154
161
    int quantizer_scale;
155
162
    char* quant_store;
221
228
    int16_t display_offset_x, display_offset_y;
222
229
 
223
230
    int copy_matrix;
224
 
    int8_t q_scale_type, scaled[4];
 
231
    int8_t scaled[4]; /* XXX: MOVED */
 
232
    //int8_t q_scale_type, scaled[4];
225
233
    uint8_t quantizer_matrix[4][64];
226
234
    uint8_t new_quantizer_matrix[4][64];
227
235
 
228
 
    /* for MPlayer: */
229
236
    unsigned char *pending_buffer;
230
237
    int pending_length;
231
238
};
232
239
 
233
240
typedef struct {
234
 
#ifdef ARCH_PPC
 
241
#if ARCH_PPC
235
242
    uint8_t regv[12*16];
236
243
#endif
237
244
    int dummy;
238
245
} cpu_state_t;
239
246
 
240
247
/* cpu_accel.c */
241
 
uint32_t mpeg2_detect_accel (void);
 
248
uint32_t mpeg2_detect_accel (uint32_t accel);
242
249
 
243
250
/* cpu_state.c */
244
251
void mpeg2_cpu_state_init (uint32_t accel);
264
271
void mpeg2_set_fbuf (mpeg2dec_t * mpeg2dec, int b_type);
265
272
 
266
273
/* idct.c */
267
 
void mpeg2_idct_init (uint32_t accel);
 
274
extern void mpeg2_idct_init (uint32_t accel);
 
275
extern uint8_t mpeg2_scan_norm[64];
 
276
extern uint8_t mpeg2_scan_alt[64];
268
277
 
269
278
/* idct_mmx.c */
 
279
void mpeg2_idct_copy_sse2 (int16_t * block, uint8_t * dest, int stride);
 
280
void mpeg2_idct_add_sse2 (int last, int16_t * block,
 
281
                          uint8_t * dest, int stride);
270
282
void mpeg2_idct_copy_mmxext (int16_t * block, uint8_t * dest, int stride);
271
283
void mpeg2_idct_add_mmxext (int last, int16_t * block,
272
284
                            uint8_t * dest, int stride);
313
325
extern mpeg2_mc_t mpeg2_mc_alpha;
314
326
extern mpeg2_mc_t mpeg2_mc_vis;
315
327
extern mpeg2_mc_t mpeg2_mc_arm;
316
 
extern mpeg2_mc_t mpeg2_mc_iwmmxt;
 
328
 
 
329
#endif /* LIBMPEG2_MPEG2_INTERNAL_H */