120111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber/* 220111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * Copyright (C) 2009 The Android Open Source Project 320111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * 420111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * Licensed under the Apache License, Version 2.0 (the "License"); 520111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * you may not use this file except in compliance with the License. 620111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * You may obtain a copy of the License at 720111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * 820111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * http://www.apache.org/licenses/LICENSE-2.0 920111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * 1020111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * Unless required by applicable law or agreed to in writing, software 1120111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * distributed under the License is distributed on an "AS IS" BASIS, 1220111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1320111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * See the License for the specific language governing permissions and 1420111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber * limitations under the License. 1520111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber */ 1620111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber 17db43b34c3428e480f8c4c66e7e88f4001f37f91eMark Salyzyn#include <inttypes.h> 18db43b34c3428e480f8c4c66e7e88f4001f37f91eMark Salyzyn#include <fcntl.h> 19db43b34c3428e480f8c4c66e7e88f4001f37f91eMark Salyzyn#include <stdlib.h> 20db43b34c3428e480f8c4c66e7e88f4001f37f91eMark Salyzyn#include <string.h> 21db43b34c3428e480f8c4c66e7e88f4001f37f91eMark Salyzyn#include <sys/time.h> 22c6ac859f5a82ea8642bc6351a45508a15f224f32Marco Nelissen#include <sys/types.h> 23c6ac859f5a82ea8642bc6351a45508a15f224f32Marco Nelissen#include <sys/stat.h> 24db43b34c3428e480f8c4c66e7e88f4001f37f91eMark Salyzyn 25bbc38312e4521cfd4299203591ef366b7624f043Andreas Huber//#define LOG_NDEBUG 0 26bbc38312e4521cfd4299203591ef366b7624f043Andreas Huber#define LOG_TAG "stagefright" 27bbc38312e4521cfd4299203591ef366b7624f043Andreas Huber#include <media/stagefright/foundation/ADebug.h> 28bbc38312e4521cfd4299203591ef366b7624f043Andreas Huber 2926a417f68526fee861bb527f1a4e3ed548979f93Colin Cross#include "jpeg.h" 30a98420e863c374d1f15309467f2a1fc58d979d3bAndreas Huber#include "SineSource.h" 31a98420e863c374d1f15309467f2a1fc58d979d3bAndreas Huber 3220111aa043c5f404472bc63b90bc5aad906b1101Andreas Huber#include <binder/IServiceManager.h> 33