Mercurial > libavcodec.hg
comparison imgconvert.c @ 6358:6aa3024c07c5 libavcodec
This should not be part of the public API
author | vitor |
---|---|
date | Fri, 15 Feb 2008 20:19:46 +0000 |
parents | 3f86370d3f63 |
children | 949e4f444a50 |
comparison
equal
deleted
inserted
replaced
6357:3f86370d3f63 | 6358:6aa3024c07c5 |
---|---|
839 dst += dst_wrap; | 839 dst += dst_wrap; |
840 src += src_wrap; | 840 src += src_wrap; |
841 } | 841 } |
842 } | 842 } |
843 | 843 |
844 int av_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane) | 844 int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane) |
845 { | 845 { |
846 int bits; | 846 int bits; |
847 const PixFmtInfo *pf = &pix_fmt_info[pix_fmt]; | 847 const PixFmtInfo *pf = &pix_fmt_info[pix_fmt]; |
848 | 848 |
849 pf = &pix_fmt_info[pix_fmt]; | 849 pf = &pix_fmt_info[pix_fmt]; |
892 switch(pf->pixel_type) { | 892 switch(pf->pixel_type) { |
893 case FF_PIXEL_PACKED: | 893 case FF_PIXEL_PACKED: |
894 case FF_PIXEL_PLANAR: | 894 case FF_PIXEL_PLANAR: |
895 for(i = 0; i < pf->nb_channels; i++) { | 895 for(i = 0; i < pf->nb_channels; i++) { |
896 int w, h; | 896 int w, h; |
897 int bwidth = av_get_plane_bytewidth(pix_fmt, width, i); | 897 int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i); |
898 w = width; | 898 w = width; |
899 h = height; | 899 h = height; |
900 if (i == 1 || i == 2) { | 900 if (i == 1 || i == 2) { |
901 w >>= pf->x_chroma_shift; | 901 w >>= pf->x_chroma_shift; |
902 h >>= pf->y_chroma_shift; | 902 h >>= pf->y_chroma_shift; |