Lines Matching refs:img
206 int vpx_img_plane_width(const vpx_image_t *img, int plane) {
207 if (plane > 0 && img->x_chroma_shift > 0)
208 return (img->d_w + 1) >> img->x_chroma_shift;
210 return img->d_w;
213 int vpx_img_plane_height(const vpx_image_t *img, int plane) {
214 if (plane > 0 && img->y_chroma_shift > 0)
215 return (img->d_h + 1) >> img->y_chroma_shift;
217 return img->d_h;
220 void vpx_img_write(const vpx_image_t *img, FILE *file) {
224 const unsigned char *buf = img->planes[plane];
225 const int stride = img->stride[plane];
226 const int w = vpx_img_plane_width(img, plane);
227 const int h = vpx_img_plane_height(img, plane);
237 int vpx_img_read(vpx_image_t *img, FILE *file) {
241 unsigned char *buf = img->planes[plane];
242 const int stride = img->stride[plane];
243 const int w = vpx_img_plane_width(img, plane);
244 const int h = vpx_img_plane_height(img, plane);