diff libmpcodecs/mp_image.h @ 6539:79b536a37e40

better planar support, chroma subsampling support and Y8/Y800 support
author alex
date Sun, 23 Jun 2002 21:08:31 +0000
parents afb4f3c107e7
children b8ed96e21f2c
line wrap: on
line diff
--- a/libmpcodecs/mp_image.h	Sun Jun 23 20:42:19 2002 +0000
+++ b/libmpcodecs/mp_image.h	Sun Jun 23 21:08:31 2002 +0000
@@ -58,8 +58,8 @@
     /* these are only used by planar formats Y,U(Cb),V(Cr) */
     int chroma_width;
     int chroma_height;
-    int chroma_h_shift;
-    int chroma_v_shift;
+    int chroma_x_shift; // horizontal
+    int chroma_y_shift; // vertical
 } mp_image_t;
 
 #ifdef IMGFMT_YUY2
@@ -91,8 +91,8 @@
 	mpi->bpp=12;
 	mpi->chroma_width=(mpi->width>>1);
 	mpi->chroma_height=(mpi->height>>1);
-	mpi->chroma_h_shift=1;
-	mpi->chroma_v_shift=1;
+	mpi->chroma_x_shift=1;
+	mpi->chroma_y_shift=1;
 	return;
     case IMGFMT_IF09:
 	mpi->num_planes=4;
@@ -101,8 +101,8 @@
 	mpi->bpp=9;
 	mpi->chroma_width=(mpi->width>>2);
 	mpi->chroma_height=(mpi->height>>2);
-	mpi->chroma_h_shift=2;
-	mpi->chroma_v_shift=2;
+	mpi->chroma_x_shift=2;
+	mpi->chroma_y_shift=2;
 	return;
     case IMGFMT_Y800:
     case IMGFMT_Y8: