/usr/include/libyami/VideoDecoderDefs.h is in libyami-dev 1.0.1-1.
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | /*
* Copyright (C) 2013 Intel Corporation. All rights reserved.
*
* 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.
*/
#ifndef VIDEO_DECODER_DEFS_H_
#define VIDEO_DECODER_DEFS_H_
// config.h should NOT be included in header file, especially for the header file used by external
#include <va/va.h>
#include <stdint.h>
#include <VideoCommonDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
// flags for VideoDecodeBuffer, VideoConfigBuffer and VideoRenderBuffer
typedef enum {
// indicate whether surfaceNumber field in the VideoConfigBuffer is valid
HAS_SURFACE_NUMBER = 0x04,
// indicate whether profile field in the VideoConfigBuffer is valid
HAS_VA_PROFILE = 0x08,
} VIDEO_BUFFER_FLAG;
typedef struct {
uint8_t *data;
size_t size;
int64_t timeStamp;
uint32_t flag;
}VideoDecodeBuffer;
typedef struct {
uint8_t *data;
int32_t size;
/// it is the actual frame size, height is 1080 for h264 1080p stream
uint32_t width;
uint32_t height;
/// surfaceWidth and surfaceHeight are the resolution to config output buffer (dirver surface size or client buffer like in sw decode mode)
/// take h264 1080p as example, it is enlarged to 1088
int32_t surfaceWidth;
int32_t surfaceHeight;
int32_t frameRate;
int32_t surfaceNumber;
VAProfile profile;
uint32_t flag;
uint32_t fourcc;
}VideoConfigBuffer;
typedef struct {
bool valid; // indicates whether format info is valid. MimeType is always valid.
char *mimeType;
uint32_t width;
uint32_t height;
int32_t surfaceWidth;
int32_t surfaceHeight;
int32_t surfaceNumber;
int32_t aspectX;
int32_t aspectY;
int32_t cropLeft;
int32_t cropRight;
int32_t cropTop;
int32_t cropBottom;
int32_t colorMatrix;
int32_t videoRange;
int32_t bitrate;
int32_t framerateNom;
int32_t framerateDenom;
uint32_t fourcc;
}VideoFormatInfo;
#ifdef __cplusplus
}
#endif
#endif // VIDEO_DECODER_DEFS_H_
|