diff options
author | Andreas Huber <andih@google.com> | 2010-08-19 10:39:47 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-19 10:39:47 -0700 |
commit | 85f12e9b9062402d6110df3f7099707912040edb (patch) | |
tree | 7336723f61d09c2a72b36cf752c717c24a2d9ff6 /media/libstagefright/include/avc_utils.h | |
parent | 34c9ad88d3d827cca0c7b5f2fb1b0d4a1a20a2d1 (diff) | |
download | frameworks_av-85f12e9b9062402d6110df3f7099707912040edb.zip frameworks_av-85f12e9b9062402d6110df3f7099707912040edb.tar.gz frameworks_av-85f12e9b9062402d6110df3f7099707912040edb.tar.bz2 |
In the absence of width/height information in the sdp, extract the dimensions from the avc codec specific data.
Change-Id: I98c4194593c7e6e24f6fc339c862245111800293
Diffstat (limited to 'media/libstagefright/include/avc_utils.h')
-rw-r--r-- | media/libstagefright/include/avc_utils.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media/libstagefright/include/avc_utils.h b/media/libstagefright/include/avc_utils.h new file mode 100644 index 0000000..cc405b5 --- /dev/null +++ b/media/libstagefright/include/avc_utils.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2010 The Android Open Source Project + * + * 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 AVC_UTILS_H_ + +#define AVC_UTILS_H_ + +#include <media/stagefright/foundation/ABuffer.h> + +namespace android { + +void FindAVCDimensions( + const sp<ABuffer> &seqParamSet, int32_t *width, int32_t *height); + +} // namespace android + +#endif // AVC_UTILS_H_ |