Mercurial > mplayer.hg
view libmpeg2/mpeg2.h @ 5699:1dde9686d33b
Good evening ladies and gentleman and welcome to the latest
installment of the ongoing show "Reworking the docs for fun and
profit". Your host Diego will be assisted by Nilmoni in presenting
you:
- spellchecking in all its glory
- a grammar to the envy of all native speakers
- answers now hopefully so clear that their respective questions shall
never be asked again
Somebody from the public raises his voice: "What about HTML errors?"
The host is quick to answer: "Yes, there have been corrections." From
the back of the auditory comes a subdued question: "And the FONT
tags..?" The room falls silent. There is no answer and the host
twitches. Finally the words "They have not been touched." escape from
his mouth, barely audible. A murmur erupts but the jury nods and
calms the crowd "Time to get back to serious hacking.". The host
leaves the stage under polite applause and everybody scuttles off for
their notebooks...
author | arpi |
---|---|
date | Fri, 19 Apr 2002 07:30:49 +0000 |
parents | 18f4dd5d568f |
children | 47984e3f54ce |
line wrap: on
line source
/* * mpeg2.h * Copyright (C) 1999-2001 Aaron Holtzman <aholtzma@ess.engr.uvic.ca> * * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. * * mpeg2dec 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 2 of the License, or * (at your option) any later version. * * mpeg2dec 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* Structure for the mpeg2dec decoder */ typedef struct mpeg2dec_s { // vo_instance_t * output; /* this is where we keep the state of the decoder */ struct picture_s * picture; uint32_t shift; int is_display_initialized; int is_sequence_needed; int drop_flag; int drop_frame; int in_slice; /* the maximum chunk size is determined by vbv_buffer_size */ /* which is 224K for MP@ML streams. */ /* (we make no pretenses of decoding anything more than that) */ /* allocated in init - gcc has problems allocating such big structures */ uint8_t * chunk_buffer; /* pointer to current position in chunk_buffer */ uint8_t * chunk_ptr; /* last start code ? */ uint8_t code; /* ONLY for 0.2.0 release - will not stay there later */ int frame_rate_code; } mpeg2dec_t ; void mpeg2_init (void); //void mpeg2_allocate_image_buffers (picture_t * picture); int mpeg2_decode_data (vo_functions_t *, uint8_t * data_start, uint8_t * data_end,int framedrop); //void mpeg2_close (vo_functions_t *); //void mpeg2_drop (int flag); //void mpeg2_free_image_buffers (picture_t * picture) /* initialize mpegdec with a opaque user pointer */ //void mpeg2_init (mpeg2dec_t * mpeg2dec, uint32_t mm_accel // ,vo_instance_t * output // ); /* destroy everything which was allocated, shutdown the output */ //void mpeg2_close (mpeg2dec_t * mpeg2dec); //int mpeg2_decode_data (mpeg2dec_t * mpeg2dec, // uint8_t * data_start, uint8_t * data_end); //void mpeg2_drop (mpeg2dec_t * mpeg2dec, int flag);