165efc253a628175c7afa95c431b746ea20052794Andy Qiu/*
2cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// Copyright (c) 2014 Intel Corporation 
3cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika//
4cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// Licensed under the Apache License, Version 2.0 (the "License");
5cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// you may not use this file except in compliance with the License.
6cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// You may obtain a copy of the License at
7cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika//
8cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika//      http://www.apache.org/licenses/LICENSE-2.0
9cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika//
10cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// Unless required by applicable law or agreed to in writing, software
11cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// distributed under the License is distributed on an "AS IS" BASIS,
12cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// See the License for the specific language governing permissions and
14cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika// limitations under the License.
15cd727f537d5085eec7f1b8f9c1d33922d4de75d4Prodyut Hazarika*/
1665efc253a628175c7afa95c431b746ea20052794Andy Qiu#ifndef DISPLAY_QUERY_H
1765efc253a628175c7afa95c431b746ea20052794Andy Qiu#define DISPLAY_QUERY_H
1865efc253a628175c7afa95c431b746ea20052794Andy Qiu
1965efc253a628175c7afa95c431b746ea20052794Andy Qiunamespace android {
2065efc253a628175c7afa95c431b746ea20052794Andy Qiunamespace intel {
2165efc253a628175c7afa95c431b746ea20052794Andy Qiu
2265efc253a628175c7afa95c431b746ea20052794Andy Qiuclass DisplayQuery
2365efc253a628175c7afa95c431b746ea20052794Andy Qiu{
2465efc253a628175c7afa95c431b746ea20052794Andy Qiupublic:
2565efc253a628175c7afa95c431b746ea20052794Andy Qiu    static bool isVideoFormat(uint32_t format);
2623921d7a334e7f84a0453dcbbf60154dc7f9c0d3lychenx    static int  getOverlayLumaStrideAlignment(uint32_t format);
27d248396b4f48861e1e27c5e316c776121ab44938mamatha balguri    static uint32_t queryNV12Format();
28af3bf2227c951a59e2dcc44ab90790d247225375Andy Qiu    static bool forceFbScaling(int device);
2965efc253a628175c7afa95c431b746ea20052794Andy Qiu};
3065efc253a628175c7afa95c431b746ea20052794Andy Qiu
3165efc253a628175c7afa95c431b746ea20052794Andy Qiu} // namespace intel
3265efc253a628175c7afa95c431b746ea20052794Andy Qiu} // namespace android
3365efc253a628175c7afa95c431b746ea20052794Andy Qiu
3465efc253a628175c7afa95c431b746ea20052794Andy Qiu#endif /*DISPLAY_QUERY_H*/
35