Mercurial > mplayer.hg
changeset 6260:96b5efcad587
use new api of libfame 0.9.0
author | arpi |
---|---|
date | Sat, 01 Jun 2002 20:27:14 +0000 |
parents | 76bc1fa36fef |
children | 5b76ba46fc72 |
files | libmpcodecs/vf_fame.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_fame.c Sat Jun 01 09:54:53 2002 +0000 +++ b/libmpcodecs/vf_fame.c Sat Jun 01 20:27:14 2002 +0000 @@ -47,16 +47,21 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ fame_yuv_t yuv; + fame_frame_statistics_t stats; mp_image_t *dmpi; int out_size; yuv.w=mpi->width; yuv.h=mpi->height; + yuv.p=mpi->stride[0]; yuv.y=mpi->planes[0]; yuv.u=mpi->planes[1]; yuv.v=mpi->planes[2]; - out_size = fame_encode_frame(vf->priv->ctx, &yuv, NULL); +// out_size = fame_encode_frame(vf->priv->ctx, &yuv, NULL); + fame_start_frame(vf->priv->ctx, &yuv, NULL); + out_size = fame_encode_slice(vf->priv->ctx); + fame_end_frame(vf->priv->ctx, &stats); if(out_size<=0) return; @@ -81,7 +86,8 @@ case IMGFMT_YV12: case IMGFMT_I420: case IMGFMT_IYUV: - return (vf_next_query_format(vf,IMGFMT_MPEGPES) & (~(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE))); +// return (vf_next_query_format(vf,IMGFMT_MPEGPES) & (~(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE))); + return (vf_next_query_format(vf,IMGFMT_MPEGPES) & (~(VFCAP_CSP_SUPPORTED_BY_HW))); } return 0; } @@ -111,7 +117,7 @@ vf->priv->params.shape_quality=100; vf->priv->params.search_range=8; // for "IPPP" only vf->priv->params.verbose=0; - vf->priv->params.profile=NULL; // TODO + vf->priv->params.profile="mpeg1"; // TODO return 1; }