182b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON/*
282b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* Copyright (c) 2009-2011 Intel Corporation.  All rights reserved.
382b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON*
482b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* Licensed under the Apache License, Version 2.0 (the "License");
582b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* you may not use this file except in compliance with the License.
682b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* You may obtain a copy of the License at
782b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON*
882b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* http://www.apache.org/licenses/LICENSE-2.0
982b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON*
1082b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* Unless required by applicable law or agreed to in writing, software
1182b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* distributed under the License is distributed on an "AS IS" BASIS,
1282b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1382b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* See the License for the specific language governing permissions and
1482b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON* limitations under the License.
1582b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON*/
1682b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON
1782b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON#ifndef VIDEO_FRAME_INFO_H_
1882b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON#define VIDEO_FRAME_INFO_H_
1982b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON
2082b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON#define MAX_NUM_NALUS 16
2182b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON
2282b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTONtypedef struct {
2382b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint8_t  type;      // nalu type + nal_ref_idc
2482b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint32_t offset;    // offset to the pointer of the encrypted data
2582b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint8_t* data;      // if the nalu is encrypted, this field is useless; if current NALU is SPS/PPS, data is the pointer to clear SPS/PPS data
2682b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint32_t length;    // nalu length
2782b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON} nalu_info_t;
2882b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON
2982b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTONtypedef struct {
3082b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint8_t* data;      // pointer to the encrypted data
3182b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint32_t size;      // encrypted data size
3282b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    uint32_t num_nalus; // number of NALU
3382b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON    nalu_info_t nalus[MAX_NUM_NALUS];
3482b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON} frame_info_t;
3582b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON
3682b428e49a70ddc051a36d2b3a25d90db79770dcGuilhem IMBERTON#endif
37