Mercurial > libavcodec.hg
comparison mjpeg.c @ 2267:143c17950b55 libavcodec
10l
author | michael |
---|---|
date | Mon, 27 Sep 2004 03:17:26 +0000 |
parents | 514949de5d15 |
children | 21f450be6cb5 |
comparison
equal
deleted
inserted
replaced
2266:514949de5d15 | 2267:143c17950b55 |
---|---|
857 { | 857 { |
858 MJpegDecodeContext *s = avctx->priv_data; | 858 MJpegDecodeContext *s = avctx->priv_data; |
859 MpegEncContext s2; | 859 MpegEncContext s2; |
860 | 860 |
861 s->avctx = avctx; | 861 s->avctx = avctx; |
862 avctx->width = -((-avctx->width )) >> avctx->lowres; | 862 avctx->width = -((-avctx->width ) >> avctx->lowres); |
863 avctx->height= -((-avctx->height)) >> avctx->lowres; | 863 avctx->height= -((-avctx->height) >> avctx->lowres); |
864 | 864 |
865 /* ugly way to get the idct & scantable FIXME */ | 865 /* ugly way to get the idct & scantable FIXME */ |
866 memset(&s2, 0, sizeof(MpegEncContext)); | 866 memset(&s2, 0, sizeof(MpegEncContext)); |
867 s2.avctx= avctx; | 867 s2.avctx= avctx; |
868 // s2->out_format = FMT_MJPEG; | 868 // s2->out_format = FMT_MJPEG; |
2068 av_free(recoded); | 2068 av_free(recoded); |
2069 | 2069 |
2070 #else | 2070 #else |
2071 /* SOF */ | 2071 /* SOF */ |
2072 s->bits = 8; | 2072 s->bits = 8; |
2073 s->width = avctx->width << avctx->lowres; | 2073 s->width = avctx->width; |
2074 s->height = avctx->height<< avctx->lowres; | 2074 s->height = avctx->height; |
2075 avctx->width = -((-avctx->width )>>avctx->lowres); | |
2076 avctx->height = -((-avctx->height)>>avctx->lowres); | |
2075 s->nb_components = 3; | 2077 s->nb_components = 3; |
2076 s->component_id[0] = 0; | 2078 s->component_id[0] = 0; |
2077 s->h_count[0] = 2; | 2079 s->h_count[0] = 2; |
2078 s->v_count[0] = 2; | 2080 s->v_count[0] = 2; |
2079 s->quant_index[0] = 0; | 2081 s->quant_index[0] = 0; |