/usr/include/hybris/media/media_format_layer.h is in libmedia-dev 0.1.0+git20151016+6d424c9-0ubuntu7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /*
* Copyright (C) 2013 Canonical Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authored by: Jim Hodapp <jim.hodapp@canonical.com>
*/
#ifndef MEDIA_FORMAT_LAYER_H_
#define MEDIA_FORMAT_LAYER_H_
#include <stddef.h>
#include <unistd.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void* MediaFormat;
MediaFormat media_format_create_video_format(const char *mime, int32_t width, int32_t height, int64_t duration_us, int32_t max_input_size);
void media_format_destroy(MediaFormat format);
void media_format_ref(MediaFormat format);
void media_format_unref(MediaFormat format);
void media_format_set_byte_buffer(MediaFormat format, const char *key, uint8_t *data, size_t size);
const char* media_format_get_mime(MediaFormat format);
int64_t media_format_get_duration_us(MediaFormat format);
int32_t media_format_get_width(MediaFormat format);
int32_t media_format_get_height(MediaFormat format);
int32_t media_format_get_max_input_size(MediaFormat format);
int32_t media_format_get_stride(MediaFormat format);
int32_t media_format_get_slice_height(MediaFormat format);
int32_t media_format_get_color_format(MediaFormat format);
int32_t media_format_get_crop_left(MediaFormat format);
int32_t media_format_get_crop_right(MediaFormat format);
int32_t media_format_get_crop_top(MediaFormat format);
int32_t media_format_get_crop_bottom(MediaFormat format);
// TODO: Add getter for CSD buffer
#ifdef __cplusplus
}
#endif
#endif // MEDIA_FORMAT_LAYER_H_
|