python: Rename pipe formats.
This commit is contained in:
@@ -244,7 +244,7 @@ st_context_create(struct st_device *st_dev)
|
||||
|
||||
memset( &templat, 0, sizeof( templat ) );
|
||||
templat.target = PIPE_TEXTURE_2D;
|
||||
templat.format = PIPE_FORMAT_A8R8G8B8_UNORM;
|
||||
templat.format = PIPE_FORMAT_B8G8R8A8_UNORM;
|
||||
templat.width0 = 1;
|
||||
templat.height0 = 1;
|
||||
templat.depth0 = 1;
|
||||
|
@@ -485,7 +485,7 @@ st_sample_generic_pixel_block(enum pipe_format format,
|
||||
w, h,
|
||||
rgba, rgba_stride);
|
||||
|
||||
if(format == PIPE_FORMAT_YCBCR || format == PIPE_FORMAT_YCBCR_REV) {
|
||||
if(format == PIPE_FORMAT_UYVY || format == PIPE_FORMAT_YUYV) {
|
||||
for(y = 0; y < h; ++y) {
|
||||
for(x = 0; x < w; ++x) {
|
||||
for(ch = 0; ch < 4; ++ch) {
|
||||
|
Reference in New Issue
Block a user