/frameworks/wilhelm/src/android/include/ |
AacBqToPcmCbRenderer.h | 27 // Class to receive AAC ADTS data through an Android Buffer Queue, decode it and output 40 // verifies the given memory starts and ends on ADTS frame boundaries. 41 // This is for instance used whenever ADTS data is being enqueued through an 42 // SL / XA AndroidBufferQueue interface so only parseable ADTS data goes in 43 // the buffer queue, and no ADTS frame is stored across two buffers.
|
/external/aac/libMpegTPEnc/src/ |
tpenc_adts.h | 87 contents/description: ADTS Transport writer 126 * \brief Initialize ADTS data structure 128 * \param hAdts ADTS data handle 130 * information for the ADTS header is extrated from 140 * \brief Get the total bit overhead caused by ADTS 142 * \hAdts handle to ADTS data 149 * \brief Write an ADTS header into the given bitstream. May not write a header 152 * \param hAdts ADTS data handle 153 * \param hBitStream bitstream handle into which the ADTS may be written into 154 * \param buffer_fullness the buffer fullness value for the ADTS heade [all...] |
tpenc_lib.cpp | 127 STRUCT_ADTS adts; member in union:TRANSPORTENC::__anon2596 285 if ( adtsWrite_Init(&hTpEnc->writer.adts, &hTpEnc->config) != 0) { 380 &hTp->writer.adts, 421 if ( (hTp->transportFmt==TT_MP4_ADTS) && !hTp->writer.adts.protection_absent) { 422 crcIndex = adtsWrite_CrcStartReg(&hTp->writer.adts, &hTp->bitStream, 0); 428 if ( (hTp->transportFmt==TT_MP4_ADTS) && !hTp->writer.adts.protection_absent) { 429 adtsWrite_CrcEndReg(&hTp->writer.adts, &hTp->bitStream, crcIndex); 451 adtsWrite_EndRawDataBlock(&hTp->writer.adts, &hTp->bitStream, bits); 480 if (hTpEnc->writer.adts.currentBlock >= hTpEnc->writer.adts.num_raw_blocks+1) [all...] |
tpenc_adts.cpp | 87 contents/description: ADTS Transport Headers support 99 HANDLE_ADTS pAdts, /*!< pointer to adts stucture */ 111 HANDLE_ADTS pAdts, /*!< pointer to adts crc info stucture */ 250 } /* End of ADTS header */
|
/external/chromium_org/media/mp2t/ |
es_parser_adts.cc | 19 // Adts header is at least 7 bytes (can be 9 bytes). 71 // Return true if buf corresponds to an ADTS syncword. 77 // Look for an ADTS syncword. 79 // - either the byte position of the ADTS frame (if found) 82 // |frame_sz| returns the size of the ADTS frame (if found). 112 // Too short to be an ADTS frame. 165 // Look for every ADTS frame in the ES buffer starting at offset = 0 171 << "ADTS syncword @ pos=" << es_position 174 << "ADTS header: " 248 // based on the incoming ADTS profile [all...] |
es_parser_adts.h | 51 // a supported ADTS audio config.
|
/external/chromium_org/media/mp4/ |
aac.cc | 176 // ADTS header uses 13 bits for packet size. 180 std::vector<uint8>& adts = *buffer; 182 adts.insert(buffer->begin(), kADTSHeaderSize, 0); 183 adts[0] = 0xff; 184 adts[1] = 0xf1; 185 adts[2] = ((profile_ - 1) << 6) + (frequency_index_ << 2) + 187 adts[3] = ((channel_config_ & 0x3) << 6) + (size >> 11); 188 adts[4] = (size & 0x7ff) >> 3; 189 adts[5] = ((size & 7) << 5) + 0x1f; 190 adts[6] = 0xfc [all...] |
aac.h | 49 // This function converts a raw AAC frame into an AAC frame with an ADTS 62 // Size in bytes of the ADTS header added by ConvertEsdsToADTS(). 71 // that are used to generate the ADTS header.
|
/frameworks/wilhelm/src/android/ |
AacBqToPcmCbRenderer.cpp | 25 // ADTS header size is 7, but frame size information ends on byte 6 (when counting from byte 1) 29 * Returns the size of an AAC ADTS frame. 35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given 75 * Returns whether a block of memory starts and ends on AAC ADTS frame boundaries 78 * @return SL_RESULT_SUCCESS if there is AAC ADTS data, and it starts and ends on frame boundaries, 89 SL_LOGE("No ADTS to validate"); 95 SL_LOGE("found ADTS frame of size 0 at offset %llu", offset); 101 SL_LOGE("found incomplete ADTS frame at end of data"); 105 if (offset != size) { SL_LOGE("ADTS parsing error: reached end of incomplete frame"); }
|
android_defs.h | 39 // audio player, decoding from an Android buffer queue with ADTS data, 142 * Event mask for AAC ADTS events associated with ADTS data 161 // The legacy MIME type used elsewhere in the Android framework for AAC ADTS is below: 162 #define ANDROID_MIME_AACADTS_ANDROID_FRAMEWORK "audio/aac-adts"
|
/external/aac/libMpegTPDec/src/ |
tpdec_adts.h | 87 Description: ADTS interface 112 /* ADTS header fields */ 145 \brief Initialize ADTS CRC 161 * \param pAdts ADTS data handle 176 * \param pAdts ADTS data handle 194 * \param pAdts ADTS data handle 202 * \brief Check if we have a valid ADTS frame at the current bitbuffer position 208 * \param pAdts ADTS data handle which is filled with parsed ADTS header data 209 * \param bs handle of bitstream from whom the ADTS header is rea [all...] |
tpdec_lib.cpp | 110 STRUCT_ADTS adts; member in union:__anon2578 177 hInput->parser.adts.decoderCanDoMpeg4 = 1; 179 hInput->parser.adts.decoderCanDoMpeg4 = 0; 180 adtsRead_CrcInit(&hInput->parser.adts); 181 hInput->parser.adts.BufferFullnesStartFlag = 1; 352 if (hTp->parser.adts.bs.adts_fullness != 0x7ff) { 353 bufferFullness = hTp->parser.adts.bs.frame_length*8 + hTp->parser.adts.bs.adts_fullness * 32 * getNumberOfEffectiveChannels(hTp->parser.adts.bs.channel_config); 409 if (hTp->parser.adts.bs.protection_absent == 0 [all...] |
tpdec_adts.cpp | 87 Description: ADTS interface 98 void adtsRead_CrcInit(HANDLE_ADTS pAdts) /*!< pointer to adts crc info stucture */ 104 HANDLE_ADTS pAdts, /*!< pointer to adts stucture */ 118 HANDLE_ADTS pAdts, /*!< pointer to adts crc info stucture */ 252 (bs.layer != 0) || // we only support MPEG ADTS 301 /* Get info from ADTS header */
|
/frameworks/av/media/libstagefright/codecs/common/include/ |
voAAC.h | 37 VOAAC_ADTS = 1, /*!<contains ADTS header + raw AAC data in a frame*/ 48 short adtsUsed; /*! whether write adts header */
|
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/ |
AAC_E_SAMPLES.c | 38 "voAACEncTest -if <inputfile.pcm> -of <outputfile.aac> -sr <samplerate> -ch <channel> -br <bitrate> -adts <adts> \n" 44 "-adts add or no adts header, default add adts header\n" 98 else if(!strcmp(*argv, "-adts"))
|
/frameworks/wilhelm/tests/examples/ |
slesTestDecodeAac.cpp | 17 /* AAC ADTS Decode Test 20 # slesTestDecodeAac /sdcard/myFile.adts 23 OpenSL ES test slesTestDecodeAac: decodes a file containing AAC ADTS data 27 Enqueueing initial full buffers of encoded ADTS data 0 1 32 % adb pull /sdcard/myFile.adts.raw myFile.raw 72 /* Size of the encoded AAC ADTS buffer queue */ 105 /* to signal to the test app that the end of the encoded ADTS stream has been reached */ 230 /* Callback for AndroidBufferQueueItf through which we supply ADTS buffers */ 259 printf("Received ADTS completion after EOS\n"); 267 printf("You should now see %u ADTS completion%s followed by 1 EOS completion\n" [all...] |
/frameworks/av/include/media/stagefright/ |
AACWriter.h | 45 kAdtsHeaderLength = 7, // # of bytes for the adts header
|
/frameworks/av/media/libstagefright/ |
AACExtractor.cpp | 90 // Returns the frame length in bytes as described in an ADTS header starting at the given offset, 92 // The returned value is the AAC frame size with the ADTS header length (regardless of 94 // If headerSize is non-NULL, it will be used to return the size of the header of this ADTS frame. 372 // ADTS syncword
|
MediaDefs.cpp | 43 const char *MEDIA_MIMETYPE_AUDIO_AAC_ADTS = "audio/aac-adts";
|
/external/chromium_org/media/test/data/ |
README | 55 bear.adts -- created using "avconv -i bear.ogv -f adts -strict experimental bear.adts".
|
/frameworks/wilhelm/src/android/util/ |
AacAdtsExtractor.cpp | 27 // ADTS header size is 7, but frame size information ends on byte 6 (when counting from byte 1) 75 // the frame size read already contains the size of the ADTS header, so no need to add it here 266 SL_LOGE("Can't seek in AAC ADTS buffer queue");
|
/cts/tests/tests/nativemedia/sl/src/ |
SLObjectCreationTest.cpp | 30 * * source is AndroidBufferQueue of AAC ADTS buffers, sink is BufferQueue of PCM buffers 266 /* Test case for creating an AudioPlayer object that decodes from a ADTS ABQ to a PCM BQ */ 268 // source: ADTS AndroidBufferQueue 272 formatMimeSrc.mimeType = (SLchar *)"audio/aac-adts";
|
/external/aac/libMpegTPDec/include/ |
tpdec_lib.h | 288 #define CAPF_TPDEC_ADTS 0x00002000 /**< Flag indicating support for ADTS transport format. */ 317 * MPEG4 capable decoder (relevant for ADTS only). 472 * \brief Get number of subframes (for LATM or ADTS) 474 * \return Number of ADTS/LATM subframes (return 1 for all other transport types). 486 /* ADTS CRC support */ 507 * \brief Calculate ADTS crc and check if it is correct. The ADTS checksum is held internally.
|
/frameworks/av/media/libstagefright/rtsp/ |
ARTPAssembler.cpp | 80 // Each frame is prefixed by a 7 byte ADTS header
|
/frameworks/base/media/java/android/media/ |
MediaFormat.java | 66 * <tr><td>{@link #KEY_IS_ADTS}</td><td>Integer</td><td>optional, if <em>decoding</em> AAC audio content, setting this key to 1 indicates that each audio frame is prefixed by the ADTS header.</td></tr> 197 * audio frames are prefixed with an ADTS header. 200 * be used to configure an encoder to emit ADTS output. 202 public static final String KEY_IS_ADTS = "is-adts";
|