[FFmpeg-cvslog] r9023 - in trunk/libavcodec: mjpeg.c mpegvideo.c mpegvideo.h
aurel
subversion
Mon May 14 13:53:27 CEST 2007
Author: aurel
Date: Mon May 14 13:53:27 2007
New Revision: 9023
Log:
remove some unused mjpeg encoding variables
(they were always set to a constant value)
Modified:
trunk/libavcodec/mjpeg.c
trunk/libavcodec/mpegvideo.c
trunk/libavcodec/mpegvideo.h
Modified: trunk/libavcodec/mjpeg.c
==============================================================================
--- trunk/libavcodec/mjpeg.c (original)
+++ trunk/libavcodec/mjpeg.c Mon May 14 13:53:27 2007
@@ -338,11 +338,9 @@ void mjpeg_picture_header(MpegEncContext
put_marker(&s->pb, SOI);
- if (!s->mjpeg_data_only_frames)
- {
jpeg_put_comments(s);
- if (s->mjpeg_write_tables) jpeg_table_header(s);
+ jpeg_table_header(s);
switch(s->avctx->codec_id){
case CODEC_ID_MJPEG: put_marker(&s->pb, SOF0 ); break;
@@ -384,7 +382,6 @@ void mjpeg_picture_header(MpegEncContext
#else
put_bits(&s->pb, 8, 0); /* select matrix */
#endif
- }
/* scan header */
put_marker(&s->pb, SOS);
Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c (original)
+++ trunk/libavcodec/mpegvideo.c Mon May 14 13:53:27 2007
@@ -1197,8 +1197,6 @@ int MPV_encode_init(AVCodecContext *avct
case CODEC_ID_MJPEG:
s->out_format = FMT_MJPEG;
s->intra_only = 1; /* force intra only for jpeg */
- s->mjpeg_write_tables = 1;
- s->mjpeg_data_only_frames = 0; /* write all the needed headers */
s->mjpeg_vsample[0] = 2;
s->mjpeg_vsample[1] = 2>>chroma_v_shift;
s->mjpeg_vsample[2] = 2>>chroma_v_shift;
Modified: trunk/libavcodec/mpegvideo.h
==============================================================================
--- trunk/libavcodec/mpegvideo.h (original)
+++ trunk/libavcodec/mpegvideo.h Mon May 14 13:53:27 2007
@@ -589,8 +589,6 @@ typedef struct MpegEncContext {
struct MJpegContext *mjpeg_ctx;
int mjpeg_vsample[3]; ///< vertical sampling factors, default = {2, 1, 1}
int mjpeg_hsample[3]; ///< horizontal sampling factors, default = {2, 1, 1}
- int mjpeg_write_tables; ///< do we want to have quantisation- and huffmantables in the jpeg file ?
- int mjpeg_data_only_frames; ///< frames only with SOI, SOS and EOI markers
/* MSMPEG4 specific */
int mv_table_index;
More information about the ffmpeg-cvslog
mailing list