OSDN Git Service

remove enum gbm_bo_format
[android-x86/external-minigbm.git] / helpers.h
1 /*
2  * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #ifndef HELPERS_H
8 #define HELPERS_H
9
10 size_t gbm_num_planes_from_format(uint32_t format);
11 int gbm_bpp_from_format(uint32_t format);
12 int gbm_stride_from_format(uint32_t format, uint32_t width);
13 int gbm_is_format_supported(struct gbm_bo *bo);
14 int gbm_dumb_bo_create(struct gbm_bo *bo, uint32_t width, uint32_t height,
15                        uint32_t format, uint32_t flags);
16 int gbm_dumb_bo_destroy(struct gbm_bo *bo);
17 int gbm_gem_bo_destroy(struct gbm_bo *bo);
18
19 #endif