summaryrefslogtreecommitdiff
path: root/src/libffmpeg/ff_mpeg_parser.h
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-03-18 01:15:58 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-03-18 01:15:58 +0000
commit0bb3f6696c0c7bd9644569bbf599d9baa43610da (patch)
treed01a4f5e55f8c2af8f6e51fae1f7478a4579cdb7 /src/libffmpeg/ff_mpeg_parser.h
parent431033df2571df5bdd1ec1253cf04921b6d01368 (diff)
downloadxine-lib-0bb3f6696c0c7bd9644569bbf599d9baa43610da.tar.gz
xine-lib-0bb3f6696c0c7bd9644569bbf599d9baa43610da.tar.bz2
Move ffmpeg plugin code into src/combined/ffmpeg & adapt for current ffmpeg.
The source remains compilable with older ffmpeg, whether internal or external. --HG-- rename : src/libffmpeg/Makefile.am => src/combined/ffmpeg/Makefile.am rename : src/libffmpeg/ff_audio_decoder.c => src/combined/ffmpeg/ff_audio_decoder.c rename : src/libffmpeg/ff_dvaudio_decoder.c => src/combined/ffmpeg/ff_dvaudio_decoder.c rename : src/libffmpeg/ff_mpeg_parser.c => src/combined/ffmpeg/ff_mpeg_parser.c rename : src/libffmpeg/ff_mpeg_parser.h => src/combined/ffmpeg/ff_mpeg_parser.h rename : src/libffmpeg/ff_video_decoder.c => src/combined/ffmpeg/ff_video_decoder.c rename : src/libffmpeg/ffmpeg_decoder.c => src/combined/ffmpeg/ffmpeg_decoder.c rename : src/libffmpeg/ffmpeg_decoder.h => src/combined/ffmpeg/ffmpeg_decoder.h rename : src/libffmpeg/ffmpeg_encoder.c => src/combined/ffmpeg/ffmpeg_encoder.c
Diffstat (limited to 'src/libffmpeg/ff_mpeg_parser.h')
-rw-r--r--src/libffmpeg/ff_mpeg_parser.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/libffmpeg/ff_mpeg_parser.h b/src/libffmpeg/ff_mpeg_parser.h
deleted file mode 100644
index ea43a6ce4..000000000
--- a/src/libffmpeg/ff_mpeg_parser.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright (C) 2001-2004 the xine project
- *
- * This file is part of xine, a free video player.
- *
- * xine 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.
- *
- * xine 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
- *
- * Simple MPEG-ES parser/framer by Thibaut Mattern (tmattern@noos.fr)
- * based on libmpeg2 decoder.
- */
-#ifndef HAVE_MPEG_PARSER_H
-#define HAVE_MPEG_PARSER_H
-
-#include "xine_internal.h"
-#include "ffmpeg_decoder.h"
-
-#define BUFFER_SIZE (1194 * 1024) /* libmpeg2's buffer size */
-
-/* picture coding type (mpeg2 header) */
-#define I_TYPE 1
-#define P_TYPE 2
-#define B_TYPE 3
-#define D_TYPE 4
-
-typedef struct mpeg_parser_s {
- uint8_t *chunk_buffer;
- uint8_t *chunk_ptr;
- uint8_t *chunk_start;
- uint32_t shift;
- int buffer_size;
- uint8_t code;
- uint8_t picture_coding_type;
-
- uint8_t is_sequence_needed:1;
- uint8_t is_mpeg1:1; /* public */
- uint8_t has_sequence:1; /* public */
- uint8_t in_slice:1;
-
- uint8_t rate_code:4;
-
- int aspect_ratio_info;
-
- /* public properties */
- uint16_t width;
- uint16_t height;
- int frame_duration;
- double frame_aspect_ratio;
-
-} mpeg_parser_t;
-
-/* parser initialization */
-void mpeg_parser_init (mpeg_parser_t *parser);
-
-/* parser disposal */
-void mpeg_parser_dispose (mpeg_parser_t *parser);
-
-/* read a frame
- * return a pointer to the first byte of the next frame
- * or NULL if more bytes are needed
- * *flush is set to 1 if the decoder must be flushed (needed for still menus)
- */
-uint8_t *mpeg_parser_decode_data (mpeg_parser_t *parser,
- uint8_t *current, uint8_t *end,
- int *flush);
-
-/* reset the parser */
-void mpeg_parser_reset (mpeg_parser_t *parser);
-
-#endif /* HAVE_MPEG_PARSER_H */