private.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2014 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ANDROID_AUDIO_PRIVATE_H
  17. #define ANDROID_AUDIO_PRIVATE_H
  18. #include <stdint.h>
  19. __BEGIN_DECLS
  20. /* Defines not necessary for external use but kept here to be common
  21. * to the audio_utils library.
  22. */
  23. /* struct representation of 3 bytes for packed PCM 24 bit data.
  24. * The naming follows the ARM NEON convention.
  25. */
  26. typedef struct {uint8_t c[3];} __attribute__((__packed__)) uint8x3_t;
  27. __END_DECLS
  28. #endif /*ANDROID_AUDIO_PRIVATE_H*/